函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void *text_poke(void *addr, const void *opcode, size_t len)

返回类型:void

参数:

类型参数名称
void *addr
const void *opcode
size_tlen
911  lockdep_assert_held( & Kernel text modification mutex, used for code patching. Users of this lock* can sleep.)
913  返回:__text_poke(addr, opcode, len)
调用者
名称描述
text_poke_bp_batchxt_poke_bp_batch() -- update instructions on live kernel on SMP*@tp: vector of instructions to patch*@nr_entries: number of entries in the vector* Modify multi-byte instruction by using int3 breakpoint on SMP
arch_copy_kprobe
arch_arm_kprobe
arch_disarm_kprobe
arch_prepare_optimized_kprobeCopy replacing target instructions* Target instructions MUST be relocatable (checked inside)* This is called when new aggr(opt)probe is allocated or reused.