summaryrefslogtreecommitdiffstats
path: root/runtime/stack-i386.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-19 23:39:12 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-19 23:39:12 +0200
commitad4f749fc45d8411b26e4093e9e8353b8971a482 (patch)
tree37408e3fca91220390db317367c5ce4d08ed1e28 /runtime/stack-i386.c
parent15bdc138573610dbc40be680480af1d63bd0ae5d (diff)
downloadsystemtap-steved-ad4f749fc45d8411b26e4093e9e8353b8971a482.tar.gz
systemtap-steved-ad4f749fc45d8411b26e4093e9e8353b8971a482.tar.xz
systemtap-steved-ad4f749fc45d8411b26e4093e9e8353b8971a482.zip
Pass task to _stp_func_print and _stp_kallsyms_lookup.
* runtime/sym.c (_stp_func_print): Take task, pass to _stp_kallsyms_lookup. * runtime/stack.c (print_stack_address): Pass NULL. * runtime/stack-i386.c (_stp_stack_print_fallback): Pass NULL. (__stp_stack_print): Pass NULL or current. * runtime/stack-x86_64.c (_stp_stack_print_fallback): Pass NULL. (__stp_stack_print): Pass current.
Diffstat (limited to 'runtime/stack-i386.c')
-rw-r--r--runtime/stack-i386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/stack-i386.c b/runtime/stack-i386.c
index 5a18c9d8..a37ddd72 100644
--- a/runtime/stack-i386.c
+++ b/runtime/stack-i386.c
@@ -23,7 +23,7 @@ static void _stp_stack_print_fallback(unsigned long stack, int verbose, int leve
/* cannot access stack. give up. */
return;
}
- if (_stp_func_print(addr, verbose, 0))
+ if (_stp_func_print(addr, verbose, 0, NULL))
levels--;
stack++;
}
@@ -43,7 +43,7 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
/* cannot access stack. give up. */
return;
}
- _stp_func_print(addr, verbose, 1);
+ _stp_func_print(addr, verbose, 1, NULL);
if (unlikely(_stp_read_address(next_fp, (unsigned long *)fp, KERNEL_DS))) {
/* cannot access stack. give up. */
return;
@@ -64,7 +64,7 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
int ret = unwind(&info);
dbug_unwind(1, "ret=%d PC=%lx SP=%lx\n", ret, UNW_PC(&info), UNW_SP(&info));
if (ret == 0) {
- _stp_func_print(UNW_PC(&info), verbose, 1);
+ _stp_func_print(UNW_PC(&info), verbose, 1, current);
levels--;
continue;
}