aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c2
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,
983 struct trace_array_cpu *data, 983 struct trace_array_cpu *data,
984 unsigned long flags, int pc) 984 unsigned long flags, int pc)
985{ 985{
986#ifdef CONFIG_STACKTRACE
986 struct ring_buffer_event *event; 987 struct ring_buffer_event *event;
987 struct userstack_entry *entry; 988 struct userstack_entry *entry;
988 struct stack_trace trace; 989 struct stack_trace trace;
@@ -1008,6 +1009,7 @@ static void ftrace_trace_userstack(struct trace_array *tr,
1008 1009
1009 save_stack_trace_user(&trace); 1010 save_stack_trace_user(&trace);
1010 ring_buffer_unlock_commit(tr->buffer, event, irq_flags); 1011 ring_buffer_unlock_commit(tr->buffer, event, irq_flags);
1012#endif
1011} 1013}
1012 1014
1013void __trace_userstack(struct trace_array *tr, 1015void __trace_userstack(struct trace_array *tr,