perf tests: Add tool PMU test
authorIan Rogers <irogers@google.com>
Wed, 2 Oct 2024 03:20:13 +0000 (20:20 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 11 Oct 2024 06:41:13 +0000 (23:41 -0700)
commit8c25df7af322040fdf5041e912af7cc810b0f86d
treec90f546f4968259fef652663882b077b2939ec16
parent609aa2667f67c1588d4e741110265f74b7713177
perf tests: Add tool PMU test

Ensure parsing with and without PMU creates events with the expected
config values. This ensures the tool.json doesn't get out of sync with
tool_pmu_event enum.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20241002032016.333748-11-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/tests.h
tools/perf/tests/tool_pmu.c [new file with mode: 0644]