diff options
author | William Cohen <wcohen@redhat.com> | 2009-02-10 16:42:15 -0500 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2009-02-10 16:42:15 -0500 |
commit | 8ccdc31544c385b2b9ccf1206c983acdfb2d96e2 (patch) | |
tree | 17c272c409f96889ff13164884dd64d360e22710 | |
parent | a70a69bd47f2b0c7e8e4e99b7a630ebbedc5f264 (diff) | |
download | systemtap-steved-8ccdc31544c385b2b9ccf1206c983acdfb2d96e2.tar.gz systemtap-steved-8ccdc31544c385b2b9ccf1206c983acdfb2d96e2.tar.xz systemtap-steved-8ccdc31544c385b2b9ccf1206c983acdfb2d96e2.zip |
Remove profile.exp and profile.stp.
-rw-r--r-- | testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | testsuite/systemtap.samples/profile.exp | 15 | ||||
-rw-r--r-- | testsuite/systemtap.samples/profile.stp | 35 |
3 files changed, 5 insertions, 50 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 19d4fced..c2b1bb89 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2009-02-10 Will Cohen <wcohen@redhat.com> + * systemtap.samples/profile.exp: + * systemtap.samples/profile.stp: Remove. + +2009-02-10 Will Cohen <wcohen@redhat.com> + * systemtap.samples/crash.exp: * systemtap.samples/crash.sh: Move to systemtap.base directory. diff --git a/testsuite/systemtap.samples/profile.exp b/testsuite/systemtap.samples/profile.exp deleted file mode 100644 index 87174d2c..00000000 --- a/testsuite/systemtap.samples/profile.exp +++ /dev/null @@ -1,15 +0,0 @@ -set test "profile" -if {![installtest_p]} { untested $test; return } - -spawn stap -DMAXMAPENTRIES=10000 $srcdir/$subdir/profile.stp -set ok 0 -expect { - -timeout 360 - -re {kernel.function[^\r]*ttime=[0-9]*\r} { incr ok; exp_continue } - timeout { fail "$test (timeout)" } - eof { } -} -#FIXME does not handle case of hanging primes.stp correctly -wait - -if {$ok > 0} { pass $test } { fail $test } diff --git a/testsuite/systemtap.samples/profile.stp b/testsuite/systemtap.samples/profile.stp deleted file mode 100644 index 62af76ae..00000000 --- a/testsuite/systemtap.samples/profile.stp +++ /dev/null @@ -1,35 +0,0 @@ -#! /usr/bin/env stap - -global command, syscall_count, syscall_times, this_syscall_time, this_syscall - -function accumulate () { - tid = tid() - if (! ([tid] in command)) command[tid] = execname() - syscall=pp() # just the substring ideally - syscall_count[tid,syscall] ++ - this_syscall[tid] = syscall - this_syscall_time[tid] = gettimeofday_us() -} -function decumulate () { - tid = tid() - syscall = this_syscall[tid] - syscall_times[tid,syscall] += gettimeofday_us() - this_syscall_time[tid] - # free up memory - delete(this_syscall[tid]) - delete(this_syscall_time[tid]) -} -probe kernel.function("sys_*").call { - accumulate () -} -probe kernel.function("sys_*").return { - decumulate () -} -probe timer.ms(5000) { - exit () -} -probe end { - foreach ([tid,syscall] in syscall_count- limit 30) { - printf("%s(%d) %s count=%d ttime=%d\n", command[tid], tid, syscall, - syscall_count[tid,syscall], syscall_times[tid,syscall]) - } -} |