diff options
author | James Clark <[email protected]> | 2023-07-05 09:26:51 +0100 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2023-07-05 12:22:46 -0700 |
commit | 808ce56e7d6bfc144b18ded8c11819c45a889520 (patch) | |
tree | 602486015d866ac49f35ec7c3b303455ee22cb28 /tools/perf/util/trace-event-scripting.c | |
parent | b2ad9549bfd0c1f74287492a9d9a31a03c97f088 (diff) |
perf test: Fix event parsing test on Arm
The test looks for a PMU from sysfs with type = PERF_TYPE_RAW when
opening a raw event. Arm doesn't have a real raw PMU, only core PMUs
with unique types other than raw.
Instead of looking for a matching PMU, just test that the event type
was parsed as raw and skip the PMU search on Arm. The raw event type
test should also apply to all platforms so add it outside of the ifdef.
Fixes: aefde50a446b ("perf test: Fix parse-events tests for >1 core PMU")
Acked-by: Ian Rogers <[email protected]>
Signed-off-by: James Clark <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions