diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-19 23:39:12 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-19 23:39:12 +0200 |
commit | ad4f749fc45d8411b26e4093e9e8353b8971a482 (patch) | |
tree | 37408e3fca91220390db317367c5ce4d08ed1e28 /runtime/sym.c | |
parent | 15bdc138573610dbc40be680480af1d63bd0ae5d (diff) | |
download | systemtap-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/sym.c')
-rw-r--r-- | runtime/sym.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index f6f97ac2..fe9b800c 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -330,7 +330,8 @@ static void _stp_symbol_print(unsigned long address) } /* Like _stp_symbol_print, except only print if the address is a valid function address */ -static int _stp_func_print(unsigned long address, int verbose, int exact) +static int _stp_func_print(unsigned long address, int verbose, int exact, + struct task_struct *task) { const char *modname; const char *name; @@ -342,7 +343,7 @@ static int _stp_func_print(unsigned long address, int verbose, int exact) else exstr = " (inexact)"; - name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL, NULL); + name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL, task); if (name) { if (verbose) { |