Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: 9d3cce1e8b8561fed5f383d22a4d6949db4eadbe authored by Linus Torvalds on 15 July 2018, 19:49:31 UTC
Linux 4.18-rc5
Tip revision: 9d3cce1
branch.h
#ifndef _PERF_BRANCH_H
#define _PERF_BRANCH_H 1

#include <stdint.h>
#include "../perf.h"

struct branch_type_stat {
	bool	branch_to;
	u64	counts[PERF_BR_MAX];
	u64	cond_fwd;
	u64	cond_bwd;
	u64	cross_4k;
	u64	cross_2m;
};

struct branch_flags;

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);
int branch_type_str(struct branch_type_stat *st, char *bf, int bfsize);

#endif /* _PERF_BRANCH_H */
back to top