* [PATCH] tracing: make PREEMPTIRQ_EVENTS depend on TRACING
@ 2017-11-03 10:39 Arnd Bergmann
2017-11-03 20:58 ` Masami Hiramatsu
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-11-03 10:39 UTC (permalink / raw)
To: Steven Rostedt, Ingo Molnar; +Cc: Arnd Bergmann, Masami Hiramatsu, linux-kernel
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.
Fixes: d59158162e03 ("tracing: Add support for preempt and irq enable/disable events")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
No idea if this is the best solution, it just happened to fix the build
failure for me.
---
kernel/trace/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 1ff10ca078d6..c8c18c793c86 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -164,6 +164,7 @@ config PREEMPTIRQ_EVENTS
bool "Enable trace events for preempt and irq disable/enable"
select TRACE_IRQFLAGS
depends on DEBUG_PREEMPT || !PROVE_LOCKING
+ depends on TRACING
default n
help
Enable tracing of disable and enable events for preemption and irqs.
--
2.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tracing: make PREEMPTIRQ_EVENTS depend on TRACING
2017-11-03 10:39 [PATCH] tracing: make PREEMPTIRQ_EVENTS depend on TRACING Arnd Bergmann
@ 2017-11-03 20:58 ` Masami Hiramatsu
0 siblings, 0 replies; 2+ messages in thread
From: Masami Hiramatsu @ 2017-11-03 20:58 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Steven Rostedt, Ingo Molnar, Masami Hiramatsu, linux-kernel
On Fri, 3 Nov 2017 11:39:57 +0100
Arnd Bergmann <arnd@arndb.de> wrote:
> 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.
>
> Fixes: d59158162e03 ("tracing: Add support for preempt and irq enable/disable events")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> No idea if this is the best solution, it just happened to fix the build
> failure for me.
OK, as same as other tracers, it should select GENERIC_TRACER and TRACER_MAX_TRACE,
and depends on TRACE_IRQFLAGS_SUPPORT, and maybe depends on !ARCH_USES_GETTIMEOFFSET.
Thank you,
> ---
> kernel/trace/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
> index 1ff10ca078d6..c8c18c793c86 100644
> --- a/kernel/trace/Kconfig
> +++ b/kernel/trace/Kconfig
> @@ -164,6 +164,7 @@ config PREEMPTIRQ_EVENTS
> bool "Enable trace events for preempt and irq disable/enable"
> select TRACE_IRQFLAGS
> depends on DEBUG_PREEMPT || !PROVE_LOCKING
> + depends on TRACING
> default n
> help
> Enable tracing of disable and enable events for preemption and irqs.
> --
> 2.9.0
>
--
Masami Hiramatsu <mhiramat@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-03 20:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 10:39 [PATCH] tracing: make PREEMPTIRQ_EVENTS depend on TRACING Arnd Bergmann
2017-11-03 20:58 ` Masami Hiramatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).