diff options
author | Dave Brolley <brolley@redhat.com> | 2009-05-11 14:23:59 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-05-11 14:23:59 -0400 |
commit | 7a0768a871545f8af96097de42837027922ddec1 (patch) | |
tree | b4dc0a456e43f368af26938aad7afa84e4279d90 /testsuite/buildok/context_test.stp | |
parent | bbedb0a65e2f2ddee8f545e807310e7d1daed501 (diff) | |
parent | 5896cd059949413cf56678d7a7fa6c0788f576b5 (diff) | |
download | systemtap-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-x | testsuite/buildok/context_test.stp | 22 |
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()) } |