From 8cee54154c8f4fdcf538f53d5342864b5e6d860f Mon Sep 17 00:00:00 2001 From: hunt Date: Thu, 5 Apr 2007 18:50:54 +0000 Subject: 2007-04-05 Martin Hunt * 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. --- runtime/bench2/bench.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'runtime/bench2/bench.rb') 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 -- cgit