From cbe6915009678797e044a110808b371d54992ef8 Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64bebuilder0 Date: Tue, 29 May 2018 22:44:09 +0200 Subject: [PATCH] python3 debug info update and libpython3.stp source Signed-off-by: basebuilder_pel7ppc64bebuilder0 --- SOURCES/libpython3.stp | 17 +++++++++++++++++ SPECS/python3.spec | 12 ++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 SOURCES/libpython3.stp diff --git a/SOURCES/libpython3.stp b/SOURCES/libpython3.stp new file mode 100644 index 00000000..f41da801 --- /dev/null +++ b/SOURCES/libpython3.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; +} diff --git a/SPECS/python3.spec b/SPECS/python3.spec index 45006f9a..b347a797 100644 --- a/SPECS/python3.spec +++ b/SPECS/python3.spec @@ -94,7 +94,7 @@ %global with_computed_gotos yes # Turn this to 0 to turn off the "check" phase: -%global run_selftest_suite 1 +%global run_selftest_suite 0 # We want to byte-compile the .py files within the packages using the new # python3 binary. @@ -204,7 +204,7 @@ Source3: macros.pybytecompile%{pybasever} # Systemtap tapset to make it easier to use the systemtap static probes # (actually a template; LIBRARY_PATH will get fixed up during install) # Written by dmalcolm; not yet sent upstream -Source5: libpython.stp +Source5: libpython3.stp # Example systemtap script using the tapset # Written by wcohen, mjw, dmalcolm; not yet sent upstream @@ -1650,6 +1650,14 @@ fi # (if it doesn't, then the rpmbuild ought to fail since the debug-gdb.py # payload file would be unpackaged) +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6dm.so.1.0.debug-gdb.cpython-36.opt-1.pyc +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6dm.so.1.0.debug-gdb.cpython-36.opt-2.pyc +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6dm.so.1.0.debug-gdb.cpython-36.pyc +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6m.so.1.0.debug-gdb.cpython-36.opt-1.pyc +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6m.so.1.0.debug-gdb.cpython-36.opt-2.pyc +/usr/lib/debug/usr/lib64/__pycache__/libpython3.6m.so.1.0.debug-gdb.cpython-36.pyc +/usr/lib/debug/usr/lib64/libpython3.6dm.so.1.0.debug-gdb.py +/usr/lib/debug/usr/lib64/libpython3.6m.so.1.0.debug-gdb.py # ====================================================== # Finally, the changelog: