diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-09-19 19:14:33 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-09-19 19:14:33 +0200 |
commit | 2f41f39496d9f9f82947eeebd169a8aa9db8245a (patch) | |
tree | d99665811aca38fb1fa18b193478f5c5b6300275 /testsuite/systemtap.base/onoffprobe.stp | |
parent | 1d12a9b21c8cbfc995ec3a84e09e613375a1bc5c (diff) | |
download | systemtap-steved-2f41f39496d9f9f82947eeebd169a8aa9db8245a.tar.gz systemtap-steved-2f41f39496d9f9f82947eeebd169a8aa9db8245a.tar.xz systemtap-steved-2f41f39496d9f9f82947eeebd169a8aa9db8245a.zip |
Use less idle time in testsuite.
A lot of tests wait, sleep or use a timer for multiple seconds when that
is not necessary. Reduce the time waited so save test time.
* testsuite/systemtap.base/backtrace.stp: Exit after 100ms.
* testsuite/systemtap.base/badkprobe.exp: Likewise.
* testsuite/systemtap.base/global_end.stp: Likewise.
* testsuite/systemtap.base/itrace.exp: Wait 1 sec instead of 5 for each test.
* testsuite/systemtap.base/maxactive.exp: Likewise.
* testsuite/systemtap.base/onoffprobe.exp: Match and use modname, so
build script can be cached.
* testsuite/systemtap.base/onoffprobe.stp: Wait miliseconds instead of
seconds in each alias. Output module_name.
* testsuite/systemtap.base/poll_map.stp: Start after 100ms.
Diffstat (limited to 'testsuite/systemtap.base/onoffprobe.stp')
-rw-r--r-- | testsuite/systemtap.base/onoffprobe.stp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/systemtap.base/onoffprobe.stp b/testsuite/systemtap.base/onoffprobe.stp index 79c41a3c..862c4059 100644 --- a/testsuite/systemtap.base/onoffprobe.stp +++ b/testsuite/systemtap.base/onoffprobe.stp @@ -2,7 +2,7 @@ global switch=-1 #begin probe probe begin if (switch==-1) { - log("begin1 probed"); + printf("begin1 probed: %s\n", module_name()); } probe begin if (switch==0) { @@ -22,7 +22,7 @@ probe kernel.function("vfs_write").return if (switch == 2) { } #timer probe -probe timer.s(1) if (switch == 3) { +probe timer.ms(100) if (switch == 3) { log("timer probed") switch = 0 } @@ -34,10 +34,10 @@ probe timer.profile if (switch == 4) { } # aliasess -probe alias.one.a = timer.s(2) if (switch == 5) { print("alias.one.a and") } -probe alias.one.b = timer.s(3) if (switch == 6) { print("alias.one.b and") } +probe alias.one.a = timer.ms(150) if (switch == 5) { print("alias.one.a and") } +probe alias.one.b = timer.ms(200) if (switch == 6) { print("alias.one.b and") } probe alias.one = alias.one.* if (switch >= 5 && switch < 7) { print(" alias.one and") } -probe alias.two = timer.s(4) if (switch == 7) { print("alias.two and") } +probe alias.two = timer.ms(250) if (switch == 7) { print("alias.two and") } probe alias.* if (switch) { log(" alias.* probed") } probe procfs("switch").write { |