diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-20 22:43:37 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-20 22:43:37 +0200 |
commit | 47a2a2303c9b261e88a4333bf2964b4291a22a12 (patch) | |
tree | 294c40064abc7f52ae9f5274186a8b974b38bf40 /runtime/unwind.c | |
parent | 30c4b46a6da666674684cef7b57670b26534618c (diff) | |
download | systemtap-steved-47a2a2303c9b261e88a4333bf2964b4291a22a12.tar.gz systemtap-steved-47a2a2303c9b261e88a4333bf2964b4291a22a12.tar.xz systemtap-steved-47a2a2303c9b261e88a4333bf2964b4291a22a12.zip |
Pass task from tapset, through stack and unwind functions for lookup.
* runtime/stack-arm.c (__stp_stack_print): Take struct task_struct *.
* runtime/stack-ia64.c (__stp_stack_print): Likewise.
* runtime/stack-ppc64.c (__stp_stack_print): Likewise.
* runtime/stack-s390.c (__stp_stack_print): Likewise.
* runtime/stack-i386.c (__stp_stack_print): Likewise.
And add check and pass to unwind() and _stp_func_print().
* runtime/stack-x86_64.c: Likewise.
* runtime/stack.c *_stp_stack_print): Take and pass on task_struct.
(_stp_stack_snprint): Likewise.
* runtime/unwind.c (unwind): Take and use task_struct for
_stp_mod_sec_lookup().
* tapset/context-unwind.stp (print_backtrace): Pass NULL to
_stp_stack_print().
(backtrace): Pass NULL to _stp_stack_snprint().
Diffstat (limited to 'runtime/unwind.c')
-rw-r--r-- | runtime/unwind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/unwind.c b/runtime/unwind.c index 7914c77d..aacd56f1 100644 --- a/runtime/unwind.c +++ b/runtime/unwind.c @@ -568,7 +568,7 @@ static char *_stp_eh_enc_name(signed type) /* Unwind to previous to frame. Returns 0 if successful, negative * number in case of an error. A positive return means unwinding is finished; * don't try to fallback to dumping addresses on the stack. */ -static int unwind(struct unwind_frame_info *frame) +static int unwind(struct unwind_frame_info *frame, struct task_struct *tsk) { #define FRAME_REG(r, t) (((t *)frame)[reg_info[r].offs]) const u32 *fde, *cie = NULL; @@ -587,7 +587,7 @@ static int unwind(struct unwind_frame_info *frame) if (UNW_PC(frame) == 0) return -EINVAL; - m = _stp_mod_sec_lookup (pc, current, &s); + m = _stp_mod_sec_lookup (pc, tsk, &s); if (unlikely(m == NULL)) { dbug_unwind(1, "No module found for pc=%lx", pc); return -EINVAL; |