Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.maps/ix_clear2.stp

raw
1 # test clearing pmaps
2
3 global foo
4
5 probe begin {
6 foo[1] <<< 1
7 printf("foo[1] = %d %d\n", @count(foo[1]), @min(foo[1]))
8 delete foo
9 }
10
11 probe timer.ms(1000) { exit() }
12
13 probe end {
14 printf("foo[1] = %d %d\n", @count(foo[1]), @min(foo[1]))
15 }
16