branch.h (510457ec9dc259b002879bcfe475f89d4514a0fc) branch.h (a1a8bed32de197801bb861fbf13cd01496df3e05)
1#ifndef _PERF_BRANCH_H
2#define _PERF_BRANCH_H 1
3
4#include <stdint.h>
5#include "../perf.h"
6
7struct branch_type_stat {
1#ifndef _PERF_BRANCH_H
2#define _PERF_BRANCH_H 1
3
4#include <stdint.h>
5#include "../perf.h"
6
7struct branch_type_stat {
8 u64 counts[PERF_BR_MAX];
9 u64 cond_fwd;
10 u64 cond_bwd;
11 u64 cross_4k;
12 u64 cross_2m;
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;
13};
14
15struct branch_flags;
16
17void branch_type_count(struct branch_type_stat *st, struct branch_flags *flags,
18 u64 from, u64 to);
19
20const char *branch_type_name(int type);
21void branch_type_stat_display(FILE *fp, struct branch_type_stat *st);
22int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize);
23
24#endif /* _PERF_BRANCH_H */
14};
15
16struct branch_flags;
17
18void branch_type_count(struct branch_type_stat *st, struct branch_flags *flags,
19 u64 from, u64 to);
20
21const char *branch_type_name(int type);
22void branch_type_stat_display(FILE *fp, struct branch_type_stat *st);
23int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize);
24
25#endif /* _PERF_BRANCH_H */