2 #define _PERF_BRANCH_H 1
4 * The linux/stddef.h isn't need here, but is needed for __always_inline used
5 * in files included from uapi/linux/perf_event.h such as
6 * /usr/include/linux/swab.h and /usr/include/linux/byteorder/little_endian.h,
7 * detected in at least musl libc, used in Alpine Linux. -acme
11 #include <linux/compiler.h>
12 #include <linux/stddef.h>
13 #include <linux/perf_event.h>
14 #include <linux/types.h>
27 struct addr_map_symbol from
;
28 struct addr_map_symbol to
;
29 struct branch_flags flags
;
37 struct branch_flags flags
;
42 struct branch_entry entries
[0];
45 struct branch_type_stat
{
47 u64 counts
[PERF_BR_MAX
];
54 void branch_type_count(struct branch_type_stat
*st
, struct branch_flags
*flags
,
57 const char *branch_type_name(int type
);
58 void branch_type_stat_display(FILE *fp
, struct branch_type_stat
*st
);
59 int branch_type_str(struct branch_type_stat
*st
, char *bf
, int bfsize
);
61 #endif /* _PERF_BRANCH_H */