]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit3dd029ef94018dfa499c05778dd67d03c00b637c
treefd9bb6986c7adfe58ba6d5a453f7e3fb6347a15e
parentf9a7be7c024319423623f58f5233234cad714e6b
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