diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-08 12:40:43 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-08 12:40:43 -0700 |
commit | 7da77276c8a703a4dab1ed242801f3afd38864ea (patch) | |
tree | 3df21aa8b6e50fbba06c4548e2120c65a84f1763 | |
parent | b77eb29cbffe96e7fb7db4513b4b8610d134141f (diff) | |
download | systemtap-steved-7da77276c8a703a4dab1ed242801f3afd38864ea.tar.gz systemtap-steved-7da77276c8a703a4dab1ed242801f3afd38864ea.tar.xz systemtap-steved-7da77276c8a703a4dab1ed242801f3afd38864ea.zip |
Simplify buildok/context_test.stp
The test was using optional probes on uptime_read_proc, which doesn't
exist anymore on 2.6.30. The problem is that when those optional probes
are skipped, the test doesn't really do anything.
For a buildok test of the context functions, the actual probe point
doesn't matter, so I've changed it to just a begin probe that calls all
of the functions.
-rwxr-xr-x | testsuite/buildok/context_test.stp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/testsuite/buildok/context_test.stp b/testsuite/buildok/context_test.stp index d0b42890..acc4ea07 100755 --- a/testsuite/buildok/context_test.stp +++ b/testsuite/buildok/context_test.stp @@ -1,6 +1,6 @@ #! stap -p4 -function print_stuff () { +probe begin { print_regs() print_backtrace() bt = backtrace() @@ -20,22 +20,3 @@ function print_stuff () { printf("pp is %s\n", pp()) printf("sid is %d\n", sid()) } - -probe kernel.function("uptime_read_proc") ? { - print("NOW IN UPTIME\n") - print_stuff () -} - -probe kernel.function("uptime_read_proc").return ? { - print("DONE WITH UPTIME\n") - print_stuff () - exit () -} - -probe begin { - print ("BEGIN\n") -} - -probe end { - print ("END\n") -} |