Re: [PATCH] perf/x86/intel/bts: allocate bts_ctx only if necessary

From: Dave Hansen
Date: Wed Mar 05 2025 - 11:11:35 EST


Jiri, thanks for the report!

On 3/5/25 06:58, Adrian Hunter wrote:
> It looks like there are 3 functions affected:
>
> intel_bts_enable_local()
> intel_bts_disable_local()
> intel_bts_interrupt()
>
> Perhaps make them static calls?

That, or a few:

if (!bts_ctx)
return;

if you're not feeling as fancy would do.

Would someone be interested in sending an actual tested patch, ideally
the patch author of the regression? <hint, hint>