函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:int can_boost(struct insn *insn, void *addr)

返回类型:int

参数:

类型参数名称
struct insn *insn
void *addr
161  如果Given an address, look for it in the exception tables 则返回:0
165  如果nbytes恒等于2则返回:st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
169  如果nbytes不等于1则返回:0
173  如果此条件成立可能性小(为编译器优化)(inat_is_address_size_prefix(attr))则返回:0
176  opcode等于bytes[0]
179  : & == 0x60
181  返回:opcode不等于0x62
182  : & == 0x70
183  返回:0
184  : & == 0x90
185  返回:opcode不等于0x9a
186  : & == 0xc0
188  返回:0xc1小于opcodeopcode小于0xcc或opcode恒等于0xcf
189  : & == 0xd0
191  返回:opcode恒等于0xd4或opcode恒等于0xd5或opcode恒等于0xd7
192  : & == 0xe0
194  返回:opcode按位与0x04或opcode恒等于0xea
195  : & == 0xf0
197  返回:opcode恒等于0xf5或0xf7小于opcodeopcode小于0xfe
198  默认
200  返回:opcode不等于0x2e且opcode不等于0x9a
调用者
名称描述
prepare_boostPrepare reljump right after instruction to boost
copy_optimized_instructions