Re: [PATCH v4 03/14] perf/x86/amd: add AMD Fam19h Branch Sampling support

From: Like Xu
Date: Wed Dec 29 2021 - 04:54:40 EST


Hi Stephane,

On 11/12/2021 5:02 am, Stephane Eranian wrote:
+ * The BRS counter could be any counter, but there is no constraint on Fam19h,
+ * therefore all counters are equal and thus we pick the first one: PMC0

Are you assuming that no other counters can be enabled (guaranteed by the
patched perf context) when BRS is enabled ? Otherwise the hard-coding of
PMC0 may destroy scheduling freedom. Can we relax this condition?

Thanks,
Like Xu