Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.maps/ix_hist.exp

raw
1 # Simple function to test istograms
2
3 set test "ix_hist"
4
5 set ::result_string {value |-------------------------------------------------- count
6 0 | 1
7 1 | 1
8 2 |@ 2
9 4 |@@ 4
10 8 |@@@@ 8
11 16 |@@@@@@@@ 16
12 32 |@@@@@@@@@@@@@@@@ 32
13 64 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 64
14 128 | 0
15 256 | 0
16
17 value |-------------------------------------------------- count
18 0 | 1
19 1 | 0
20 2 | 1
21 4 | 2
22 8 |@ 4
23 16 |@@ 8
24 32 |@@@@@ 16
25 64 |@@@@@@@@@@ 32
26 128 |@@@@@@@@@@@@@@@@@@@@@ 64
27 256 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 128
28 512 | 0
29 1024 | 0
30
31 value |-------------------------------------------------- count
32 0 | 1
33 1 | 0
34 2 | 1
35 4 | 1
36 8 | 3
37 16 |@ 5
38 32 |@@ 11
39 64 |@@@@@ 21
40 128 |@@@@@@@@@@ 43
41 256 |@@@@@@@@@@@@@@@@@@@@@ 85
42 512 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 171
43 1024 |@@@@@@@@@@ 42
44 2048 | 0
45 4096 | 0
46
47 value |-------------------------------------------------- count
48 0 | 1
49 1 | 0
50 2 | 0
51 4 | 1
52 8 | 2
53 16 | 4
54 32 |@ 8
55 64 |@@ 16
56 128 |@@@@@ 32
57 256 |@@@@@@@@@@ 64
58 512 |@@@@@@@@@@@@@@@@@@@@@ 128
59 1024 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 256
60 2048 | 0
61 4096 | 0
62 }
63
64 foreach runtime [get_runtime_list] {
65 if {$runtime != ""} {
66 stap_run2 $srcdir/$subdir/$test.stp --runtime=$runtime -DMAXACTION=10000
67 } else {
68 stap_run2 $srcdir/$subdir/$test.stp -DMAXACTION=10000
69 }
70 }