Python User-Space Markers
Some work has been done in Python to include support for SystemTap user-space markers. The Python user-space markers are enabled in Fedora 13 and allow SystemTap to probe the start and completion of each Python function. The Python user-space probes are:
python.function.entry filename:string funcname:string lineno:long python.function.return filename:string funcname:string lineno:long
Using Python User-Space Markers
To use the Python user-space markers on a Fedora you will need:
- RPMs:
- python
- python-libs
- python-debuginfo
- systemtap
- Membership to the stapdev group (or root access)
- A uprobes module built for the currently running kernel
(SystemTap will print instruction on how to build the uprobes module if one is not currently available)
Examples Scripts for Python Probing
Short example scripts:
"top" for python, pyfuntop.stp
tracing python function calls, systemtap-example.stp
These scripts are demonstrated in video at: