[PATCH v2 11/13] perf arm_spe: Refactor arm_spe__get_metadata_by_cpu()
Leo Yan
leo.yan at arm.com
Tue Jul 1 01:20:25 PDT 2025
On Mon, Jun 30, 2025 at 09:53:18AM -0700, Ian Rogers wrote:
[...]
> > + /* CPU ID is -1 for per-thread mode */
> > + if (cpu < 0) {
> > + /*
> > + * On the heterogeneous system, due to CPU ID is -1,
> > + * cannot confirm the meta data.
> > + */
> > + if (!spe->is_homogeneous)
> > + return NULL;
> > +
> > + /* In homogeneous system, simply use CPU0's metadata */
>
> Could this be derived from the spe's pmu_type? Something like
> perf_pmus__find_by_type(spe->pmu_type)->cpus ?
Good point, I will give a try. Thanks for suggestion!
Leo
More information about the linux-arm-kernel
mailing list