[PATCH openEuler-5.10-LTS 24/28] perf symbols: Fix symbol size calculation condition