Skip to content

RFC perf: arm_spe: Fix consistency of CONTEXT packets in SPE driver

German Gomez linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf: arm_spe: Fix consistency of PMSCR register bit CXdrivers/perf/arm_spe_pmu.c+4 -212 replies
2/2perf: arm_spe: Enable CONTEXT packets in SPE traces if the profiler runs in CPU mode.drivers/perf/arm_spe_pmu.c+1 -13 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJames Clark
1/2
2/2Co-authored-by

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] perf: arm_spe: Fix consistency of CONTEXT packets in SPE driver

Applies a couple of small changes to the arm_spe_pmu driver.

We are seeing context packets in an inconsistent number of SPE records even when the perf-tool runs without the needed capabilities. This is fixed in [1/2].

We're also allowing CONTEXT packets to be collected in per-cpu events in [2/2].

I'm sending as an RFC because it's the first time I change driver code. Also I'm not 100% sure of the approach in [2/2] (from a security and/or implementation standpoint).

Thanks,
German

- [PATCH 1/2] Fixes the consistency issue with the context packets.
- [PATCH 2/2] Enables context packets in per-cpu events.

German Gomez (2):
perf: arm_spe: Fix consistency of PMSCR register bit CX
perf: arm_spe: Enable CONTEXT packets in SPE traces if the profiler
runs in CPU mode.

 drivers/perf/arm_spe_pmu.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1