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] update sys32_ptrace function on ppc64


sys32_ptrace() was renamed to compat_sys_ptrace() a long time ago.

let 'probe syscall.sys32_ptrace' handle old and new function names.
I have only tested it with the current kernel source.

Perhaps the sys32_ptrace string should be removed, and the probe should
become syscall.compat_sys_ptrace?

---
 tapset/ppc64/syscalls.stp |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

--- a/tapset/ppc64/syscalls.stp
+++ b/tapset/ppc64/syscalls.stp
@@ -55,12 +55,14 @@ probe syscall.ppc64_sys32_stime.return =
 	retstr = returnstr(1)
 }
 
-# sys32_ptrace ________________________________________
-# (obsolete)
-# int sys32_ptrace(long request, long pid, unsigned long addr,
+# compat_sys_ptrace ________________________________________
+# int compat_sys_ptrace(long request, long pid, unsigned long addr,
 #		unsigned long data)
 #
-probe syscall.sys32_ptrace = kernel.function("sys32_ptrace") ? {
+probe syscall.sys32_ptrace =
+			kernel.function("compat_sys_ptrace") ? ,
+			kernel.function("sys32_ptrace") ?
+{
 	name = "sys32_ptrace"
 	request = $request
 	pid = $pid
@@ -68,7 +70,10 @@ probe syscall.sys32_ptrace = kernel.func
 	data = $data
 	argstr = sprintf("%p, %p, %p, %p", $request, $pid, $addr, $data)
 }
-probe syscall.sys32_ptrace.return = kernel.function("sys32_ptrace").return ? {
+probe syscall.sys32_ptrace.return =
+				kernel.function("compat_sys_ptrace").return ?,
+				kernel.function("sys32_ptrace").return ?
+{
 	name = "sys32_ptrace"
 	retstr = returnstr(1)
 }


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