Skip to content

Commit

Permalink
tracing, alpha: fix build: add missing #ifdef CONFIG_STACKTRACE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Török Edwin authored and Ingo Molnar committed Nov 28, 2008
1 parent c7cc773 commit c7425ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit c7425ac

Please sign in to comment.