From d898100ab001dd4b3465f738dad76d1d646c3261 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 20 Nov 2007 03:59:19 +0000 Subject: PR 3887: sufficient+optional probe points 2007-11-19 Frank Ch. Eigler 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. --- testsuite/semok/twentyseven.stp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 testsuite/semok/twentyseven.stp (limited to 'testsuite/semok') 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.* { } -- cgit