doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/alias_suffixes05.stp
raw| 1 | /* |
| 2 | * alias_suffixes05.stp |
| 3 | * |
| 4 | * Another test for correct behaviour of alias suffixes and wildcards |
| 5 | */ |
| 6 | |
| 7 | global k |
| 8 | |
| 9 | probe begin { if (k != 1) println("systemtap starting probe") } |
| 10 | probe a.return = end { |
| 11 | println("systemtap ending probe") |
| 12 | } |
| 13 | probe unrelated = never { k = 2 } |
| 14 | probe myprobe = a { k = 3 } |
| 15 | probe myprobe.test = unrelated { k = 4 } |
| 16 | probe myprobe.* { println("systemtap test failure") } |
| 17 | probe myprobe.ret* { println("systemtap test success") } |