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