Home
last modified time | relevance | path

Searched refs:debugctl (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dstep.c169 unsigned long debugctl; in set_task_blockstep() local
172 * Ensure irq/preemption can't change debugctl in between. in set_task_blockstep()
173 * Note also that both TIF_BLOCKSTEP and debugctl should in set_task_blockstep()
181 debugctl = get_debugctlmsr(); in set_task_blockstep()
183 debugctl |= DEBUGCTLMSR_BTF; in set_task_blockstep()
186 debugctl &= ~DEBUGCTLMSR_BTF; in set_task_blockstep()
190 update_debugctlmsr(debugctl); in set_task_blockstep()
H A Dprocess.c638 unsigned long debugctl, msk; in __switch_to_xtra() local
640 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
641 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
643 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
644 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
H A Dtraps.c906 unsigned long debugctl; in exc_debug_kernel() local
908 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
909 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
910 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dstep.c174 unsigned long debugctl; in set_task_blockstep() local
177 * Ensure irq/preemption can't change debugctl in between. in set_task_blockstep()
178 * Note also that both TIF_BLOCKSTEP and debugctl should in set_task_blockstep()
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()
H A Dprocess.c705 unsigned long debugctl, msk; in __switch_to_xtra() local
707 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
708 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
710 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
711 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
H A Dtraps.c968 unsigned long debugctl; in exc_debug_kernel() local
970 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
971 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
972 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/kernel/linux/linux-5.10/arch/x86/events/intel/
H A Dlbr.c191 u64 debugctl, lbr_select = 0, orig_debugctl; in __intel_pmu_lbr_enable() local
209 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
210 orig_debugctl = debugctl; in __intel_pmu_lbr_enable()
213 debugctl |= DEBUGCTLMSR_LBR; in __intel_pmu_lbr_enable()
220 debugctl &= ~DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
222 debugctl |= DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in __intel_pmu_lbr_enable()
224 if (orig_debugctl != debugctl) in __intel_pmu_lbr_enable()
225 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_enable()
233 u64 debugctl; in __intel_pmu_lbr_disable() local
240 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
[all...]
/kernel/linux/linux-6.6/arch/x86/events/intel/
H A 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()
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/
H A Dinterface.h293 uint64_t debugctl; member
/kernel/linux/linux-6.6/arch/x86/include/asm/xen/
H A Dinterface.h296 uint64_t debugctl; member
/kernel/linux/linux-6.6/arch/x86/events/
H A Dperf_event.h1453 u64 debugctl; in __intel_pmu_lbr_disable() local
1455 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
1456 debugctl &= ~(DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI); in __intel_pmu_lbr_disable()
1457 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __intel_pmu_lbr_disable()
H A 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()
/kernel/linux/linux-5.10/arch/x86/events/
H A Dcore.c1488 u64 pebs, debugctl; in perf_event_print_debug() local
1517 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1518 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()
/kernel/linux/linux-6.6/arch/x86/kvm/vmx/
H A Dvmx.c2151 u64 debugctl = 0; in vmx_get_supported_debugctl() local
2155 debugctl |= DEBUGCTLMSR_BUS_LOCK_DETECT; in vmx_get_supported_debugctl()
2159 debugctl |= DEBUGCTLMSR_LBR | DEBUGCTLMSR_FREEZE_LBRS_ON_PMI; in vmx_get_supported_debugctl()
2161 return debugctl; in vmx_get_supported_debugctl()

Completed in 33 milliseconds