Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type)

Type:int

Parameter:

TypeParameterName
unsigned longdr7
intbpnum
unsigned *len
unsigned *type
77  bp_info = dr7 >> Skip this many bits in ctl register + bpnum * 4 control bits per register
79  len = bp_info & 0xc | 0x40
80  type = bp_info & 0x3 | 0x80
82  Return dr7 >> bpnum * 2 enable bits per register & 0x3
Caller
NameDescribe
ptrace_write_dr7Handle ptrace writes to debug register 7.