函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_copy_kprobe

函数原型:static int arch_copy_kprobe(struct kprobe *p)

返回类型:int

参数:

类型参数名称
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  如果非len则返回:负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  返回:0
调用者
名称描述
arch_prepare_kprobe