diff options
author | William Cohen <wcohen@redhat.com> | 2009-02-18 10:48:20 -0500 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2009-02-18 10:48:20 -0500 |
commit | 2aa2ccb83142c3bf98ac8ee1558a0ee72dff3a1f (patch) | |
tree | edcb5e4443e8daa29c1e418f992b5d9a4ef08095 /runtime/stack-i386.c | |
parent | 321b13b9ac2a395db1c7591cfe86bddfc0944e25 (diff) | |
download | systemtap-steved-2aa2ccb83142c3bf98ac8ee1558a0ee72dff3a1f.tar.gz systemtap-steved-2aa2ccb83142c3bf98ac8ee1558a0ee72dff3a1f.tar.xz systemtap-steved-2aa2ccb83142c3bf98ac8ee1558a0ee72dff3a1f.zip |
Remove context argument from _stp_stack_print_fallback (PR 9860).
Diffstat (limited to 'runtime/stack-i386.c')
-rw-r--r-- | runtime/stack-i386.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stack-i386.c b/runtime/stack-i386.c index 2d3ac53c..3c3921ea 100644 --- a/runtime/stack-i386.c +++ b/runtime/stack-i386.c @@ -15,10 +15,10 @@ static int _stp_valid_stack_ptr(unsigned long context, unsigned long p) /* DWARF unwinder failed. Just dump intereting addresses on kernel stack. */ #ifndef CONFIG_STACKTRACE -static void _stp_stack_print_fallback(unsigned long context, unsigned long stack, int verbose, int levels) +static void _stp_stack_print_fallback(unsigned long stack, int verbose, int levels) { unsigned long addr; - while (levels && _stp_valid_stack_ptr(context, stack)) { + while (levels && stack & (THREAD_SIZE-1)) { if (unlikely(_stp_read_address(addr, (unsigned long *)stack, KERNEL_DS))) { /* cannot access stack. give up. */ return; @@ -71,11 +71,11 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels) /* If an error happened or we hit a kretprobe trampoline, use fallback backtrace */ /* FIXME: is there a way to unwind across kretprobe trampolines? */ if (ret < 0 || (ret > 0 && UNW_PC(&info) == _stp_kretprobe_trampoline)) - _stp_stack_print_fallback(context, UNW_SP(&info), verbose, levels); + _stp_stack_print_fallback(UNW_SP(&info), verbose, levels); break; } #else /* ! STP_USE_DWARF_UNWINDER */ - _stp_stack_print_fallback(context, (unsigned long)®_SP(regs), verbose, levels); + _stp_stack_print_fallback((unsigned long)®_SP(regs), verbose, levels); #endif /* STP_USE_FRAME_POINTER */ #endif } |