[Patch]Add definition of pid and argstr for syscall getpgid

Cai Fei caifei@cn.fujitsu.com
Thu Aug 16 13:01:00 GMT 2007


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



More information about the Systemtap mailing list