Home
last modified time | relevance | path

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

/linux/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.c730 unsigned long debugctl, msk; in __switch_to_xtra() local
732 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
733 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
735 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
736 wrmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
H A Dtraps.c1249 unsigned long debugctl; in exc_debug_kernel() local
1251 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
1252 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
1253 wrmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/linux/arch/x86/events/intel/
H A Dlbr.c125 u64 debugctl, lbr_select = 0, orig_debugctl; in __intel_pmu_lbr_enable() local
143 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
144 orig_debugctl = debugctl; in __intel_pmu_lbr_enable()
147 debugctl |= DEBUGCTLMSR_LBR; in __intel_pmu_lbr_enable()
154 debugctl &= ~DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
156 debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
158 if (orig_debugctl != debugctl) in __intel_pmu_lbr_enable()
159 wrmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
/linux/arch/x86/include/asm/xen/
H A Dinterface.h296 uint64_t debugctl; member
/linux/arch/x86/events/
H A Dperf_event.h1632 u64 debugctl; in __intel_pmu_lbr_disable() local
1634 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
1635 debugctl &= ~(DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI); in __intel_pmu_lbr_disable()
1636 wrmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
H A Dcore.c1563 u64 pebs, debugctl; in perf_event_print_debug() local
1593 rdmsrq(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1594 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()
/linux/arch/x86/kvm/vmx/
H A Dvmx.c2296 u64 debugctl = 0; in vmx_get_supported_debugctl() local
2300 debugctl |= DEBUGCTLMSR_BUS_LOCK_DETECT; in vmx_get_supported_debugctl()
2304 debugctl |= DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in vmx_get_supported_debugctl()
2308 debugctl |= DEBUGCTLMSR_RTM_DEBUG; in vmx_get_supported_debugctl()
2310 return debugctl; in vmx_get_supported_debugctl()
H A Dnested.c3304 u64 debugctl = vmcs12->guest_ia32_debugctl; in nested_vmx_check_guest_state() local
3315 debugctl &= ~DEBUGCTLMSR_FREEZE_IN_SMM; in nested_vmx_check_guest_state()
3318 CC(!vmx_is_valid_debugctl(vcpu, debugctl, false))) in nested_vmx_check_guest_state()