linux/tools/perf/arch/arm64/util
James Clark 83eff458a6 perf arm-spe: Don't warn about the discard bit if it doesn't exist
Opening an SPE event shows a warning that doesn't concern the user:

  $ perf record -e arm_spe
  Unknown/empty format name: discard

Perf only wants to know if the discard bit is set for configuring the
event, not in response to anything the user has done. Fix it by adding
another helper that returns if a config bit exists without warning.

We should probably keep the warning in evsel__get_config_val() to avoid
having every caller having to do it, and most format bits should never
be missing.

Add a test for the new helper. Rename the parent test function to be
more generic rather than adding a new one as it requires a lot of
boilerplate.

Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-05-29 21:20:50 -03:00
..
arm-spe.c perf arm-spe: Don't warn about the discard bit if it doesn't exist 2026-05-29 21:20:50 -03:00
Build perf unwind-libunwind: Make libunwind register reading cross platform 2026-05-15 16:18:36 -03:00
header.c libperf cpumap: Make index and nr types unsigned 2026-04-01 14:50:53 -07:00
hisi-ptt.c perf auxtrace: Remove errno.h from auxtrace.h and fix transitive dependencies 2025-11-13 23:03:11 -08:00
mem-events.c perf mem: Simplify Arm SPE event config 2026-01-20 17:31:05 -03:00
mem-events.h perf mem: Add mem_events into the supported perf_pmu 2024-01-24 14:03:33 -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