From 674f70a0371c1f97a83c66268d03332ebbf9e62f Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 12 Sep 2007 18:21:55 +0000 Subject: 2007-09-12 Martin Hunt * 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. --- testsuite/systemtap.maps/log.stp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuite/systemtap.maps/log.stp (limited to 'testsuite/systemtap.maps/log.stp') 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() +} -- cgit