linux-loongson/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
..
arm64_exception_types.h perf kvm: Add kvm-stat for arm64 2020-11-04 09:42:41 -03:00
arm-spe.c perf arm-spe: Report error if set frequency 2025-02-28 10:09:03 -08:00
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 perf evsel: Introduce evsel__name_is() method to check if the evsel name is equal to a given string 2023-04-24 14:28:11 -03:00
machine.c perf parse-regs: Introduce a weak function arch__sample_reg_masks() 2024-02-15 13:48:36 -08:00
mem-events.c perf mem: Clean up perf_mem_event__supported() 2024-01-24 14:04:46 -08:00
mem-events.h perf mem: Add mem_events into the supported perf_pmu 2024-01-24 14:03:33 -08:00
perf_regs.c perf parse-regs: Introduce a weak function arch__sample_reg_masks() 2024-02-15 13:48:36 -08:00
pmu.c perf pmu: Move pmu_metrics_table__find and remove ARM override 2024-11-16 16:42:36 -03:00
tsc.c perf tsc: Add rdtsc() for Arm64 2020-09-22 13:44:16 -03:00
unwind-libdw.c perf tools: Fix compilation error on arm64 2025-02-14 11:12:12 -08:00
unwind-libunwind.c perf unwind arm64: Decouple Libunwind register names from Perf 2022-05-26 12:43:05 -03:00