[PATCH openEuler-5.10 51/80] perf jevents: Tidy error handling