This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]