tracing, alpha: fix build: add missing #ifdef CONFIG_STACKTRACE
authorTörök Edwin <edwintorok@gmail.com>
Fri, 28 Nov 2008 09:17:56 +0000 (11:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 28 Nov 2008 10:33:00 +0000 (11:33 +0100)
There are architectures that still have no stacktrace support.

Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c

index 5811e0a5f732f3188a16f40d7191197566586340..91887a280ab964e837ef1bb4a2562c0bd97cb21a 100644 (file)
@@ -983,6 +983,7 @@ static void ftrace_trace_userstack(struct trace_array *tr,
                   struct trace_array_cpu *data,
                   unsigned long flags, int pc)
 {
+#ifdef CONFIG_STACKTRACE
        struct ring_buffer_event *event;
        struct userstack_entry *entry;
        struct stack_trace trace;
@@ -1008,6 +1009,7 @@ static void ftrace_trace_userstack(struct trace_array *tr,
 
        save_stack_trace_user(&trace);
        ring_buffer_unlock_commit(tr->buffer, event, irq_flags);
+#endif
 }
 
 void __trace_userstack(struct trace_array *tr,