Browse Source

python3 debug info update and libpython3.stp source

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 6 years ago
parent
commit
cbe6915009
  1. 17
      SOURCES/libpython3.stp
  2. 12
      SPECS/python3.spec

17
SOURCES/libpython3.stp

@ -0,0 +1,17 @@ @@ -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;
}

12
SPECS/python3.spec

@ -94,7 +94,7 @@ @@ -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} @@ -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 @@ -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:

Loading…
Cancel
Save