From: David Smith Date: Thu, 18 Mar 2010 21:26:14 +0000 (-0500) Subject: Fixed BZ 568032 by adding support for sys_ia64_pipe. X-Git-Tag: release-1.2~37 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=fc2a22c05edf578c05acb91d2f9d0d159c717061;p=systemtap.git Fixed BZ 568032 by adding support for sys_ia64_pipe. * tapset/nd_syscalls2.stp: Added support for 'sys_ia64_pipe' so that the syscall.pipe probe works correctly under RHEL5.5. --- diff --git a/tapset/nd_syscalls2.stp b/tapset/nd_syscalls2.stp index fb1933240..48162fa3d 100644 --- a/tapset/nd_syscalls2.stp +++ b/tapset/nd_syscalls2.stp @@ -328,12 +328,16 @@ probe nd_syscall.personality.return = kprobe.function("SyS_personality").return # sys_pipe(unsigned long __user * fildes) # probe nd_syscall.pipe = kprobe.function("SyS_pipe") ?, +%( arch == "ia64" %? + kprobe.function("sys_ia64_pipe").call ?, +%) kprobe.function("sys_pipe") ? { name = "pipe" %( arch == "ia64" %? -# ia64 just returns value directly, no fildes argument - argstr = "" +# ia64 just returns value directly, so fake the arguments + fildes_uaddr = 0 + argstr = "[0, 0]" %: // fildes_uaddr = $fildes // argstr = _fildes_u($fildes) @@ -344,6 +348,9 @@ probe nd_syscall.pipe = kprobe.function("SyS_pipe") ?, } probe nd_syscall.pipe.return = kprobe.function("SyS_pipe").return ?, +%( arch == "ia64" %? + kprobe.function("sys_ia64_pipe").return ?, +%) kprobe.function("sys_pipe").return ? { name = "pipe"