diff options
author | fche <fche> | 2005-08-05 17:04:29 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-05 17:04:29 +0000 |
commit | aab2b35fb1752b5a1118d4c4b3e43a0db20cccb8 (patch) | |
tree | c21b700d3e8d7391d8f78657cf4be7f1070a3c67 /testsuite/buildok/one.stp | |
parent | b905fd8805873fc3d36f128e1a3961eca05f58c7 (diff) | |
download | systemtap-steved-aab2b35fb1752b5a1118d4c4b3e43a0db20cccb8.tar.gz systemtap-steved-aab2b35fb1752b5a1118d4c4b3e43a0db20cccb8.tar.xz systemtap-steved-aab2b35fb1752b5a1118d4c4b3e43a0db20cccb8.zip |
2005-08-05 Frank Ch. Eigler <fche@elastic.org>
PR translator/1175
* translate.cxx (*): Added unlikely() markers to most emitted error
checks.
(mapvar::get,set): Handle NULL<->"" impedance mismatch.
(itervar::get_key): Ditto. Use base index=1 for keys.
* testsuite/buildok/one.stp: Extend. And it runs with -p5 too.
* stap.1: Document use of ";" statament as mechanism for grammar
ambiguity resolution.
* stp_check.in: Set $prefix.
* systemtap.spec.in: Prereq kernel-devel, kernel-debuginfo,
and not tcl.
* tapsets.cxx: Make slightly less verbose.
* translate.cxx
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") } |