diff options
author | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
---|---|---|
committer | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
commit | 7edb09d8ba7689d26aefc0a273f334cec4419539 (patch) | |
tree | ef40e55d0be98abe137c6d174b5bdb8c40bb022c /runtime/stack.c | |
parent | bd10b81c06a0102ac10617da2f368fcc168fc15e (diff) | |
parent | 8a49d1d23c77033bf98fc7b139b37f83e3e0eb49 (diff) | |
download | systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.gz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.xz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.zip |
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/stack.c')
-rw-r--r-- | runtime/stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stack.c b/runtime/stack.c index 772c5baf..23ac2edc 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -47,7 +47,7 @@ * @param regs A pointer to the struct pt_regs. */ -void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe_instance *pi) +void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe_instance *pi, int levels) { if (verbose) { /* print the current address */ @@ -66,7 +66,7 @@ void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe_instan else _stp_printf("%p ", (int64_t) REG_IP(regs)); - __stp_stack_print(regs, verbose, 0); + __stp_stack_print(regs, verbose, levels); } /** Writes stack backtrace to a string @@ -75,14 +75,14 @@ void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe_instan * @param regs A pointer to the struct pt_regs. * @returns void */ -void _stp_stack_snprint(char *str, int size, struct pt_regs *regs, int verbose, struct kretprobe_instance *pi) +void _stp_stack_snprint(char *str, int size, struct pt_regs *regs, int verbose, struct kretprobe_instance *pi, int levels) { /* To get a string, we use a simple trick. First flush the print buffer, */ /* then call _stp_stack_print, then copy the result into the output string */ /* and clear the print buffer. */ _stp_pbuf *pb = per_cpu_ptr(Stp_pbuf, smp_processor_id()); _stp_print_flush(); - _stp_stack_print(regs, verbose, pi); + _stp_stack_print(regs, verbose, pi, levels); strlcpy(str, pb->buf, size < (int)pb->len ? size : (int)pb->len); pb->len = 0; } |