答复: [外部邮件] Re: [PATCH] perf/x86/intel/bts: allocate bts_ctx only if necessary
From: Li,Rongqing
Date: Wed Mar 05 2025 - 21:45:44 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>
I am sorry to introduce this bug, I will try to send a patch
Thanks to all
-Li