Debian Codegraph @

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

raw
1 global count = 1
2
3 function foo() {
4 count += 2
5 return 0
6 }
7
8 probe process.function("sub")
9 {
10 @var("foo", @1)->bar[foo()]
11 printf("count = %d\n", count)
12 exit()
13 }