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:22
Last Modify:2022-05-22 07:44:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Replace breakpoints (int3) with relative jumps.* Caller must call with locking kprobe_mutex and text_mutex.

Proto:void arch_optimize_kprobes(struct list_head *oplist)

Type:void

Parameter:

TypeParameterName
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  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.