branch_type
enum aarch64_insn_branch_type branch_type;
branch_type = old_t == BPF_MOD_CALL ? AARCH64_INSN_BRANCH_LINK :
if (gen_branch_or_nop(branch_type, ip, old_addr, plt, &old_insn) < 0)
branch_type = new_t == BPF_MOD_CALL ? AARCH64_INSN_BRANCH_LINK :
if (gen_branch_or_nop(branch_type, ip, new_addr, plt, &new_insn) < 0)
type = branch_type(from, to, cpuc->lbr_entries[i].abort);
int branch_type(unsigned long from, unsigned long to, int abort);
if (child && child->branch_type != branch_mux) {
if ((list->branch_type == branch_grf_mux ||
list->branch_type == branch_grf_gate ||
list->branch_type == branch_grf_mmc) &&
switch (list->branch_type) {
__func__, list->branch_type);
switch (list->branch_type) {
dev_err(dev, "unknown clock type %d\n", list->branch_type);
.branch_type = branch_mux, \
.branch_type = branch_mux, \
.branch_type = branch_grf_mux, \
.branch_type = branch_divider, \
.branch_type = branch_divider, \
.branch_type = branch_gate, \
.branch_type = branch_grf_gate, \
.branch_type = branch_linked_gate, \
.branch_type = branch_mmc, \
.branch_type = branch_grf_mmc, \
.branch_type = branch_inverter, \
.branch_type = branch_factor, \
.branch_type = branch_factor, \
.branch_type = branch_half_divider, \
.branch_type = branch_half_divider, \
.branch_type = branch_half_divider, \
.branch_type = branch_half_divider, \
enum rockchip_clk_branch_type branch_type;
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_composite, \
.branch_type = branch_fraction_divider, \
.branch_type = branch_fraction_divider, \
.branch_type = branch_fraction_divider, \
.branch_type = branch_ddrclk, \
static u64 branch_type_to_brbfcr(int branch_type)
if (branch_type & PERF_SAMPLE_BRANCH_ANY) {
if (branch_type & PERF_SAMPLE_BRANCH_ANY_CALL) {
if (branch_type & PERF_SAMPLE_BRANCH_ANY_RETURN)
if (branch_type & PERF_SAMPLE_BRANCH_IND_CALL)
if (branch_type & PERF_SAMPLE_BRANCH_COND)
if (branch_type & PERF_SAMPLE_BRANCH_IND_JUMP)
if (branch_type & PERF_SAMPLE_BRANCH_CALL)
static u64 branch_type_to_brbcr(int branch_type)
if (branch_type & PERF_SAMPLE_BRANCH_USER)
if (branch_type & PERF_SAMPLE_BRANCH_KERNEL)
if (branch_type & PERF_SAMPLE_BRANCH_HV) {
if (!(branch_type & PERF_SAMPLE_BRANCH_NO_CYCLES))
if (!(branch_type & PERF_SAMPLE_BRANCH_NO_FLAGS))
if (branch_type & PERF_SAMPLE_BRANCH_KERNEL) {
if (branch_type & PERF_SAMPLE_BRANCH_ANY) {
if (branch_type & PERF_SAMPLE_BRANCH_ANY_CALL)
if (branch_type & PERF_SAMPLE_BRANCH_ANY_RETURN)
u64 branch_type = event->attr.branch_sample_type;
if (branch_type & BRBE_EXCLUDE_BRANCH_FILTERS) {
pr_debug("requested branch filter not supported 0x%llx\n", branch_type);
if (!(branch_type & BRBE_ALLOWED_BRANCH_TYPES)) {
pr_debug("no branch type enabled 0x%llx\n", branch_type);
pr_debug("branch filter in hypervisor or guest only not supported 0x%llx\n", branch_type);
int db_export__branch_type(struct db_export *dbe, u32 branch_type,
return dbe->export_branch_type(dbe, branch_type, name);
u32 branch_type;
err = db_export__branch_type(dbe, branch_types[i].branch_type,
u32 type = branch_types[i].branch_type;
int (*export_branch_type)(struct db_export *dbe, u32 branch_type,
int db_export__branch_type(struct db_export *dbe, u32 branch_type,
u64 branch_type = 0;
branch_type |= evsel->core.attr.branch_sample_type;
return branch_type;
static int python_export_branch_type(struct db_export *dbe, u32 branch_type,
tuple_set_s32(t, 0, branch_type);
SET_TABLE_HANDLER(branch_type);