testsuite/semko/perf06.stp
raw| 1 | #! stap -p2 |
| 2 | |
| 3 | global x |
| 4 | |
| 5 | # missing process name |
| 6 | probe perf.hw.cpu_cycles.process |
| 7 | { |
| 8 | x <<< 1 |
| 9 | } |
| 10 | |
| 11 | # NB: this used to wait until pass-3 to resolve and possibly fail. This is bad |
| 12 | # for caching, since we might take some past success and skip over the current |
| 13 | # process state altogether. |