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