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