Home
last modified time | relevance | path

Searched refs:lbr_sel (Results 1 – 5 of 5) sorted by relevance

/linux-6.15/arch/x86/events/amd/
H A Dcore.c580 cpuc->lbr_sel = kzalloc_node(sizeof(struct er_account), GFP_KERNEL, in amd_pmu_cpu_prepare()
582 if (!cpuc->lbr_sel) in amd_pmu_cpu_prepare()
594 kfree(cpuc->lbr_sel); in amd_pmu_cpu_prepare()
595 cpuc->lbr_sel = NULL; in amd_pmu_cpu_prepare()
636 kfree(cpuhw->lbr_sel); in amd_pmu_cpu_dead()
637 cpuhw->lbr_sel = NULL; in amd_pmu_cpu_dead()
H A Dlbr.c349 cpuc->lbr_sel->config = reg->config; in amd_pmu_lbr_add()
398 lbr_select = cpuc->lbr_sel->config & LBR_SELECT_MASK; in amd_pmu_lbr_enable_all()
/linux-6.15/arch/x86/events/intel/
H A Dlbr.c137 if (cpuc->lbr_sel) in __intel_pmu_lbr_enable()
138 lbr_select = cpuc->lbr_sel->config & x86_pmu.lbr_sel_mask; in __intel_pmu_lbr_enable()
139 if (!static_cpu_has(X86_FEATURE_ARCH_LBR) && !pmi && cpuc->lbr_sel) in __intel_pmu_lbr_enable()
386 wrmsrl(MSR_LBR_SELECT, task_ctx->lbr_sel); in intel_pmu_lbr_restore()
478 rdmsrl(MSR_LBR_SELECT, task_ctx->lbr_sel); in intel_pmu_lbr_save()
782 if (cpuc->lbr_sel) { in intel_pmu_lbr_read_64()
783 need_info = !(cpuc->lbr_sel->config & LBR_NO_INFO); in intel_pmu_lbr_read_64()
784 if (cpuc->lbr_sel->config & LBR_CALL_STACK) in intel_pmu_lbr_read_64()
H A Dcore.c5191 cpuc->lbr_sel = NULL; in intel_pmu_cpu_starting()
5240 cpuc->lbr_sel = &cpuc->shared_regs->regs[EXTRA_REG_LBR]; in intel_pmu_cpu_starting()
/linux-6.15/arch/x86/events/
H A Dperf_event.h305 struct er_account *lbr_sel; member
996 u64 lbr_sel; member