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:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__encode_dr7

Proto:static inline unsigned long __encode_dr7(int drnum, unsigned int len, unsigned int type)

Type:unsigned long

Parameter:

TypeParameterName
intdrnum
unsigned intlen
unsigned inttype
55  bp_info = (len | type) & 0xf
56  bp_info <<= Skip this many bits in ctl register + drnum * 4 control bits per register
57  bp_info |= Global enable for reg 0 << drnum * 2 enable bits per register
59  Return bp_info
Caller
NameDescribe
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.