linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/7] perf arm-spe: Refactor data source encoding
@ 2024-10-03 18:53 Leo Yan
  2024-10-03 18:53 ` [PATCH v3 1/7] perf arm-spe: Rename arm_spe__synth_data_source_generic() Leo Yan
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Leo Yan @ 2024-10-03 18:53 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Besar Wicaksono,
	James Clark, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Liang, Kan, John Garry, Will Deacon,
	Mike Leach, linux-perf-users, linux-kernel, linux-arm-kernel
  Cc: Leo Yan

As more Arm CPU variants (not only Neoverse CPUs) support data source
encoding, they share the same format for the data source packet.

To extend supporting these CPU variants for Arm SPE data source, this
series refactors the code. It converts the Neoverse specific naming to
the common naming, and then based on the MIDR stored in the metadata to
decide if the CPU follows up the common encoding format.

At the last, it extends CPU list for Neoverse-V2 and Cortex CPUs.

This patch series is dependent on the metadata version 2 series [1] for
retrieving CPU MIDR. It has been verified for per CPU mode and per
thread mode on Cortex-A725 CPUs.

[1] https://lore.kernel.org/linux-perf-users/20241003184302.190806-1-leo.yan@arm.com/T/#t

Changes from v2:
- Rebased on the latest metadata version 2 series [1].

Changes from v1:
- Dropped LDS bit checking in data source parsing.


Besar Wicaksono (1):
  perf arm-spe: Add Neoverse-V2 to common data source encoding list

Leo Yan (6):
  perf arm-spe: Rename arm_spe__synth_data_source_generic()
  perf arm-spe: Rename the common data source encoding
  perf arm-spe: Introduce arm_spe__is_homogeneous()
  perf arm-spe: Use metadata to decide the data source feature
  perf arm-spe: Remove the unused 'midr' field
  perf arm-spe: Add Cortex CPUs to common data source encoding list

 .../util/arm-spe-decoder/arm-spe-decoder.h    |  18 +--
 tools/perf/util/arm-spe.c                     | 135 +++++++++++++++---
 2 files changed, 121 insertions(+), 32 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-10-16 17:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-03 18:53 [PATCH v3 0/7] perf arm-spe: Refactor data source encoding Leo Yan
2024-10-03 18:53 ` [PATCH v3 1/7] perf arm-spe: Rename arm_spe__synth_data_source_generic() Leo Yan
2024-10-03 18:53 ` [PATCH v3 2/7] perf arm-spe: Rename the common data source encoding Leo Yan
2024-10-03 18:53 ` [PATCH v3 3/7] perf arm-spe: Introduce arm_spe__is_homogeneous() Leo Yan
2024-10-03 18:53 ` [PATCH v3 4/7] perf arm-spe: Use metadata to decide the data source feature Leo Yan
2024-10-10 13:53   ` James Clark
2024-10-10 14:58     ` Leo Yan
2024-10-03 18:53 ` [PATCH v3 5/7] perf arm-spe: Remove the unused 'midr' field Leo Yan
2024-10-03 18:53 ` [PATCH v3 6/7] perf arm-spe: Add Neoverse-V2 to common data source encoding list Leo Yan
2024-10-03 18:53 ` [PATCH v3 7/7] perf arm-spe: Add Cortex CPUs " Leo Yan
2024-10-10 13:54 ` [PATCH v3 0/7] perf arm-spe: Refactor data source encoding James Clark
2024-10-16 17:12 ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).