]> git.baikalelectronics.ru Git - kernel.git/commit
perf script: Support instruction latency
authorKan Liang <kan.liang@linux.intel.com>
Wed, 29 Sep 2021 15:38:14 +0000 (08:38 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 Oct 2021 12:28:03 +0000 (09:28 -0300)
commita4c44914ea49da5905678b7f9383c3644d411ae9
treefce3fe455cc4d5a03bf91d4921de63172f672ed7
parent0dd98010facb3b0bed0117ca0b603ad59a5c6b11
perf script: Support instruction latency

The instruction latency information can be recorded on
some platforms, e.g., the Intel Sapphire Rapids server. With both memory
latency (weight) and the new instruction latency information, users can
easily locate the expensive load instructions, and also understand the time
spent in different stages. The users can optimize their applications in
different pipeline stages.

Add a new field "ins_lat" to filter the instruction latency information,
which is available with sample type PERF_SAMPLE_WEIGHT_STRUCT.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Joe Mario <jmario@redhat.com>
Link: https://lore.kernel.org/r/1632929894-102778-2-git-send-email-kan.liang@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-script.txt
tools/perf/builtin-script.c