[OLK-5.10 19/36] perf test: Factor out pmu-events alias comparison