Home
last modified time | relevance | path

Searched refs:debugctl (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/arch/x86/kernel/
Dstep.c169 unsigned long debugctl; in set_task_blockstep() local
182 debugctl = get_debugctlmsr(); in set_task_blockstep()
184 debugctl |= DEBUGCTLMSR_BTF; in set_task_blockstep()
187 debugctl &= ~DEBUGCTLMSR_BTF; in set_task_blockstep()
191 update_debugctlmsr(debugctl); in set_task_blockstep()
Dprocess.c514 unsigned long debugctl, msk; in __switch_to_xtra() local
516 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
517 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
519 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
520 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
/Linux-v5.4/arch/x86/events/intel/
Dlbr.c156 u64 debugctl, lbr_select = 0, orig_debugctl; in __intel_pmu_lbr_enable() local
174 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
175 orig_debugctl = debugctl; in __intel_pmu_lbr_enable()
176 debugctl |= DEBUGCTLMSR_LBR; in __intel_pmu_lbr_enable()
183 debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
184 if (orig_debugctl != debugctl) in __intel_pmu_lbr_enable()
185 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
190 u64 debugctl; in __intel_pmu_lbr_disable() local
192 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
193 debugctl &= ~(DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI); in __intel_pmu_lbr_disable()
[all …]
/Linux-v5.4/arch/x86/kernel/kprobes/
Dcore.c548 unsigned long debugctl = get_debugctlmsr(); in clear_btf() local
550 debugctl &= ~DEBUGCTLMSR_BTF; in clear_btf()
551 update_debugctlmsr(debugctl); in clear_btf()
558 unsigned long debugctl = get_debugctlmsr(); in restore_btf() local
560 debugctl |= DEBUGCTLMSR_BTF; in restore_btf()
561 update_debugctlmsr(debugctl); in restore_btf()
/Linux-v5.4/arch/x86/include/asm/xen/
Dinterface.h293 uint64_t debugctl; member
/Linux-v5.4/arch/x86/events/
Dcore.c1350 u64 pebs, debugctl; in perf_event_print_debug() local
1379 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1380 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()