From 98afd80eb5038542fa3a98c75528524b5d4287b6 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 19 Aug 2005 21:50:42 +0000 Subject: 2005-08-19 Frank Ch. Eigler PR systemtap/1209 * tapsets.cxx * elaborate.cxx (derived_probe_builder): Add get_param function. * elaborate.h: Declare them. * tapsets.cxx (dwarf_query::get_*_param): Call them. (timer_derived_probe, timer_builder): New classes. (register_standard_tapsets): Register timer.jiffies(N) and friend. * translate.cxx (translate_pass): #include . * stap.1.in: Document timer.jiffies(N) probe points. * testsuite/buildok/fourteen.stp: New test. 2005-08-19 Frank Ch. Eigler * arith.c (_stp_random_pm): New function. --- testsuite/buildok/fourteen.stp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 testsuite/buildok/fourteen.stp (limited to 'testsuite') diff --git a/testsuite/buildok/fourteen.stp b/testsuite/buildok/fourteen.stp new file mode 100755 index 00000000..dd231696 --- /dev/null +++ b/testsuite/buildok/fourteen.stp @@ -0,0 +1,6 @@ +#! stap -p4 + +global i, j +probe timer.jiffies(100) { i++ } +probe timer.jiffies(100).randomize(100) { j++ } +probe end { log ("i=" . string(i) . " j=" . string(j)) } -- cgit