perf event x86: Add retire_lat when synthesizing PERF_SAMPLE_WEIGHT_STRUCT
authorKan Liang <kan.liang@linux.intel.com>
Mon, 6 Feb 2023 16:20:59 +0000 (08:20 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Feb 2023 17:56:22 +0000 (14:56 -0300)
commit957ed139d760fb5257e5a587f78a339e23d9b741
treebe1099114f926202ee8ba30700b6e6484fe54b46
parente65f91b20c3d170a1e8b1b6b40cd96bea6343194
perf event x86: Add retire_lat when synthesizing PERF_SAMPLE_WEIGHT_STRUCT

In arch_perf_synthesize_sample_weight(), the retire_lat was mistakenly
missed, add it.

  perf test -v "x86 sample parsing"
   74: x86 Sample parsing                                              :
  --- start ---
  test child forked, pid 72526
  Samples differ at 'retire_lat'
  parsing failed for sample_type 0x1000000
  test child finished with -1
  ---- end ----
  x86 Sample parsing: FAILED!

Reported-by: Arnaldo Carvalho de Melo <acme@kernel.org>
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/20230206162100.3329395-1-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/event.c