From 6e3347a9815f4a457b6393a22f21b6f2c6b588af Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 2 Jun 2006 18:09:29 +0000 Subject: 2006-06-02 Frank Ch. Eigler PR 2645. * stapprobes.5.in: Document "?" probe point suffix. * parse.cxx (parse_probe_point): Recognize "?" optional suffix. * elaborate.cxx (derive_probes): Observe probe_point->optional. * staptree.h, staptree.cxx: Corresponding changes. * tapsets.cxx (never_derived_probe, never_builder): New classes. (register_standard_tapsets): Support "never" probe point. * testsuite/buildok/six.stp, parseok/five.stp: Modifed tests. * translate.cxx (emit_module_init): Format "-t" (benchmarking) cycle-time reports similarly to "-v" (verbose) times. --- testsuite/buildok/six.stp | 6 +++++- testsuite/parseok/five.stp | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/buildok/six.stp b/testsuite/buildok/six.stp index 589a8b44..2d9a40aa 100755 --- a/testsuite/buildok/six.stp +++ b/testsuite/buildok/six.stp @@ -4,6 +4,10 @@ # listed in PR 1155 we cannot resolve the parameters of the inline # at the moment. -probe kernel.inline("context_switch") { +probe kernel.inline("context_switch")? { log ("found an inline function") } + +probe never { + log ("or not ...") +} diff --git a/testsuite/parseok/five.stp b/testsuite/parseok/five.stp index b7690943..29ff5990 100755 --- a/testsuite/parseok/five.stp +++ b/testsuite/parseok/five.stp @@ -17,3 +17,4 @@ probe time.virtual.jiffies(100) {} probe perfcounter("tlbmiss").count(4000) {} probe resource.freemembelow(50) {} # pages? probe begin {} +probe something?, or?, nothing? {} -- cgit