diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-04-20 23:02:09 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-04-21 11:40:17 +0200 |
commit | 7822c594fa32615588fb4ed48eb2728f6dae9e10 (patch) | |
tree | 510d97f7f03b94e256a66f8084104f4105ccefca | |
parent | 47a2a2303c9b261e88a4333bf2964b4291a22a12 (diff) | |
download | systemtap-steved-7822c594fa32615588fb4ed48eb2728f6dae9e10.tar.gz systemtap-steved-7822c594fa32615588fb4ed48eb2728f6dae9e10.tar.xz systemtap-steved-7822c594fa32615588fb4ed48eb2728f6dae9e10.zip |
Remove old _stp_ustack bits.
This code was never used, nor did it actually work.
* runtime/stack.c (_stp_ustack_print): Removed.
-rw-r--r-- | runtime/stack.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/stack.c b/runtime/stack.c index ee10e25f..bc1d2273 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -149,23 +149,6 @@ static void _stp_stack_snprint(char *str, int size, struct pt_regs *regs, int ve #endif /* CONFIG_KPROBES */ -/** Prints the user stack backtrace - * @param str string - * @returns Same string as was input with trace info appended, - * @note Currently limited to a depth of two. Works from jprobes and kprobes. - */ -#if 0 -static void _stp_ustack_print(char *str) -{ - struct pt_regs *nregs = ((struct pt_regs *)(THREAD_SIZE + (unsigned long)current->thread_info)) - 1; - _stp_printf("%p : [user]\n", (int64_t) REG_IP(nregs)); - if (REG_SP(nregs)) - _stp_printf("%p : [user]\n", (int64_t) (*(unsigned long *)REG_SP(nregs))); -} -#endif /* 0 */ - -/** @} */ - void _stp_stack_print_tsk(struct task_struct *tsk, int verbose, int levels) { #if defined(STAPCONF_KERNEL_STACKTRACE) |