diff options
author | hunt <hunt> | 2007-04-05 18:50:54 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-04-05 18:50:54 +0000 |
commit | 8cee54154c8f4fdcf538f53d5342864b5e6d860f (patch) | |
tree | 935e7a34aa67d14f65cffc513a6abb7463f1f87e /runtime/bench2/bench.rb | |
parent | 264d5549634a8d50ed3be219ad6496ab296933f8 (diff) | |
download | systemtap-steved-8cee54154c8f4fdcf538f53d5342864b5e6d860f.tar.gz systemtap-steved-8cee54154c8f4fdcf538f53d5342864b5e6d860f.tar.xz systemtap-steved-8cee54154c8f4fdcf538f53d5342864b5e6d860f.zip |
2007-04-05 Martin Hunt <hunt@redhat.com>
* bench2/bench.rb (Stapbench::run): Check result code
of "killall staprun". If it is nonzero, something happened to
staprun. Print an error.
(Stapbench::load): Define STP_NO_OVERLOAD.
* bench2/README: Update.
* bench2/print_bench: New set of tests.
Diffstat (limited to 'runtime/bench2/bench.rb')
-rw-r--r-- | runtime/bench2/bench.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/bench2/bench.rb b/runtime/bench2/bench.rb index a04582d2..cde93245 100644 --- a/runtime/bench2/bench.rb +++ b/runtime/bench2/bench.rb @@ -265,6 +265,10 @@ class Stapbench < Bench sum=0 `./itest #{threads} > bench` `sudo killall -HUP staprun` + if ($? != 0) + puts "status=#{$?}" + system("tail xxx.out") + end Process.wait # wait for staprun to exit @results[threads] = `cat bench`.split[0].to_i - @@ftime[threads] File.open("xxx.out") do |file| @@ -283,10 +287,10 @@ class Stapbench < Bench protected def load - args = "-vv" - if @trans == BULK then args = "-bvv" end + args = "-vv -DSTP_NO_OVERLOAD" + if @trans == BULK then args = "-bvv -DSTP_NO_OVERLOAD" end fork do exec "stap #{args} -o #{@outfile} bench.stp &> xxx.out" end - sleep 10 + sleep 30 end def compile |