Home
last modified time | relevance | path

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

/Linux-v5.10/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.c620 unsigned long debugctl, msk; in __switch_to_xtra() local
622 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
623 debugctl &= ~DEBUGCTLMSR_BTF; in __switch_to_xtra()
625 debugctl |= (msk >> TIF_BLOCKSTEP) << DEBUGCTLMSR_BTF_SHIFT; in __switch_to_xtra()
626 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in __switch_to_xtra()
Dtraps.c870 unsigned long debugctl; in exc_debug_kernel() local
872 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
873 debugctl |= DEBUGCTLMSR_BTF; in exc_debug_kernel()
874 wrmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in exc_debug_kernel()
/Linux-v5.10/arch/x86/kernel/kprobes/
Dcore.c569 unsigned long debugctl = get_debugctlmsr(); in clear_btf() local
571 debugctl &= ~DEBUGCTLMSR_BTF; in clear_btf()
572 update_debugctlmsr(debugctl); in clear_btf()
579 unsigned long debugctl = get_debugctlmsr(); in restore_btf() local
581 debugctl |= DEBUGCTLMSR_BTF; in restore_btf()
582 update_debugctlmsr(debugctl); in restore_btf()
/Linux-v5.10/arch/x86/events/intel/
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 …]
/Linux-v5.10/arch/x86/include/asm/xen/
Dinterface.h293 uint64_t debugctl; member
/Linux-v5.10/arch/x86/events/
Dcore.c1477 u64 pebs, debugctl; in perf_event_print_debug() local
1506 rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctl); in perf_event_print_debug()
1507 pr_info("CPU#%d: debugctl: %016llx\n", cpu, debugctl); in perf_event_print_debug()