summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/context_test.stp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-05-21 16:57:04 -0500
committerDavid Smith <dsmith@redhat.com>2009-05-21 16:57:04 -0500
commitc8e9eb18d8d13d099a4a177fe53de507c1d9ce8b (patch)
treeab2388afb795ed1a7ead2fbbf8b9d1b368a8231f /testsuite/buildok/context_test.stp
parentdd9a3bcbef65bde65491d959e9458bc641924811 (diff)
parent3863e7999255deeaa7f8f4bba7df893773812537 (diff)
downloadsystemtap-steved-c8e9eb18d8d13d099a4a177fe53de507c1d9ce8b.tar.gz
systemtap-steved-c8e9eb18d8d13d099a4a177fe53de507c1d9ce8b.tar.xz
systemtap-steved-c8e9eb18d8d13d099a4a177fe53de507c1d9ce8b.zip
Merge commit 'origin/master' into pr7043
Conflicts: runtime/print.c runtime/transport/transport.c runtime/transport/transport_msgs.h
Diffstat (limited to 'testsuite/buildok/context_test.stp')
-rwxr-xr-xtestsuite/buildok/context_test.stp22
1 files changed, 2 insertions, 20 deletions
diff --git a/testsuite/buildok/context_test.stp b/testsuite/buildok/context_test.stp
index 84f1cbf1..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()
@@ -18,23 +18,5 @@ function print_stuff () {
printf("gid is %d\n", gid())
printf("egid is %d\n", egid())
printf("pp is %s\n", pp())
-}
-
-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")
+ printf("sid is %d\n", sid())
}