]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Record the min/max cycles
authorJin Yao <yao.jin@linux.intel.com>
Thu, 17 May 2018 14:58:37 +0000 (22:58 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 18 May 2018 19:31:41 +0000 (16:31 -0300)
commit686a126a02c45fa00467532e7c80c14d63151416
tree45ec8def90a035bd2f60963f8f662ae006dab28d
parent970db1942f6a4698fed1e72dd48af42387faaa28
perf annotate: Record the min/max cycles

Currently perf has a feature to account cycles for LBRs

For example, on skylake:

  perf record -b ...
  perf report or perf annotate

And then browsing the annotate browser gives average cycle counts for
program blocks.

For some analysis it would be useful if we could know not only the
average cycles but also the min and max cycles.

This patch records the min and max cycles.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1526569118-14217-2-git-send-email-yao.jin@linux.intel.com
[ Switch from max/min to min/max ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h