diff options
author | Josh Stone <jistone@redhat.com> | 2009-08-31 15:22:33 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-08-31 15:27:07 -0700 |
commit | 0ceb1f7bca62225444f6c8a92f7b69c9c55d6582 (patch) | |
tree | dec9eb2b43ea7891942d31f56a08b3b95c998a6d /tapset/i386 | |
parent | 0dc23d1d3435d0a1b8721618e6c898b9216a27e2 (diff) | |
download | systemtap-steved-0ceb1f7bca62225444f6c8a92f7b69c9c55d6582.tar.gz systemtap-steved-0ceb1f7bca62225444f6c8a92f7b69c9c55d6582.tar.xz systemtap-steved-0ceb1f7bca62225444f6c8a92f7b69c9c55d6582.zip |
Use a header-cast in nd_syscall.sigaltstack
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>".
Diffstat (limited to 'tapset/i386')
-rw-r--r-- | tapset/i386/nd_syscalls.stp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tapset/i386/nd_syscalls.stp b/tapset/i386/nd_syscalls.stp index 09b2e700..92befeb5 100644 --- a/tapset/i386/nd_syscalls.stp +++ b/tapset/i386/nd_syscalls.stp @@ -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 |