2016-09-09 21:37:37 -03:00
|
|
|
self int indent;
|
|
|
|
|
|
|
|
python$target:::function-entry
|
|
|
|
/copyinstr(arg1) == "start"/
|
|
|
|
{
|
|
|
|
self->trace = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
python$target:::function-entry
|
|
|
|
/self->trace/
|
|
|
|
{
|
|
|
|
printf("%d\t%*s:", timestamp, 15, probename);
|
2017-09-14 03:38:36 -03:00
|
|
|
printf("%*s", self->indent, "");
|
2016-09-09 21:37:37 -03:00
|
|
|
printf("%s:%s:%d\n", basename(copyinstr(arg0)), copyinstr(arg1), arg2);
|
|
|
|
self->indent++;
|
|
|
|
}
|
|
|
|
|
|
|
|
python$target:::function-return
|
|
|
|
/self->trace/
|
|
|
|
{
|
|
|
|
self->indent--;
|
|
|
|
printf("%d\t%*s:", timestamp, 15, probename);
|
2017-09-14 03:38:36 -03:00
|
|
|
printf("%*s", self->indent, "");
|
2016-09-09 21:37:37 -03:00
|
|
|
printf("%s:%s:%d\n", basename(copyinstr(arg0)), copyinstr(arg1), arg2);
|
|
|
|
}
|
|
|
|
|
|
|
|
python$target:::function-return
|
|
|
|
/copyinstr(arg1) == "start"/
|
|
|
|
{
|
|
|
|
self->trace = 0;
|
|
|
|
}
|