]> sourceware.org Git - systemtap.git/commitdiff
Fixed BZ 568032 by adding support for sys_ia64_pipe.
authorDavid Smith <dsmith@redhat.com>
Thu, 18 Mar 2010 21:26:14 +0000 (16:26 -0500)
committerDavid Smith <dsmith@redhat.com>
Thu, 18 Mar 2010 21:26:14 +0000 (16:26 -0500)
* tapset/nd_syscalls2.stp:  Added support for 'sys_ia64_pipe' so that the
  syscall.pipe probe works correctly under RHEL5.5.

tapset/nd_syscalls2.stp

index fb1933240d7916eb50fac43384326f486521c043..48162fa3d2b4deec9573d3ad7a04a1b97533db5d 100644 (file)
@@ -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"
This page took 0.03181 seconds and 5 git commands to generate.