Lines Matching refs:from
401 u32 from; in intel_pmu_lbr_read_32() member
409 cpuc->lbr_entries[i].from = msr_lastbranch.from; in intel_pmu_lbr_read_32()
437 u64 from, to, mis = 0, pred = 0, in_tx = 0, abort = 0; in intel_pmu_lbr_read_64() local
442 rdmsrl(x86_pmu.lbr_from + lbr_idx, from); in intel_pmu_lbr_read_64()
456 mis = !!(from & LBR_FROM_FLAG_MISPRED); in intel_pmu_lbr_read_64()
461 in_tx = !!(from & LBR_FROM_FLAG_IN_TX); in intel_pmu_lbr_read_64()
462 abort = !!(from & LBR_FROM_FLAG_ABORT); in intel_pmu_lbr_read_64()
465 from = (u64)((((s64)from) << skip) >> skip); in intel_pmu_lbr_read_64()
478 cpuc->lbr_entries[out].from = from; in intel_pmu_lbr_read_64()
643 static int branch_type(unsigned long from, unsigned long to, int abort) in branch_type() argument
654 from_plm = kernel_ip(from) ? X86_BR_KERNEL : X86_BR_USER; in branch_type()
660 if (from == 0 || to == 0) in branch_type()
675 bytes_left = copy_from_user_nmi(buf, (void __user *)from, in branch_type()
689 if (kernel_text_address(from)) { in branch_type()
690 addr = (void *)from; in branch_type()
817 u64 from, to; in intel_pmu_lbr_filter() local
828 from = cpuc->lbr_entries[i].from; in intel_pmu_lbr_filter()
831 type = branch_type(from, to, cpuc->lbr_entries[i].abort); in intel_pmu_lbr_filter()
841 cpuc->lbr_entries[i].from = 0; in intel_pmu_lbr_filter()
851 if (!cpuc->lbr_entries[i].from) { in intel_pmu_lbr_filter()
856 if (!cpuc->lbr_entries[i].from) in intel_pmu_lbr_filter()