函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Recover the probed instruction at addr for further analysis.* Caller must lock kprobes by kprobe_mutex, or disable preemption* for preventing to release referencing kprobes.* Returns zero if the instruction can not get recovered (or access failed).

函数原型:unsigned long recover_probed_instruction(kprobe_opcode_t *buf, unsigned long addr)

返回类型:unsigned long

参数:

类型参数名称
kprobe_opcode_t *buf
unsigned longaddr
266  __addr等于__recover_optprobed_insn(buf, addr)
267  如果__addr不等于addr则返回:__addr
270  返回:__recover_probed_insn(buf, addr)
调用者
名称描述
can_probeCheck if paddr is at an instruction boundary
__copy_instructionCopy 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
can_optimizeDecode whole function to ensure any instructions don't jump into target