]> sourceware.org Git - systemtap.git/commitdiff
Use a header-cast in nd_syscall.sigaltstack
authorJosh Stone <jistone@redhat.com>
Mon, 31 Aug 2009 22:22:33 +0000 (15:22 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 31 Aug 2009 22:27:07 +0000 (15:27 -0700)
The nd_syscalls tapset is meant to run with no debuginfo, so using a
@cast into a module type defeats the purpose.  We should use a @cast
with a header name instead, so debuginfo is generated.

* tapset/i386/nd_syscalls.stp (nd_syscall.sigaltstack): Get the pt_regs
  type definition from "kernel<asm/ptrace.h>".

tapset/i386/nd_syscalls.stp

index 09b2e7008289b3c9427fd128f41890addae10e9f..92befeb50c9c51edbb2c3630d382b008d30c0de3 100644 (file)
@@ -156,7 +156,8 @@ probe nd_syscall.sigaltstack = kprobe.function("sys_sigaltstack")
        name = "sigaltstack"
        // ussp = %( kernel_vr < "2.6.25" %? $ebx %: %( kernel_vr < "2.6.30" %? $bx %: $regs->bx %) %)
        // NB: no asmlinkage()
-       ussp = %( kernel_vr < "2.6.30" %? ulong_arg(1) %: @cast(ulong_arg(1), "pt_regs")->bx %)
+       ussp = %( kernel_vr < "2.6.30" %? ulong_arg(1) %:
+                 @cast(ulong_arg(1), "pt_regs", "kernel<asm/ptrace.h>")->bx %)
        argstr = sprintf("%p", ussp)
 }
 probe nd_syscall.sigaltstack.return = kprobe.function("sys_sigaltstack").return
This page took 0.02762 seconds and 5 git commands to generate.