summaryrefslogtreecommitdiffstats
path: root/runtime/bench2/bench.rb
diff options
context:
space:
mode:
authorhunt <hunt>2007-08-17 16:46:17 +0000
committerhunt <hunt>2007-08-17 16:46:17 +0000
commit5f16fd61a310a4905bc39b7cf52e32a18086347a (patch)
tree380c6911e5c469302e34da622889ba8b25f4c28d /runtime/bench2/bench.rb
parent7bbd0e412c98661b09da33425cba29411cf8c2cd (diff)
downloadsystemtap-steved-5f16fd61a310a4905bc39b7cf52e32a18086347a.tar.gz
systemtap-steved-5f16fd61a310a4905bc39b7cf52e32a18086347a.tar.xz
systemtap-steved-5f16fd61a310a4905bc39b7cf52e32a18086347a.zip
2007-08-17 Martin Hunt <hunt@redhat.com>
* bench2/bench.rb: Send HUP to stapio, instead of staprun.
Diffstat (limited to 'runtime/bench2/bench.rb')
-rw-r--r--runtime/bench2/bench.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/bench2/bench.rb b/runtime/bench2/bench.rb
index cde93245..a671b582 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|