summaryrefslogtreecommitdiffstats
path: root/runtime/bench2/bench.rb
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-01-17 21:52:42 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-01-17 21:52:42 -0500
commit7ee3e80ec0b7880c33d0ca3018025855d9dd5123 (patch)
treec39e234447fed3ca04c6467784fae5ddc85ce7d6 /runtime/bench2/bench.rb
parent2b7f11a05877405a3dd232ac297e11f9d8253c2d (diff)
parentaf3047833424103c4e17728e849670da865d37c3 (diff)
downloadsystemtap-steved-7ee3e80ec0b7880c33d0ca3018025855d9dd5123.tar.gz
systemtap-steved-7ee3e80ec0b7880c33d0ca3018025855d9dd5123.tar.xz
systemtap-steved-7ee3e80ec0b7880c33d0ca3018025855d9dd5123.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/bench2/bench.rb')
-rw-r--r--runtime/bench2/bench.rb21
1 files changed, 13 insertions, 8 deletions
diff --git a/runtime/bench2/bench.rb b/runtime/bench2/bench.rb
index a671b582..b3e30204 100644
--- a/runtime/bench2/bench.rb
+++ b/runtime/bench2/bench.rb
@@ -138,9 +138,8 @@ class Bench
end
def load
- args = "-q"
- fork do exec "sudo #{@@staprun} #{args} -o #{@outfile} #{@dir}/bench.ko &> #{@dir}/xxx.out" end
- sleep 10
+ fork do exec "sudo #{@@staprun} -o #{@outfile} #{@dir}/bench.ko &> #{@dir}/xxx.out" end
+ sleep 5
end
def compile
@@ -287,10 +286,8 @@ class Stapbench < Bench
protected
def load
- 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 30
+ fork do exec "sudo #{@@staprun} bench.ko &> xxx.out" end
+ sleep 5
end
def compile
@@ -316,6 +313,14 @@ class Stapbench < Bench
else
puts "NO CODE!"
end
+ args = "-p4 -vv -DSTP_NO_OVERLOAD"
+ if @trans == BULK then args = "-p4 -bvv -DSTP_NO_OVERLOAD" end
+ `stap #{args} -m bench.ko bench.stp &> xxx.out`
+ if ($? != 0)
+ puts "compile failed. status=#{$?}"
+ system("tail xxx.out")
+ exit
+ end
end
-
+
end