Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\traps.h Create Date:2022-07-28 07:31:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_si_code

Proto:static inline int get_si_code(unsigned long condition)

Type:int

Parameter:

TypeParameterName
unsigned longcondition
102  If condition & single-step Then Return process trace trap
104  Else if condition & ( db0 | db1 | db2 | db3 ) Then Return hardware breakpoint/watchpoint
106  Else Return process breakpoint
Caller
NameDescribe
do_debugOur handling of the processor debug registers is non-trivial.* We do not clear them on entry and exit from the kernel. Therefore* it is possible to get a watchpoint trap here from inside the kernel.* However, the code in