Skip to content

Commit 2dde6b0

Browse files
arndbrostedt
authored andcommitted
tracing: make PREEMPTIRQ_EVENTS depend on TRACING
When CONFIG_TRACING is disabled, the new preemptirq events tracer produces a build failure: In file included from kernel/trace/trace_irqsoff.c:17:0: kernel/trace/trace.h: In function 'trace_test_and_set_recursion': kernel/trace/trace.h:542:28: error: 'struct task_struct' has no member named 'trace_recursion' Adding an explicit dependency avoids the broken configuration. Link: http://lkml.kernel.org/r/20171103104031.270375-1-arnd@arndb.de Fixes: d591581 ("tracing: Add support for preempt and irq enable/disable events") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 90e406f commit 2dde6b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎kernel/trace/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ config PREEMPTIRQ_EVENTS
164164
bool "Enable trace events for preempt and irq disable/enable"
165165
select TRACE_IRQFLAGS
166166
depends on DEBUG_PREEMPT || !PROVE_LOCKING
167+
depends on TRACING
167168
default n
168169
help
169170
Enable tracing of disable and enable events for preemption and irqs.

0 commit comments

Comments
 (0)