Blame SOURCES/rhbz2027683.patch

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