From 0ceb1f7bca62225444f6c8a92f7b69c9c55d6582 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 31 Aug 2009 15:22:33 -0700 Subject: [PATCH] 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". --- tapset/i386/nd_syscalls.stp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tapset/i386/nd_syscalls.stp b/tapset/i386/nd_syscalls.stp index 09b2e7008..92befeb50 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")->bx %) argstr = sprintf("%p", ussp) } probe nd_syscall.sigaltstack.return = kprobe.function("sys_sigaltstack").return -- 2.43.5