This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Patch]Add definition of pid and argstr for syscall getpgid
- From: Cai Fei <caifei at cn dot fujitsu dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 16 Aug 2007 15:24:56 +0900
- Subject: [Patch]Add definition of pid and argstr for syscall getpgid
Hi, everyone.
syscall.stp is lack of definition of pid and argstr of syscall getpgid,
so I added them:
--- systemtap-20070811/tapset/syscalls.stp 2007-08-11 00:43:03.000000000 +0900
+++ systemtap-20070811new/tapset/syscalls.stp 2007-08-16 14:56:47.000000000 +0900
@@ -1259,9 +1259,11 @@ probe syscall.getpeername.return = kerne
}
# getpgid ____________________________________________________
-# long sys_getpgid(void)
+# long sys_getpgid(pid_t pid)
probe syscall.getpgid = kernel.function("sys_getpgid") {
name = "getpgid"
+ pid = $pid
+ argstr = sprintf("%d", $pid)
}
probe syscall.getpgid.return = kernel.function("sys_getpgid").return {
name = "getpgid"
Regards, Cai Fei