summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/fourteen.stp
diff options
context:
space:
mode:
authorfche <fche>2005-08-19 21:50:42 +0000
committerfche <fche>2005-08-19 21:50:42 +0000
commit98afd80eb5038542fa3a98c75528524b5d4287b6 (patch)
tree2b968e1c8523fd50596431e09f936290220a0d29 /testsuite/buildok/fourteen.stp
parentefc364eebf15dd7e8b6c93e155af83b6d3971752 (diff)
downloadsystemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.tar.gz
systemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.tar.xz
systemtap-steved-98afd80eb5038542fa3a98c75528524b5d4287b6.zip
2005-08-19 Frank Ch. Eigler <fche@elastic.org>
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 <linux/timers.h>. * stap.1.in: Document timer.jiffies(N) probe points. * testsuite/buildok/fourteen.stp: New test. 2005-08-19 Frank Ch. Eigler <fche@elastic.org> * arith.c (_stp_random_pm): New function.
Diffstat (limited to 'testsuite/buildok/fourteen.stp')
-rwxr-xr-xtestsuite/buildok/fourteen.stp6
1 files changed, 6 insertions, 0 deletions
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)) }