Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\alternative.c Create Date:2022-07-28 07:45:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void *text_poke(void *addr, const void *opcode, size_t len)

Type:void

Parameter:

TypeParameterName
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  Return __text_poke(addr, opcode, len)
Caller
NameDescribe
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.