2 #define _PERF_BRANCH_H 1
6 #include <linux/perf_event.h>
7 #include <linux/types.h>
22 struct branch_flags flags
;
27 struct branch_entry entries
[0];
30 struct branch_type_stat
{
32 u64 counts
[PERF_BR_MAX
];
39 void branch_type_count(struct branch_type_stat
*st
, struct branch_flags
*flags
,
42 const char *branch_type_name(int type
);
43 void branch_type_stat_display(FILE *fp
, struct branch_type_stat
*st
);
44 int branch_type_str(struct branch_type_stat
*st
, char *bf
, int bfsize
);
46 #endif /* _PERF_BRANCH_H */