summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/log.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-09-12 18:21:55 +0000
committerhunt <hunt>2007-09-12 18:21:55 +0000
commit674f70a0371c1f97a83c66268d03332ebbf9e62f (patch)
treed910409c003bc72463253cc7ef0c07bb522721fb /testsuite/systemtap.maps/log.stp
parentcf9be511f05d0b310b2c4ce4c050d3707be9e65a (diff)
downloadsystemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.tar.gz
systemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.tar.xz
systemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.zip
2007-09-12 Martin Hunt <hunt@redhat.com>
* systemtap.maps/foreach_limit.stp: Clean up the aggregates section. * systemtap.maps/foreach_limit2.stp: Remove newline that was confusing the output match. * systemtap.maps/linear_bad.exp: Fix expected output. * systemtap.maps/linear_neg.exp: Ditto. * systemtap.maps/log.*: New files. * systemtap.maps/log_edge.*: New files. * lib/stap_run2.exp (stap_run2): Rewrite. Previous version was too complex and buggy.
Diffstat (limited to 'testsuite/systemtap.maps/log.stp')
-rw-r--r--testsuite/systemtap.maps/log.stp25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/log.stp b/testsuite/systemtap.maps/log.stp
new file mode 100644
index 00000000..5b1bf4bb
--- /dev/null
+++ b/testsuite/systemtap.maps/log.stp
@@ -0,0 +1,25 @@
+global foo
+
+probe begin
+{
+ val = 1
+ # add in one of each power of two
+ for (i = 0; i < 63; i++) {
+ foo <<< val
+ val <<= 1
+ }
+
+ val = 1;
+ # now add the negative powers of two
+ for (i = 0; i < 64; i++) {
+ foo <<< -val
+ val <<= 1
+ }
+
+ # add in a bunch of zeros
+ for (i=0; i<20; i++)
+ foo <<< 0
+
+ print(@hist_log(foo))
+ exit()
+}