Skip to content
  • Steven Rostedt's avatar
    tracing: fix config options to not show when automatically selected · 5e0a0939
    Steven Rostedt authored
    
    
    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: default avatarSteven Rostedt <rostedt@goodmis.org>
    5e0a0939