[PATCH 6/8] drivers/perf: hisi: Export associated CPUs of each PMU through sysfs
Jonathan Cameron
Jonathan.Cameron at Huawei.com
Fri Oct 18 06:19:54 PDT 2024
On Fri, 18 Oct 2024 17:57:43 +0800
Yicong Yang <yangyicong at huawei.com> wrote:
> From: Yicong Yang <yangyicong at hisilicon.com>
>
> Although the event of the uncore PMU can only be opened on a single
> CPU, some PMU does have the affinity on a range of CPUs. For example
> the L3C PMU is associated to the CPUs sharing the L3T it monitors.
> Users may infer this affinity by the PMU name which may have SCCL ID
> and CCL ID encoded (for L3C etc), but it's not that straightforward.
> So export this information by adding an "associated_cpus" sysfs
> attribute then user can get this directly.
>
> Signed-off-by: Yicong Yang <yangyicong at hisilicon.com>
Seems sensible to expose this.
Reviewed-by: Jonathan Cameron <Joanthan.Cameron at huawei.com>
More information about the linux-arm-kernel
mailing list