Blame SOURCES/rhbz2027683.patch

7ed538
commit 39b5233271b997811632871e1b6620a89b384fe8
7ed538
Author: Martin Cermak <mcermak@redhat.com>
7ed538
Date:   Thu Jan 20 18:18:00 2022 +0100
7ed538
7ed538
    Fix python probing rhbz2027683
7ed538
7ed538
diff --git a/tapset/python.stp b/tapset/python.stp
7ed538
new file mode 100644
7ed538
index 000000000..b5d06fcd9
7ed538
--- /dev/null
7ed538
+++ b/tapset/python.stp
7ed538
@@ -0,0 +1,17 @@
7ed538
+/* Systemtap tapset to make it easier to trace Python */
7ed538
+
7ed538
+/*
7ed538
+   Define python.function.entry/return:
7ed538
+*/
7ed538
+probe python.function.entry = process("/usr/lib*/libpython*.so*").mark("function__entry")
7ed538
+{
7ed538
+    filename = user_string($arg1);
7ed538
+    funcname = user_string($arg2);
7ed538
+    lineno = $arg3;
7ed538
+}
7ed538
+probe python.function.return = process("/usr/lib*/libpython*.so*").mark("function__return")
7ed538
+{
7ed538
+    filename = user_string($arg1);
7ed538
+    funcname = user_string($arg2);
7ed538
+    lineno = $arg3;
7ed538
+}