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/semok | |
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/semok')
-rwxr-xr-x | testsuite/semok/twentyseven.stp | 11 |
1 files changed, 11 insertions, 0 deletions
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.* { } |