函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__encode_dr7

函数原型:static inline unsigned long __encode_dr7(int drnum, unsigned int len, unsigned int type)

返回类型:unsigned long

参数:

类型参数名称
intdrnum
unsigned intlen
unsigned inttype
55  bp_info等于len按位或type的值按位与0xf
56  bp_info左移等于Skip this many bits in ctl register drnum4 control bits per register
57  bp_info或等于Global enable for reg 0 左移drnum2 enable bits per register
59  返回:bp_info
调用者
名称描述
encode_dr7Encode the length, type, Exact, and Enable bits for a particular breakpoint* as stored in debug register 7.
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.