From 2c5a50d4a6292786476cdcb1821377a68dd92408 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 2 Jul 2007 18:28:19 +0000 Subject: 2007-07-02 Martin Hunt * systemtap.context/context.exp: Add pid tests. * systemtap.context/pid.*: New tests. --- testsuite/systemtap.context/pid.stp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 testsuite/systemtap.context/pid.stp (limited to 'testsuite/systemtap.context/pid.stp') 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") +} -- cgit