[Kernel] [PATCH OpenHarmony-5.10 03/89] perf parse-events: Check if the software events array slots are populated