[PATCH 5.15 31/32] perf symbols: Fix symbol size calculation condition