summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.context/pid.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-07-02 18:28:19 +0000
committerhunt <hunt>2007-07-02 18:28:19 +0000
commit2c5a50d4a6292786476cdcb1821377a68dd92408 (patch)
treedd01559073b35bb7ae4afefd59c3404b4932d9f3 /testsuite/systemtap.context/pid.stp
parente1ddd7c988592f33a7dc659b378bec81293388ec (diff)
downloadsystemtap-steved-2c5a50d4a6292786476cdcb1821377a68dd92408.tar.gz
systemtap-steved-2c5a50d4a6292786476cdcb1821377a68dd92408.tar.xz
systemtap-steved-2c5a50d4a6292786476cdcb1821377a68dd92408.zip
2007-07-02 Martin Hunt <hunt@redhat.com>
* systemtap.context/context.exp: Add pid tests. * systemtap.context/pid.*: New tests.
Diffstat (limited to 'testsuite/systemtap.context/pid.stp')
-rw-r--r--testsuite/systemtap.context/pid.stp15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/systemtap.context/pid.stp b/testsuite/systemtap.context/pid.stp
new file mode 100644
index 00000000..41833273
--- /dev/null
+++ b/testsuite/systemtap.context/pid.stp
@@ -0,0 +1,15 @@
+probe module("systemtap_test_module2").function("yyy_int") {
+ printf("execname: %s\n", execname())
+ printf("pexecname: %s\n", pexecname())
+ printf("pid: %d\n", pid())
+ printf("ppid: %d\n", ppid())
+ printf("tid: %d\n", tid())
+ printf("uid: %d\n", uid())
+ printf("euid: %d\n", euid())
+ printf("gid: %d\n", gid())
+ printf("egid: %d\n", egid())
+ exit()
+}
+probe begin {
+ printf("READY\n")
+}