From 5f16fd61a310a4905bc39b7cf52e32a18086347a Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 17 Aug 2007 16:46:17 +0000 Subject: [PATCH] 2007-08-17 Martin Hunt * bench2/bench.rb: Send HUP to stapio, instead of staprun. --- runtime/ChangeLog | 4 ++++ runtime/bench2/bench.rb | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/runtime/ChangeLog b/runtime/ChangeLog index 56ad61031..aa2d8fc25 100644 --- a/runtime/ChangeLog +++ b/runtime/ChangeLog @@ -1,3 +1,7 @@ +2007-08-17 Martin Hunt + + * bench2/bench.rb: Send HUP to stapio, instead of staprun. + 2007-08-10 Josh Stone PR 4593 diff --git a/runtime/bench2/bench.rb b/runtime/bench2/bench.rb index cde93245b..a671b582b 100644 --- a/runtime/bench2/bench.rb +++ b/runtime/bench2/bench.rb @@ -67,7 +67,7 @@ class Bench load sum=0 `./itest #{threads} > #{@dir}/bench` - `sudo killall -HUP staprun` + `sudo killall -HUP stapio` Process.wait # wait for staprun to exit @results[threads] = `cat #{@dir}/bench`.split[0].to_i - @@ftime[threads] File.open("#{@dir}/xxx.out") do |file| @@ -129,7 +129,7 @@ class Bench @@minfreq = 0 def cleanup - system('sudo killall -HUP staprun &> /dev/null') + system('sudo killall -HUP stapio &> /dev/null') system('sudo /sbin/rmmod bench &> /dev/null') `/bin/rm -f stap.out` if File.exists?("stap.out") `/bin/rm -f bench.stp` if File.exists?("bench.stp") @@ -264,12 +264,12 @@ class Stapbench < Bench load sum=0 `./itest #{threads} > bench` - `sudo killall -HUP staprun` + `sudo killall -HUP stapio` if ($? != 0) puts "status=#{$?}" system("tail xxx.out") end - Process.wait # wait for staprun to exit + Process.wait # wait for stapio to exit @results[threads] = `cat bench`.split[0].to_i - @@ftime[threads] File.open("xxx.out") do |file| file.each_line do |line| -- 2.43.5