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