Skip to content

Enable display of partial and empty SVE predicates from Arm SPE data

James Clark linux-arm-kernel linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesApplied
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Rebase onto perf/core because it no longer applied cleanly

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4perf event: Add simd_flags field to perf_sampletools/perf/util/sample.h+13 -00 replies
2/4perf arm-spe: Refactor arm-spe to support operation packet typetools/perf/util/arm-spe-decoder/arm-spe-decoder.c tools/perf/util/arm-spe-decoder/arm-spe-decoder.h tools/perf/util/arm-spe.c+67 -180 replies
3/4perf arm-spe: Add SVE flags to the SPE samplestools/perf/util/arm-spe.c+20 -00 replies
4/4perf report: Add 'simd' sort fieldtools/perf/Documentation/perf-report.txt tools/perf/util/hist.c tools/perf/util/hist.h +2 more+52 -01 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan Rogers
SeriesA-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Enable display of partial and empty SVE predicates from Arm SPE data

Changes since v1:
* Rebase onto perf/core because it no longer applied cleanly

------------

Hi,

I'm submitting this on behalf of German who moved on to work on other things in Arm before he could finish it off.

The predicate information is available on SPE samples from Armv8.3 (FEAT_SPEv1p1), this could be useful info for profiling SVE code as partial and empty predicates indicate that the full vector width isn't being used. There is a good example in the last commit message.

Though currently, there isn't a suitable field to store the info on Perf samples, so this change also adds a new SIMD field. This field could be used by other architectures, but currently there is only one bit reserved to identify SVE. It's only added to struct perf_sample on the userspace side, and isn't part of the kernel ABI, so it doesn't survive a perf inject. Although this is the same behavior for some other fields like branch flags, so I don't think it should be an issue to do something similar here. Perhaps in the future we could make sure everything that is synthesised from auxtrace data also makes it back into the new Perf inject file without being lost.

German Gomez (4):
perf event: Add simd_flags field to perf_sample
perf arm-spe: Refactor arm-spe to support operation packet type perf arm-spe: Add SVE flags to the SPE samples
perf report: Add 'simd' sort field

 tools/perf/Documentation/perf-report.txt      |  1 +
 .../util/arm-spe-decoder/arm-spe-decoder.c    | 30 ++++++++++--
 .../util/arm-spe-decoder/arm-spe-decoder.h    | 47 +++++++++++++++----
 tools/perf/util/arm-spe.c                     | 28 +++++++++--
 tools/perf/util/hist.c                        |  1 +
 tools/perf/util/hist.h                        |  1 +
 tools/perf/util/sample.h                      | 13 +++++
 tools/perf/util/sort.c                        | 47 +++++++++++++++++++
 tools/perf/util/sort.h                        |  2 +
 9 files changed, 152 insertions(+), 18 deletions(-)

base-commit: 96d541699e5c50b1bc2d50c83cd7145994d5f071

Signature · 7 lines
2.34.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel