[PATCH 5.14 116/125] perf script: Fix PERF_SAMPLE_WEIGHT_STRUCT support