Debian Codegraph @

testsuite/buildok/one.stp

raw
1 #! stap -p4
2
3 global foo, bar, baz
4
5 probe begin
6 {
7 x = 10
8 foo["hello"] = 25
9 foo["hello"]++
10 foo["hello"] = 0;
11 ++foo["hello"]
12 x = foo["hello"]
13 foo["yo"] *= bar[x, foo["hello"], "goodbye"]++;
14 bar[0, 0, ""] = 0
15
16 foreach ([m, o, p] in bar) baz[m] = p
17
18 # empty string treatment
19 baz[10] = ""
20 q = baz[223]
21
22 print("hello from systemtap\n")
23 print(q)
24 }
25
26