Re: [PATCH] tracing: 'select' GENERIC_TRACER, not 'depends'
From: Steven Rostedt
Date: Tue Nov 17 2026 - 08:53:31 EST
On Mon, 16 Nov 2026 14:46:53 -0800
Brian Norris <briannorris@xxxxxxxxxxxx> wrote:
> GENERIC_TRACER is not a user-selectable symbol, so it's impossible to
> enable FTRACE_STARTUP_TEST unless one also enables some other symbol
> that 'selects' GENERIC_TRACER for us.
I believe that was the way it was intended. The selftests are to test the
things that select GENERIC_TRACER. Why would we enable tests for something
that isn't enabled?
-- Steve
>
> This very file also suggests:
>
> All tracer options should select GENERIC_TRACER
>
> So, use 'select', not 'depends on'.
>
> Fixes: 60a11774b38f ("ftrace: add self-tests")
> Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>
> ---