Linux Perf
branch.c File Reference
#include "perf.h"
#include "util/util.h"
#include "util/debug.h"
#include "util/branch.h"
Include dependency graph for branch.c:

Go to the source code of this file.

Macros

#define AREA_4K   4096
 
#define AREA_2M   (2 * 1024 * 1024)
 

Functions

static bool cross_area (u64 addr1, u64 addr2, int size)
 
void branch_type_count (struct branch_type_stat *st, struct branch_flags *flags, u64 from, u64 to)
 
const char * branch_type_name (int type)
 
void branch_type_stat_display (FILE *fp, struct branch_type_stat *st)
 
static int count_str_scnprintf (int idx, const char *str, char *bf, int size)
 
int branch_type_str (struct branch_type_stat *st, char *bf, int size)
 

Macro Definition Documentation

◆ AREA_2M

#define AREA_2M   (2 * 1024 * 1024)

Definition at line 17 of file branch.c.

◆ AREA_4K

#define AREA_4K   4096

Definition at line 16 of file branch.c.

Function Documentation

◆ branch_type_count()

void branch_type_count ( struct branch_type_stat st,
struct branch_flags flags,
u64  from,
u64  to 
)

Definition at line 19 of file branch.c.

Here is the call graph for this function:

◆ branch_type_name()

const char* branch_type_name ( int  type)

Definition at line 40 of file branch.c.

◆ branch_type_stat_display()

void branch_type_stat_display ( FILE *  fp,
struct branch_type_stat st 
)

Definition at line 62 of file branch.c.

Here is the call graph for this function:

◆ branch_type_str()

int branch_type_str ( struct branch_type_stat st,
char *  bf,
int  size 
)

Definition at line 115 of file branch.c.

Here is the call graph for this function:

◆ count_str_scnprintf()

static int count_str_scnprintf ( int  idx,
const char *  str,
char *  bf,
int  size 
)
static

Definition at line 110 of file branch.c.

◆ cross_area()

static bool cross_area ( u64  addr1,
u64  addr2,
int  size 
)
static

Definition at line 6 of file branch.c.