OSDN Git Service

tracing: fix config options to not show when automatically selected
authorSteven Rostedt <srostedt@redhat.com>
Thu, 28 May 2009 19:50:13 +0000 (15:50 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 2 Jun 2009 03:23:30 +0000 (23:23 -0400)
commit5e0a093910876882f91f1d4b8a1635a099e6c7ba
tree2e9fb5caa629c2f1f77f82a78863366b82ad05f6
parent2af15d6a44b871ad4c2a651302374cde8f335480
tracing: fix config options to not show when automatically selected

There are two options that are selected by all tracers, but we want
to have those options available when no tracer is selected. These are

 The event tracer and sched switch tracer.

The are enabled by all tracers, but if a tracer is not selected we want
the options to appear. All tracers including them select TRACING.
Thus what we would like to do is:

  config EVENT_TRACER
bool "prompt"
depends on TRACING
select TRACING

But that gives us a bug in the kbuild system since we just created a
circular dependency. We only want the prompt to show when TRACING is off.

This patch adds GENERIC_TRACER that all tracers will select instead of
TRACING. The two options (sched switch and event tracer) will select
TRACING directly and depend on !GENERIC_TRACER. This solves the cicular
dependency.

[ Impact: hide options that are selected by default ]

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/Kconfig