diff options
author | Török Edwin <edwintorok@gmail.com> | 2008-11-28 11:17:56 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-28 11:33:00 +0100 |
commit | c7425acb42fff1e723b05fbf4ea11e9a455d95dc (patch) | |
tree | 15720cbd28def3a0ccec8d9920b9dc9eb7dab671 /kernel/trace | |
parent | c7cc77307669336a08928ab8668bdb3f3bcc021b (diff) | |
download | linux-c7425acb42fff1e723b05fbf4ea11e9a455d95dc.tar.gz linux-c7425acb42fff1e723b05fbf4ea11e9a455d95dc.tar.bz2 linux-c7425acb42fff1e723b05fbf4ea11e9a455d95dc.zip |
tracing, alpha: fix build: add missing #ifdef CONFIG_STACKTRACE
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 5811e0a5f732..91887a280ab9 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -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, |