函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prepare reljump right after instruction to boost

函数原型:static int prepare_boost(kprobe_opcode_t *buf, struct kprobe *p, struct insn *insn)

返回类型:int

参数:

类型参数名称
kprobe_opcode_t *buf
struct kprobe *p
struct insn *insn
400  len等于length
402  如果Returns non-zero if INSN is boostable.* RIP relative instructions are adjusted at copying time in 64 bits modeMAX_INSN_SIZElen大于等于RELATIVEJUMP_SIZE
408  Insert a jump instruction at address 'from', which jumps to address 'to'.
410  len加等于RELATIVEJUMP_SIZE
411  stable = false: This instruction type is not boostable.* boostable = true: This instruction has been boosted: we have* added a relative jump after the instruction copy in insn,* so no single-step and fixup are needed (unless there's* a post_handler). = true
412  否则
413  stable = false: This instruction type is not boostable.* boostable = true: This instruction has been boosted: we have* added a relative jump after the instruction copy in insn,* so no single-step and fixup are needed (unless there's* a post_handler). = false
416  返回:len
调用者
名称描述
arch_copy_kprobe