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

Name:__synthesize_relative_insn

Proto:static inline __attribute__((__always_inline__)) void __synthesize_relative_insn(void *dest, void *from, void *to, u8 op)

Type:void

Parameter:

TypeParameterName
void *dest
void *from
void *to
u8op
109  struct __arch_relative_insn{u8 op;s32 raddr;}gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-packed-type-attribute* clang: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-packed-variable-attribute * insn
114  insn = dest
115  raddr = to - from + 5
116  op = op
Caller
NameDescribe
synthesize_reljumpInsert a jump instruction at address 'from', which jumps to address 'to'.
synthesize_relcallInsert a call instruction at address 'from', which calls address 'to'.