Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-28 07:58:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_dr_addr_mask

Proto:void set_dr_addr_mask(unsigned long mask, int dr)

Type:void

Parameter:

TypeParameterName
unsigned longmask
intdr
1156  If Not boot_cpu_has(Data breakpoint extension ) Then Return
1160  Case dr == 0
1161  wrmsr(MSR_F16H_DR0_ADDR_MASK, mask, 0)
1162  Break
1163  Case dr == 1
1164  Case dr == 2
1165  Case dr == 3
1166  wrmsr(MSR_F16H_DR1_ADDR_MASK - 1 + dr, mask, 0)
1167  Break
1168  Default
1169  Break
Caller
NameDescribe
arch_uninstall_hw_breakpointUninstall the breakpoint contained in the given counter.* First we search the debug address register it uses and then we disable* it.* Atomic: we hold the counter->ctx->lock and we only handle variables* and registers local to this cpu.