Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / tools / perf / util / branch.h
blob1e3c7c5cdc6346387a64af433390964e2df493d9
1 #ifndef _PERF_BRANCH_H
2 #define _PERF_BRANCH_H 1
4 #include <stdint.h>
5 #include "../perf.h"
7 struct branch_type_stat {
8 bool branch_to;
9 u64 counts[PERF_BR_MAX];
10 u64 cond_fwd;
11 u64 cond_bwd;
12 u64 cross_4k;
13 u64 cross_2m;
16 struct branch_flags;
18 void branch_type_count(struct branch_type_stat *st, struct branch_flags *flags,
19 u64 from, u64 to);
21 const char *branch_type_name(int type);
22 void branch_type_stat_display(FILE *fp, struct branch_type_stat *st);
23 int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize);
25 #endif /* _PERF_BRANCH_H */