Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/kernel/
Dstep.c174 unsigned long debugctl; in set_task_blockstep() local
186 debugctl = get_debugctlmsr(); in set_task_blockstep()
188 debugctl |= DEBUGCTLMSR_BTF; in set_task_blockstep()
191 debugctl &= ~DEBUGCTLMSR_BTF; in set_task_blockstep()
195 update_debugctlmsr(debugctl); in set_task_blockstep()
Dprocess.c665 unsigned long debugctl, msk; in __switch_to_xtra() local
667 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
668 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
670 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
671 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
Dtraps.c1054 unsigned long debugctl; in exc_debug_kernel() local
1056 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
1057 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
1058 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/linux-6.1.9/arch/x86/events/intel/
Dlbr.c123 u64 debugctl, lbr_select = 0, orig_debugctl; in __intel_pmu_lbr_enable() local
141 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
142 orig_debugctl = debugctl; in __intel_pmu_lbr_enable()
145 debugctl |= DEBUGCTLMSR_LBR; in __intel_pmu_lbr_enable()
152 debugctl &= ~DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
154 debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
156 if (orig_debugctl != debugctl) in __intel_pmu_lbr_enable()
157 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
/linux-6.1.9/arch/x86/include/asm/xen/
Dinterface.h296 uint64_t debugctl; member
/linux-6.1.9/arch/x86/events/
Dperf_event.h1451 u64 debugctl; in __intel_pmu_lbr_disable() local
1453 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
1454 debugctl &= ~(DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI); in __intel_pmu_lbr_disable()
1455 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
Dcore.c1522 u64 pebs, debugctl; in perf_event_print_debug() local
1552 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1553 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()
/linux-6.1.9/arch/x86/kvm/vmx/
Dvmx.c2026 u64 debugctl = 0; in vmx_get_supported_debugctl() local
2030 debugctl |= DEBUGCTLMSR_BUS_LOCK_DETECT; in vmx_get_supported_debugctl()
2034 debugctl |= DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in vmx_get_supported_debugctl()
2036 return debugctl; in vmx_get_supported_debugctl()