2 #define _PERF_BRANCH_H 1
6 #include <linux/perf_event.h>
7 #include <linux/types.h>
20 struct addr_map_symbol from;
21 struct addr_map_symbol to;
22 struct branch_flags flags;
30 struct branch_flags flags;
35 struct branch_entry entries[0];
38 struct branch_type_stat {
40 u64 counts[PERF_BR_MAX];
47 void branch_type_count(struct branch_type_stat *st, struct branch_flags *flags,
50 const char *branch_type_name(int type);
51 void branch_type_stat_display(FILE *fp, struct branch_type_stat *st);
52 int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize);
54 #endif /* _PERF_BRANCH_H */