perf report: Support Retire Latency
authorKan Liang <kan.liang@linux.intel.com>
Wed, 4 Jan 2023 20:13:48 +0000 (12:13 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Feb 2023 20:24:02 +0000 (17:24 -0300)
commitd7d213e04cf83318681f24870f1144e50d5c91bb
tree8d1886bcb767c03cd12d788cf76b10af2d33735f
parentebab291641bed48f62c608e3bf29071c435c2d9b
perf report: Support Retire Latency

The Retire Latency field is added in the var3_w of the
PERF_SAMPLE_WEIGHT_STRUCT. The Retire Latency reports pipeline stall of
this instruction compared to the previous instruction in cycles.  That's
quite useful to display the information with perf mem report.

The p_stage_cyc for Power is also from the var3_w. Union the p_stage_cyc
and retire_lat to share the code.

Implement X86 specific codes to display the X86 specific header.

Add a new sort key retire_lat for the Retire Latency.

Reviewed-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20230104201349.1451191-8-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-report.txt
tools/perf/arch/x86/util/event.c
tools/perf/util/sample.h
tools/perf/util/sort.c
tools/perf/util/sort.h