]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracing, alpha: undefined reference to `save_stack_trace'
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 31 Oct 2008 19:50:41 +0000 (19:50 +0000)
committerIngo Molnar <mingo@elte.hu>
Mon, 3 Nov 2008 09:12:13 +0000 (10:12 +0100)
Impact: build fix on !stacktrace architectures

only select STACKTRACE on architectures that have STACKTRACE_SUPPORT

... since we also need to ifdef out the guts of ftrace_trace_stack().
We also want to disallow setting TRACE_ITER_STACKTRACE in trace_flags
on such configs, but that can wait.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/Kconfig
kernel/trace/trace.c

index b58f43bec3636e050bc6129d1fa58341aac1c946..33dbefd471e88f9571f299f92b433188dd6697de 100644 (file)
@@ -25,7 +25,7 @@ config TRACING
        bool
        select DEBUG_FS
        select RING_BUFFER
-       select STACKTRACE
+       select STACKTRACE if STACKTRACE_SUPPORT
        select TRACEPOINTS
        select NOP_TRACER
 
index 8a499e2adaec2554218051c730f77ccc784ef184..85bee775a03e7187057bfc51c5e7453fd2b985b1 100644 (file)
@@ -705,6 +705,7 @@ static void ftrace_trace_stack(struct trace_array *tr,
                               unsigned long flags,
                               int skip, int pc)
 {
+#ifdef CONFIG_STACKTRACE
        struct ring_buffer_event *event;
        struct stack_entry *entry;
        struct stack_trace trace;
@@ -730,6 +731,7 @@ static void ftrace_trace_stack(struct trace_array *tr,
 
        save_stack_trace(&trace);
        ring_buffer_unlock_commit(tr->buffer, event, irq_flags);
+#endif
 }
 
 void __trace_stack(struct trace_array *tr,