[PATCH openEuler-5.10 12/71] perf arm-spe: Refactor payload size calculation