• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 self int indent;
2 
3 python$target:::function-entry
4 /copyinstr(arg1) == "start"/
5 {
6     self->trace = 1;
7 }
8 
9 python$target:::function-entry
10 /self->trace/
11 {
12     printf("%d\t%*s:", timestamp, 15, probename);
13     printf("%*s", self->indent, "");
14     printf("%s:%s:%d\n", basename(copyinstr(arg0)), copyinstr(arg1), arg2);
15     self->indent++;
16 }
17 
18 python$target:::function-return
19 /self->trace/
20 {
21     self->indent--;
22     printf("%d\t%*s:", timestamp, 15, probename);
23     printf("%*s", self->indent, "");
24     printf("%s:%s:%d\n", basename(copyinstr(arg0)), copyinstr(arg1), arg2);
25 }
26 
27 python$target:::function-return
28 /copyinstr(arg1) == "start"/
29 {
30     self->trace = 0;
31 }
32