Add test for the new field for Retire Latency in the X86 specific test.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20230202192209.1795329-3-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
                         const struct perf_sample *s2,
                         u64 type)
 {
-       if (type & PERF_SAMPLE_WEIGHT_STRUCT)
+       if (type & PERF_SAMPLE_WEIGHT_STRUCT) {
                COMP(ins_lat);
+               COMP(retire_lat);
+       }
 
        return true;
 }
        struct perf_sample sample = {
                .weight         = 101,
                .ins_lat        = 102,
+               .retire_lat     = 103,
        };
        struct perf_sample sample_out;
        size_t i, sz, bufsz;