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

Name:Prepare reljump right after instruction to boost

Proto:static int prepare_boost(kprobe_opcode_t *buf, struct kprobe *p, struct insn *insn)

Type:int

Parameter:

TypeParameterName
kprobe_opcode_t *buf
struct kprobe *p
struct insn *insn
400  len = length
402  If Returns non-zero if INSN is boostable.* RIP relative instructions are adjusted at copying time in 64 bits mode && MAX_INSN_SIZE - len >= RELATIVEJUMP_SIZE Then
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  Else
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  Return len
Caller
NameDescribe
arch_copy_kprobe