函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\opt.c Create Date:2022-07-27 09:38:37
Last Modify:2022-05-22 07:44:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Replace breakpoints (int3) with relative jumps.* Caller must call with locking kprobe_mutex and text_mutex.

函数原型:void arch_optimize_kprobes(struct list_head *oplist)

返回类型:void

参数:

类型参数名称
struct list_head *oplist
428  rel等于 detour code buffer location of the probe point RELATIVEJUMP_SIZE
431  WARN_ON(Is this kprobe disabled ? )
434  memcpy( copy of the original instructions , location of the probe point + INT3_SIZE, RELATIVE_ADDR_SIZE)
437  insn_buff[0]等于RELATIVEJUMP_OPCODE
438  *insn_buff[1]等于rel
440  xt_poke_bp() -- update instructions on live kernel on SMP*@addr: address to patch*@opcode: opcode of new instruction*@len: length to copy*@handler: address to jump to when the temporary breakpoint is hit* Update a single instruction with the vector in the
442  删除链表项并重新初始化
调用者
名称描述
do_optimize_kprobesOptimize (replace a breakpoint with a jump) kprobes listed on* optimizing_list.