[OLK-5.10 16/36] perf test: Factor out pmu-events event comparison