Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Returns non-zero if INSN is boostable.* RIP relative instructions are adjusted at copying time in 64 bits mode

Proto:int can_boost(struct insn *insn, void *addr)

Type:int

Parameter:

TypeParameterName
struct insn *insn
void *addr
161  If Given an address, look for it in the exception tables Then Return 0
165  If nbytes == 2 Then Return st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
169  If nbytes != 1 Then Return 0
173  If Value for the false possibility is greater at compile time(inat_is_address_size_prefix(attr)) Then Return 0
176  opcode = bytes[0]
179  Case & == 0x60
181  Return opcode != 0x62
182  Case & == 0x70
183  Return 0
184  Case & == 0x90
185  Return opcode != 0x9a
186  Case & == 0xc0
188  Return 0xc1 < opcode && opcode < 0xcc || opcode == 0xcf
189  Case & == 0xd0
191  Return opcode == 0xd4 || opcode == 0xd5 || opcode == 0xd7
192  Case & == 0xe0
194  Return opcode & 0x04 || opcode == 0xea
195  Case & == 0xf0
197  Return opcode == 0xf5 || 0xf7 < opcode && opcode < 0xfe
198  Default
200  Return opcode != 0x2e && opcode != 0x9a
Caller
NameDescribe
prepare_boostPrepare reljump right after instruction to boost
copy_optimized_instructions