函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Decode the length and type bits for a particular breakpoint as* stored in debug register 7. Return the "enabled" status.

函数原型:int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type)

返回类型:int

参数:

类型参数名称
unsigned longdr7
intbpnum
unsigned *len
unsigned *type
77  bp_info等于dr7右移Skip this many bits in ctl register bpnum4 control bits per register
79  len等于bp_info按位与0xc按位或0x40
80  type等于bp_info按位与0x3按位或0x80
82  返回:dr7右移bpnum2 enable bits per register 位按位与0x3
调用者
名称描述
ptrace_write_dr7Handle ptrace writes to debug register 7.