函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-27 08:58:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set_dr_addr_mask

函数原型:void set_dr_addr_mask(unsigned long mask, int dr)

返回类型:void

参数:

类型参数名称
unsigned longmask
intdr
1156  如果非boot_cpu_has(Data breakpoint extension )则返回
1160  :dr恒等于0
1161  wrmsr(MSR_F16H_DR0_ADDR_MASK, mask, 0)
1162  退出
1163  :dr恒等于1
1164  :dr恒等于2
1165  :dr恒等于3
1166  wrmsr(MSR_F16H_DR1_ADDR_MASK - 1 + dr, mask, 0)
1167  退出
1168  默认
1169  退出
调用者
名称描述
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.