summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-04-15 21:12:26 -0400
committerMartin Hunt <hunt@redhat.com>2008-04-15 21:12:26 -0400
commitd46ba57b8584a005b2b97d1e7a02004169670492 (patch)
treeb6e5630bd90414b5469bfb7ac0a014d52c8bb885 /runtime/stack.c
parentca1655b01e0f15289f5b8e7b760373c733cbdd83 (diff)
parent4f7a75f2cb3394290d1093a031546aa848ace929 (diff)
downloadsystemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.tar.gz
systemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.tar.xz
systemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.zip
Merge branch 'master' of monkey:/home/hunt/systemtap
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c8
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;
}