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

Steven Rostedt
2021-06-24T13:05:05Z

On Thu, 24 Jun 2021 11:40:59 +0200
Peter Zijlstra <peterz@infradead.org> 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