diff options
author | fche <fche> | 2007-11-20 03:59:19 +0000 |
---|---|---|
committer | fche <fche> | 2007-11-20 03:59:19 +0000 |
commit | d898100ab001dd4b3465f738dad76d1d646c3261 (patch) | |
tree | eb20e3219db643c07802dbec890b704e44b87458 /testsuite | |
parent | 3b0c565c2b75d777c3993f0284185b5aa4c3528d (diff) | |
download | systemtap-steved-d898100ab001dd4b3465f738dad76d1d646c3261.tar.gz systemtap-steved-d898100ab001dd4b3465f738dad76d1d646c3261.tar.xz systemtap-steved-d898100ab001dd4b3465f738dad76d1d646c3261.zip |
PR 3887: sufficient+optional probe points
2007-11-19 Frank Ch. Eigler <fche@elastic.org>
PR 3887.
* staptree.h (probe_point): Add "sufficient" field.
* staptree.cxx: Initialize it, print it.
* parse.cxx (parse_probe_point): Parse it.
* elaborate.cxx (derive_probes): Implement it.
* stapprobes.5.in: Document it.
* NEWS: Gloat about it.
* parseok/five.stp, semok/twentyseven.stp: Test "!" probe point flag.
* iostat-scsi.stp: Adopt "!" probe point flag.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/ChangeLog | 4 | ||||
-rwxr-xr-x | testsuite/parseok/five.stp | 1 | ||||
-rwxr-xr-x | testsuite/semok/twentyseven.stp | 11 |
3 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index bc19c015..075245aa 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-11-19 Frank Ch. Eigler <fche@elastic.org> + + * parseok/five.stp, semok/twentyseven.stp: Test "!" probe point flag. + 2007-11-15 David Smith <dsmith@redhat.com> * systemtap.base/marker.exp: Removed 'module("foo").mark("bar")' diff --git a/testsuite/parseok/five.stp b/testsuite/parseok/five.stp index 29ff5990..e1b5d94a 100755 --- a/testsuite/parseok/five.stp +++ b/testsuite/parseok/five.stp @@ -18,3 +18,4 @@ probe perfcounter("tlbmiss").count(4000) {} probe resource.freemembelow(50) {} # pages? probe begin {} probe something?, or?, nothing? {} +probe something!, or, nothing!, and?, zoo {} diff --git a/testsuite/semok/twentyseven.stp b/testsuite/semok/twentyseven.stp new file mode 100755 index 00000000..def633a5 --- /dev/null +++ b/testsuite/semok/twentyseven.stp @@ -0,0 +1,11 @@ +#! stap -p2 + +probe foo.a = kernel.function("sys_read") /* some */ ! /* sufficient */ , + kernel.function("no_such_function") + { "foo.a" } + +probe foo.b = module("*scsi*").function("no_such_thing") /* none */ ? , + module("*scsi*").function("*queue*") /* some */ ! , /* suff'nt */ + module("no_such_module").function("no_such_function") + { "foo.b" } +probe foo.* { } |