Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/kernel/
H A Dstep.c176 unsigned long debugctl; in set_task_blockstep() local
188 debugctl = get_debugctlmsr(); in set_task_blockstep()
190 debugctl |= DEBUGCTLMSR_BTF; in set_task_blockstep()
193 debugctl &= ~DEBUGCTLMSR_BTF; in set_task_blockstep()
197 update_debugctlmsr(debugctl); in set_task_blockstep()
H A Dprocess.c711 unsigned long debugctl, msk; in __switch_to_xtra() local
713 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
714 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
716 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
717 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
H A Dtraps.c1121 unsigned long debugctl; in exc_debug_kernel() local
1123 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
1124 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
1125 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/linux-6.15/arch/x86/events/intel/
H A Dlbr.c124 u64 debugctl, lbr_select = 0, orig_debugctl; in __intel_pmu_lbr_enable() local
142 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
143 orig_debugctl = debugctl; in __intel_pmu_lbr_enable()
146 debugctl |= DEBUGCTLMSR_LBR; in __intel_pmu_lbr_enable()
153 debugctl &= ~DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
155 debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
157 if (orig_debugctl != debugctl) in __intel_pmu_lbr_enable()
158 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
/linux-6.15/arch/x86/include/asm/xen/
H A Dinterface.h296 uint64_t debugctl; member
/linux-6.15/arch/x86/events/
H A Dperf_event.h1551 u64 debugctl; in __intel_pmu_lbr_disable() local
1553 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
1554 debugctl &= ~(DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI); in __intel_pmu_lbr_disable()
1555 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
H A Dcore.c1538 u64 pebs, debugctl; in perf_event_print_debug() local
1568 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1569 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()
/linux-6.15/arch/x86/kvm/vmx/
H A Dvmx.c2182 u64 debugctl = 0; in vmx_get_supported_debugctl() local
2186 debugctl |= DEBUGCTLMSR_BUS_LOCK_DETECT; in vmx_get_supported_debugctl()
2190 debugctl |= DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in vmx_get_supported_debugctl()
2192 return debugctl; in vmx_get_supported_debugctl()