linux/tools/perf/arch/arm64/util
Leo Yan e50b291fbb 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>
2025-02-28 10:09:03 -08:00
..
arm-spe.c perf arm-spe: Report error if set frequency 2025-02-28 10:09:03 -08:00
arm64_exception_types.h
Build perf arm64: Remove dwarf-regs.c 2024-11-09 08:39:13 -08:00
header.c perf header: Pass a perf_cpu rather than a PMU to get_cpuid_str 2024-11-16 16:40:30 -03:00
hisi-ptt.c perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_record 2024-08-28 18:15:16 -03:00
kvm-stat.c
machine.c
mem-events.c
mem-events.h
perf_regs.c
pmu.c perf pmu: Move pmu_metrics_table__find and remove ARM override 2024-11-16 16:42:36 -03:00
tsc.c
unwind-libdw.c perf tools: Fix compilation error on arm64 2025-02-14 11:12:12 -08:00
unwind-libunwind.c