Lines Matching refs:from
386 u32 from; in intel_pmu_lbr_read_32() member
394 cpuc->lbr_entries[i].from = msr_lastbranch.from; in intel_pmu_lbr_read_32()
418 u64 from, to, mis = 0, pred = 0, in_tx = 0, abort = 0; in intel_pmu_lbr_read_64() local
422 rdmsrl(x86_pmu.lbr_from + lbr_idx, from); in intel_pmu_lbr_read_64()
426 mis = !!(from & LBR_FROM_FLAG_MISPRED); in intel_pmu_lbr_read_64()
431 in_tx = !!(from & LBR_FROM_FLAG_IN_TX); in intel_pmu_lbr_read_64()
432 abort = !!(from & LBR_FROM_FLAG_ABORT); in intel_pmu_lbr_read_64()
435 from = (u64)((((s64)from) << skip) >> skip); in intel_pmu_lbr_read_64()
448 cpuc->lbr_entries[out].from = from; in intel_pmu_lbr_read_64()
607 static int branch_type(unsigned long from, unsigned long to, int abort) in branch_type() argument
618 from_plm = kernel_ip(from) ? X86_BR_KERNEL : X86_BR_USER; in branch_type()
624 if (from == 0 || to == 0) in branch_type()
639 bytes_left = copy_from_user_nmi(buf, (void __user *)from, in branch_type()
653 if (kernel_text_address(from)) { in branch_type()
654 addr = (void *)from; in branch_type()
781 u64 from, to; in intel_pmu_lbr_filter() local
792 from = cpuc->lbr_entries[i].from; in intel_pmu_lbr_filter()
795 type = branch_type(from, to, cpuc->lbr_entries[i].abort); in intel_pmu_lbr_filter()
805 cpuc->lbr_entries[i].from = 0; in intel_pmu_lbr_filter()
815 if (!cpuc->lbr_entries[i].from) { in intel_pmu_lbr_filter()
820 if (!cpuc->lbr_entries[i].from) in intel_pmu_lbr_filter()