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]Fix the bug of missing definition of argstr and retstr


Hi, all

After adding definition of pid and argstr for syscall getpgid, I checked the tapset
for other syscalls. The same problems of missing definition of argstr and retstr exist.
So I added them all:


diff -Nur systemtap-20070811/tapset/syscalls2.stp systemtap-20070811new/tapset/syscalls2.stp
--- systemtap-20070811/tapset/syscalls2.stp	2007-08-17 10:21:34.000000000 +0900
+++ systemtap-20070811new/tapset/syscalls2.stp	2007-08-17 10:25:10.000000000 +0900
@@ -2147,6 +2147,7 @@
		kernel.function("sys32_sigreturn").return ?
{
	name = "sigreturn"
+	retstr = returnstr(1)
}

# sigsuspend _________________________________________________
diff -Nur systemtap-20070811/tapset/syscalls.stp systemtap-20070811new/tapset/syscalls.stp
--- systemtap-20070811/tapset/syscalls.stp 2007-08-17 10:18:12.000000000 +0900
+++ systemtap-20070811new/tapset/syscalls.stp 2007-08-17 10:24:46.000000000 +0900
@@ -1116,6 +1116,7 @@
kernel.function("sys_getegid")
{
name = "getegid"
+ argstr = ""
}
probe syscall.getegid.return =
kernel.function("sys_getegid16").return ?,
@@ -1136,6 +1137,7 @@
kernel.function("sys_geteuid")
{
name = "geteuid"
+ argstr = ""
}
probe syscall.geteuid.return = kernel.function("sys_geteuid16").return ?,
@@ -1156,6 +1158,7 @@
kernel.function("sys_getgid") {
name = "getgid"
+ argstr = ""
}
probe syscall.getgid.return = kernel.function("sys_getgid16").return ?,
@@ -1282,6 +1285,7 @@
# long sys_getpgrp(void)
probe syscall.getpgrp = kernel.function("sys_getpgrp") ? {
name = "getpgrp"
+ argstr = ""
}
probe syscall.getpgrp.return = kernel.function("sys_getpgrp").return ? {
name = "getpgrp"
@@ -1292,6 +1296,7 @@
# long sys_getpid(void)
probe syscall.getpid = kernel.function("sys_getpid") {
name = "getpid"
+ argstr = ""
}
probe syscall.getpid.return = kernel.function("sys_getpid").return {
name = "getpid"
@@ -1302,9 +1307,11 @@
# long sys_getppid(void)
probe syscall.getppid = kernel.function("sys_getppid") {
name = "getppid"
+ argstr = ""
}
probe syscall.getppid.return = kernel.function("sys_getppid").return {
name = "getppid"
+ retstr = returnstr(1)
}


# getpriority ________________________________________________
@@ -1466,6 +1473,7 @@
# long sys_gettid(void)
probe syscall.gettid = kernel.function("sys_gettid") {
	name = "gettid"
+	argstr = ""
}
probe syscall.gettid.return = kernel.function("sys_gettid").return {
	name = "gettid"
@@ -1510,6 +1518,7 @@
		kernel.function("sys_getuid")
{
	name = "getuid"
+	argstr = ""
}
probe syscall.getuid.return =
		kernel.function("sys_getuid16").return ?,
@@ -2546,6 +2555,7 @@
# long sys_munlockall(void)
probe syscall.munlockall = kernel.function("sys_munlockall") {
	name = "munlockall"
+	argstr = ""
}
probe syscall.munlockall.return = kernel.function("sys_munlockall").return {
	name = "munlockall"


Regards, Cai Fei




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