Debian Codegraph @

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

raw
1 #test of int maps containing stats
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[1]
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 }