summaryrefslogtreecommitdiffstats
path: root/runtime/stack.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-04-14 12:34:11 -0400
committerDave Brolley <brolley@redhat.com>2009-04-14 12:34:11 -0400
commit6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd (patch)
tree7491c5c2357768fafe21752c3a16436f23c51f70 /runtime/stack.c
parenta2422e707214a425e4e10ac5b7c39fc5ae4dea56 (diff)
parentb9c2e81cc7a62336ec1daf374cb3411add772ab4 (diff)
downloadsystemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.tar.gz
systemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.tar.xz
systemtap-steved-6c39ba6093aa0b3b86aa7e6f17a23ef322bd67cd.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/stack.c')
-rw-r--r--runtime/stack.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/stack.c b/runtime/stack.c
index f6b1cd08..68fb9b1f 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -97,6 +97,12 @@ static void _stp_stack_print_fallback(unsigned long stack, int verbose, int leve
&print_data);
}
#endif
+
+// Without KPROBES very little works atm.
+// But this file is unconditionally imported, while these two functions are only
+// used through context-unwind.stp.
+#if defined (CONFIG_KPROBES)
+
/** Prints the stack backtrace
* @param regs A pointer to the struct pt_regs.
*/
@@ -141,6 +147,8 @@ static void _stp_stack_snprint(char *str, int size, struct pt_regs *regs, int ve
pb->len = 0;
}
+#endif /* CONFIG_KPROBES */
+
/** Prints the user stack backtrace
* @param str string
* @returns Same string as was input with trace info appended,