[PATCH v1 0/3] perf arm-spe: Correct recording configurations

From: Leo Yan
Date: Thu Apr 29 2021 - 11:01:13 EST


This patch series is to correct Arm SPE recording configurations.

As found by James Clark, it's not reasonable for the current code for
sample flags CPU/TIME/TID which are hard coded. For TIME sample flag,
since it's always enabled, then Arm SPE has no chance for timeless
tracing; for CPU sample flag, it's not needed for per-thread mode;
for TID sample flag, it's redundant for AUX and dummy events.

This series corrects the sample flags setting, and it enables
timestamp for per-cpu mode tracing by default.

This patch set has been tested on Arm64 Hisilicon D06 platform.


Leo Yan (3):
perf arm-spe: Correct sample flags for SPE event
perf arm-spe: Correct sample flags for dummy event
perf arm-spe: Enable timestamp for per-cpu mode

tools/perf/arch/arm64/util/arm-spe.c | 66 +++++++++++++++++++++-------
1 file changed, 50 insertions(+), 16 deletions(-)

--
2.25.1