]> sourceware.org Git - systemtap.git/commitdiff
fix !CONFIG_FRAME_POINTER, !CONFIG_UTRACE case
authorTony Jones <tonyj@suse.de>
Thu, 10 Jun 2010 13:38:14 +0000 (09:38 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 10 Jun 2010 13:38:14 +0000 (09:38 -0400)
In a kernel without FRAME_POINTERS (using the DWARF UNWINDER) and without
UTRACE I see the following in latest git master:
[...]
In file included from /tmp/stap/share/systemtap/runtime/stack.c:56:0,
                 from /tmp/stapPHqTen/stap_12068.c:52:
/tmp/stap/share/systemtap/runtime/stack-i386.c: In function "__stp_stack_print":
/tmp/stap/share/systemtap/runtime/stack-i386.c:69:25: error: implicit declaration of function "uprobe_get_pc".

AFAICT the autoconf test should result in STAPCONF_UPROBE_GET_PC=0 for the
case where CONFIG_UTRACE is unset since UPROBES requires UTRACE.

Signed-off-by: Tony Jones <tonyj@suse.de>
runtime/autoconf-uprobe-get-pc.c

index 2bd41c8c766ebf32f98c7177d946faffcf1b3c73..1f5af44e7fcb448d0b65e4fba07dad578916b5d2 100644 (file)
@@ -1,3 +1,4 @@
+#if defined(CONFIG_UTRACE)
 #if defined(CONFIG_UPROBES) || defined(CONFIG_UPROBES_MODULE)
 #include <linux/uprobes.h>
 #else
@@ -8,3 +9,6 @@ unsigned long foo (struct uretprobe_instance *ri, unsigned long pc, unsigned lon
 {
   return uprobe_get_pc (ri, pc, sp);
 }
+#else
+#error "need CONFIG_UTRACE" /* XXX: at least, uretprobe-capable uprobes */
+#endif
This page took 0.025571 seconds and 5 git commands to generate.