summaryrefslogtreecommitdiffstats
path: root/libpython.stp
diff options
context:
space:
mode:
Diffstat (limited to 'libpython.stp')
-rw-r--r--libpython.stp17
1 files changed, 17 insertions, 0 deletions
diff --git a/libpython.stp b/libpython.stp
new file mode 100644
index 0000000..f41da80
--- /dev/null
+++ b/libpython.stp
@@ -0,0 +1,17 @@
+/* Systemtap tapset to make it easier to trace Python */
+
+/*
+ Define python.function.entry/return:
+*/
+probe python.function.entry = process("python3").library("LIBRARY_PATH").mark("function__entry")
+{
+ filename = user_string($arg1);
+ funcname = user_string($arg2);
+ lineno = $arg3;
+}
+probe python.function.return = process("python3").library("LIBRARY_PATH").mark("function__return")
+{
+ filename = user_string($arg1);
+ funcname = user_string($arg2);
+ lineno = $arg3;
+}