summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/context_test.stp
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-05-11 14:23:59 -0400
committerDave Brolley <brolley@redhat.com>2009-05-11 14:23:59 -0400
commit7a0768a871545f8af96097de42837027922ddec1 (patch)
treeb4dc0a456e43f368af26938aad7afa84e4279d90 /testsuite/buildok/context_test.stp
parentbbedb0a65e2f2ddee8f545e807310e7d1daed501 (diff)
parent5896cd059949413cf56678d7a7fa6c0788f576b5 (diff)
downloadsystemtap-steved-7a0768a871545f8af96097de42837027922ddec1.tar.gz
systemtap-steved-7a0768a871545f8af96097de42837027922ddec1.tar.xz
systemtap-steved-7a0768a871545f8af96097de42837027922ddec1.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Conflicts: tapsets.cxx
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())
}