Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/perf04sw.stp

raw
1 global main
2
3 probe perf.sw.task_clock.counter("a") { }
4
5 probe process(@1).function("main").return
6 {
7 # counter "a" has no defined process so the default is ours
8 main <<< @perf("a") - @entry(@perf("a"))
9 }
10
11 probe end
12 {
13 printf("count main=%d\n", @count(main))
14 }
15