Lines Matching defs:branch
80 struct branch {
89 struct branch *branch;
90 size_t i, pos = 0, br_sz = sizeof(struct branch), sz;
109 branch = (struct branch *)buf;
111 le64_to_cpu(branch->from),
112 le64_to_cpu(branch->to),
113 le64_to_cpu(branch->misc) & 0x10 ?
239 for (; offs < len_a; offs += sizeof(struct branch)) {
273 struct branch *branch)
284 sample.ip = le64_to_cpu(branch->from);
288 sample.addr = le64_to_cpu(branch->to);
312 pr_err("Intel BTS: failed to deliver branch event, error %d\n",
363 struct branch *branch)
367 if (!branch->from) {
368 if (branch->to)
374 } else if (!branch->to) {
379 err = intel_bts_get_next_insn(btsq, branch->from);
387 branch->from);
391 /* Check for an async branch into the kernel */
392 if (!machine__kernel_ip(btsq->bts->machine, branch->from) &&
393 machine__kernel_ip(btsq->bts->machine, branch->to) &&
410 struct branch *branch;
411 size_t sz, bsz = sizeof(struct branch);
417 branch = buffer->use_data;
420 branch = buffer->data;
426 for (; sz > bsz; branch += 1, sz -= bsz) {
427 if (!branch->from && !branch->to)
429 intel_bts_get_branch_type(btsq, branch);
432 le64_to_cpu(branch->from),
433 le64_to_cpu(branch->to),
438 err = intel_bts_synth_branch_sample(btsq, branch);