summaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLeo Yan <leo.yan@arm.com>2025-02-27 11:55:44 +0300
committerNamhyung Kim <namhyung@kernel.org>2025-02-28 21:09:03 +0300
commite50b291fbb6e317547f1124e90f1d0864a99f2d1 (patch)
tree97f9c4a34000ab23d910b3f50329abcbac605a20 /tools/perf/util/trace-event-scripting.c
parent3c97e7b991974bd3cd84e9d9fe962e3d1ee071ab (diff)
downloadlinux-e50b291fbb6e317547f1124e90f1d0864a99f2d1.tar.xz
perf arm-spe: Report error if set frequency
When users set the parameter '-F' to specify frequency for Arm SPE, the tool reports error: perf record -F 1000 -e arm_spe_0// -- sleep 1 Error: Invalid event (arm_spe_0//) in per-thread mode, enable system wide with '-a'. The output logs are confused and it does not give the correct reminding. Arm SPE does not support frequency setting given it adopts a statistical based approach. Alternatively, Arm SPE supports setting period. This commit adds a for frequency setting. It reports error and reminds users to set period instead. After: perf record -F 1000 -e arm_spe_0// -- sleep 1 Arm SPE: Frequency is not supported. Set period with -c option or PMU parameter (-e arm_spe_0/period=NUM/). Signed-off-by: Leo Yan <leo.yan@arm.com> Reviewed-by: James Clark <james.clark@linaro.org> Link: https://lore.kernel.org/r/20250227085544.2154136-1-leo.yan@arm.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions