]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test parse-events: Use evsel__match for legacy events
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:24 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:11 +0000 (23:59 +0900)
commitecfcc6a825dfacdb4f3cf38fe4b463396fa0d029
treef629554d8b747deb334f48e1767f5d8b0a1af671
parent787bd5781785472ef9296ce66d6f917a19a422a4
perf test parse-events: Use evsel__match for legacy events

Switch from the test's assert_hw/test_config to the common
evsel__match code that appropriately handles events with both legacy
and sysfs/json encoding.

For tests asserting that a config value matches that placed in the
perf_event_attr just directly compare the config values.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/parse-events.c