summaryrefslogtreecommitdiffstats
path: root/runtime/stack-s390.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-20 22:43:37 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-20 22:43:37 +0200
commit47a2a2303c9b261e88a4333bf2964b4291a22a12 (patch)
tree294c40064abc7f52ae9f5274186a8b974b38bf40 /runtime/stack-s390.c
parent30c4b46a6da666674684cef7b57670b26534618c (diff)
downloadsystemtap-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/stack-s390.c')
-rw-r--r--runtime/stack-s390.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/stack-s390.c b/runtime/stack-s390.c
index c9654102..14e9b7d8 100644
--- a/runtime/stack-s390.c
+++ b/runtime/stack-s390.c
@@ -66,7 +66,8 @@ __stp_show_stack (unsigned long sp, unsigned long low,
}
static void __stp_stack_print (struct pt_regs *regs,
- int verbose, int levels)
+ int verbose, int levels,
+ struct task_struct *tsk)
{
unsigned long *_sp = (unsigned long *)&REG_SP(regs);
unsigned long sp = (unsigned long)_sp;