Re: [PATCH v2 00/24] objtool/x86: noinstr vs PARAVIRT

From: Steven Rostedt
Date: Thu Jun 24 2021 - 09:05:05 EST


On Thu, 24 Jun 2021 11:40:59 +0200
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> Steve, can I please delete TRACE_BRANCH_PROFILING and PROFILE_ALL_BRANCHES already?

The TRACE_BRANCH_PROFILING, I never used, so I'm happy to delete it,
but I still use the PROFILE_ALL_BRANCHES.

But I'm curious, what's the issue with the PROFILE_ALL_BRANCHES?

You can make it ignore files, by simply adding a:

#define DISABLE_BRANCH_PROFILING

at the top of the file (before any of the includes).

So if your issue is that it makes it hard for some code, simply add
that to the top of the file, and it should just work.

-- Steve