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

Name:arch_copy_kprobe

Proto:static int arch_copy_kprobe(struct kprobe *p)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
457  len = Copy an instruction with recovering modified instruction by kprobes* and adjust the displacement if the instruction uses the %rip-relative* addressing mode. Note that since @real will be the final place of copied
458  If Not len Then Return -EINVAL
465  len = Prepare reljump right after instruction to boost
468  if_modifier = Returns non-zero if opcode modifies the interrupt flag.
471  Saved opcode (which has been replaced with breakpoint) = buf[0]
474  xt_poke - Update instructions on a live kernel*@addr: address to modify*@opcode: source of the copy*@len: length to copy* Only atomic text poke/set should be allowed when not doing early patching
476  Return 0
Caller
NameDescribe
arch_prepare_kprobe