Re: [PATCH v2 03/14] tracing: Disable branch profiling for COMPILE_TEST builds

From: Steven Rostedt

Date: Tue Nov 10 2026 - 07:11:02 EST


On Mon, 9 Nov 2026 11:13:11 -0800
Bart Van Assche <bvanassche@xxxxxxx> wrote:

> WARN_CONTEXT_ANALYSIS depends on !TRACE_BRANCH_PROFILING because branch
> profiling instruments every if-condition and obscures control flow from
> Clang's thread-safety analyzer. Make PROFILE_ANNOTATED_BRANCHES and
> PROFILE_ALL_BRANCHES depend on !COMPILE_TEST so that allmodconfig and
> allyesconfig builds do not enable TRACE_BRANCH_PROFILING and instead
> enable WARN_CONTEXT_ANALYSIS_ALL.
>
> Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>

Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

-- Steve