churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame libpython.stp

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