[PATCH openEuler-5.10 22/71] perf arm-spe: Refactor counter packet handling