Linux Perf
branch.h
Go to the documentation of this file.
1
#ifndef _PERF_BRANCH_H
2
#define _PERF_BRANCH_H 1
3
4
#include <stdint.h>
5
#include "../perf.h"
6
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
;
14
};
15
16
struct
branch_flags
;
17
18
void
branch_type_count
(
struct
branch_type_stat
*st,
struct
branch_flags
*
flags
,
19
u64 from, u64 to);
20
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);
24
25
#endif
/* _PERF_BRANCH_H */
branch_type_stat::cond_bwd
u64 cond_bwd
Definition:
branch.h:11
branch_type_count
void branch_type_count(struct branch_type_stat *st, struct branch_flags *flags, u64 from, u64 to)
Definition:
branch.c:19
branch_type_str
int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize)
Definition:
branch.c:115
branch_type_stat
Definition:
branch.h:7
branch_type_stat_display
void branch_type_stat_display(FILE *fp, struct branch_type_stat *st)
Definition:
branch.c:62
branch_flags
Definition:
event.h:140
branch_type_name
const char * branch_type_name(int type)
Definition:
branch.c:40
branch_flags::type
u64 type
Definition:
event.h:146
branch_type_stat::cross_4k
u64 cross_4k
Definition:
branch.h:12
flags
u32 flags
Definition:
builtin-script.c:1227
branch_type_stat::cond_fwd
u64 cond_fwd
Definition:
branch.h:10
branch_type_stat::branch_to
bool branch_to
Definition:
branch.h:8
branch_type_stat::cross_2m
u64 cross_2m
Definition:
branch.h:13
branch_type_stat::counts
u64 counts[PERF_BR_MAX]
Definition:
branch.h:9
util
branch.h
Generated by
1.8.13