aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorJin Yao <[email protected]>2016-10-31 09:19:51 +0800
committerArnaldo Carvalho de Melo <[email protected]>2016-11-14 13:25:58 -0300
commit3dd029ef94018dfa499c05778dd67d03c00b637c (patch)
treefd9bb6986c7adfe58ba6d5a453f7e3fb6347a15e /lib/test-string_helpers.c
parentf9a7be7c024319423623f58f5233234cad714e6b (diff)
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 <[email protected]> Acked-by: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: [email protected] Cc: Yao Jin <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions