Lines Matching refs:branch
80 struct branch { struct
89 struct branch *branch; in intel_bts_dump() argument
90 size_t i, pos = 0, br_sz = sizeof(struct branch), sz; in intel_bts_dump()
109 branch = (struct branch *)buf; in intel_bts_dump()
111 le64_to_cpu(branch->from), in intel_bts_dump()
112 le64_to_cpu(branch->to), in intel_bts_dump()
113 le64_to_cpu(branch->misc) & 0x10 ? in intel_bts_dump()
239 for (; offs < len_a; offs += sizeof(struct branch)) { in intel_bts_find_overlap()
273 struct branch *branch) in intel_bts_synth_branch_sample() argument
284 sample.ip = le64_to_cpu(branch->from); in intel_bts_synth_branch_sample()
288 sample.addr = le64_to_cpu(branch->to); in intel_bts_synth_branch_sample()
363 struct branch *branch) in intel_bts_get_branch_type() argument
367 if (!branch->from) { in intel_bts_get_branch_type()
368 if (branch->to) in intel_bts_get_branch_type()
374 } else if (!branch->to) { in intel_bts_get_branch_type()
379 err = intel_bts_get_next_insn(btsq, branch->from); in intel_bts_get_branch_type()
387 branch->from); in intel_bts_get_branch_type()
392 if (!machine__kernel_ip(btsq->bts->machine, branch->from) && in intel_bts_get_branch_type()
393 machine__kernel_ip(btsq->bts->machine, branch->to) && in intel_bts_get_branch_type()
410 struct branch *branch; in intel_bts_process_buffer() local
411 size_t sz, bsz = sizeof(struct branch); in intel_bts_process_buffer()
417 branch = buffer->use_data; in intel_bts_process_buffer()
420 branch = buffer->data; in intel_bts_process_buffer()
426 for (; sz > bsz; branch += 1, sz -= bsz) { in intel_bts_process_buffer()
427 if (!branch->from && !branch->to) in intel_bts_process_buffer()
429 intel_bts_get_branch_type(btsq, branch); in intel_bts_process_buffer()
432 le64_to_cpu(branch->from), in intel_bts_process_buffer()
433 le64_to_cpu(branch->to), in intel_bts_process_buffer()
438 err = intel_bts_synth_branch_sample(btsq, branch); in intel_bts_process_buffer()