scalpels/tests/ci/pyfunc.stp
Kun Huang 95f55c330f test stap func. in CI
Change-Id: I3d50437e13679915e05f46355788cd362a3ff4e9
2015-11-02 01:28:24 +08:00

15 lines
431 B
Plaintext

probe python.function.entry = process("/opt/stack/data/cpython_build/bin/python").mark("function__entry")
{
filename = user_string($arg1);
funcname = user_string($arg2);
lineno = $arg3;
callargs = user_string($arg4);
kwdict = user_string($arg5);
}
probe python.function.entry
{
if (isinstr(funcname, "hk"))
printf("%s\t%s\t%d\t%s\t%s\n", filename, funcname, lineno, callargs, kwdict)
}