| 1 |
#! stap -p3 |
| 2 |
|
| 3 |
# This test checks that @perf isn't used as a normal operand. It can |
| 4 |
# only be used as an aggragate operand. |
| 5 |
|
| 6 |
global x |
| 7 |
probe perf.hw.cpu_cycles.process("/bin/ed").counter("a") {} |
| 8 |
probe process("/bin/ed").begin |
| 9 |
{ |
| 10 |
x = @perf("a") |
| 11 |
} |
| 12 |
|