| 1 |
global main |
| 2 |
|
| 3 |
probe perf.hw.instructions.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 |
|