]> git.baikalelectronics.ru Git - kernel.git/commit
perf report: Calculate and return the branch flag counting
authorJin Yao <yao.jin@linux.intel.com>
Mon, 31 Oct 2016 01:19:51 +0000 (09:19 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Nov 2016 16:25:58 +0000 (13:25 -0300)
commit6c4b702f960e0c70b0c293311ff31a85156bb313
treefd9bb6986c7adfe58ba6d5a453f7e3fb6347a15e
parentfedcde3723edc03316992cd36e24f295b3cf20b0
perf report: Calculate and return the branch flag counting

Create some branch counters in per callchain list entry. Each counter
is for a branch flag. For example, predicted_count counts all the
*predicted* branches. The counters get updated by processing the
callchain cursor nodes.

It also provides functions to retrieve or print the values of counters
in callchain list.

Besides the counting for branch flags, it also counts and returns the
average number of iterations.

Signed-off-by: Yao Jin <yao.jin@linux.intel.com>
Acked-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linux-kernel@vger.kernel.org
Cc: Yao Jin <yao.jin@linux.intel.com>
Link: http://lkml.kernel.org/r/1477876794-30749-4-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c
tools/perf/util/callchain.h