Re: [RFC PATCH 11/20] objtool: Detect code coverage instrumentation in noinstr code
From: Sasha Levin
Date: Wed Oct 28 2026 - 12:48:55 EST
On Wed, Oct 28, 2026 at 03:11:48PM +0100, Peter Zijlstra wrote:
>Since you can have many relocations to the same symbol; does it make
>sense to cache the results of those many strcmp()s in symbol::coverage
>or something? We have plenty bits left in struct symbol.
Sure, I'll throw in a symbol::coverage_counter bit in classify_symbols(). It
has to happen before the is_global_sym() check there, since the counters, and
the section symbols that relocations often point at, are local.
>Perhaps merge with the previous conditional?
Will do.
--
Thanks,
Sasha