diff options
Diffstat (limited to 'testsuite/buildok/one.stp')
-rwxr-xr-x | testsuite/buildok/one.stp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testsuite/buildok/one.stp b/testsuite/buildok/one.stp index 1f4f8f9b..491d059e 100755 --- a/testsuite/buildok/one.stp +++ b/testsuite/buildok/one.stp @@ -1,15 +1,24 @@ #! stap -p4 -global foo, bar +global foo, bar, baz probe begin { x = 10 foo["hello"] = 25 foo["hello"]++ + foo["hello"] = 0; ++foo["hello"] x = foo["hello"] foo["yo"] *= bar[x, foo["hello"], "goodbye"]++; + bar[0, 0, ""] = 0 + + foreach ([m, o, p] in bar) baz[m] = p + + # empty string treatment + baz[10] = "" + q = baz[223] + printk("hello from systemtap") } |