Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\opt.c Create Date:2022-07-28 08:39:11
Last Modify:2022-05-22 07:44:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Insert a move instruction which sets a pointer to eax/rdi (1st arg).

Proto:static void synthesize_set_arg1(kprobe_opcode_t *addr, unsigned long val)

Type:void

Parameter:

TypeParameterName
kprobe_opcode_t *addr
unsigned longval
78  addr++ = 0x48
79  addr++ = 0xbf
83  addr = val
Caller
NameDescribe
arch_prepare_optimized_kprobeCopy replacing target instructions* Target instructions MUST be relocatable (checked inside)* This is called when new aggr(opt)probe is allocated or reused.