python2/libpython.stp
dmalcolm 3dde1c9650 - add a systemtap tapset defining "python.function.entry" and
"python.function.return" to make it easy to use the static probepoint
    within Python; add an example of using the tapset to the docs
2010-02-09 22:46:34 +00:00

18 lines
486 B
Plaintext

/* Systemtap tapset to make it easier to trace Python */
/*
Define python.function.entry/return:
*/
probe python.function.entry = process("python").library("LIBRARY_PATH").mark("function__entry")
{
filename = user_string($arg1);
funcname = user_string($arg2);
lineno = $arg3;
}
probe python.function.return = process("python").library("LIBRARY_PATH").mark("function__return")
{
filename = user_string($arg1);
funcname = user_string($arg2);
lineno = $arg3;
}