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:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:void text_poke_bp_batch(struct text_poke_loc *tp, unsigned int nr_entries)

Type:void

Parameter:

TypeParameterName
struct text_poke_loc *tp
unsigned intnr_entries
1050  int3 = INT3_INSN_OPCODE
1054  lockdep_assert_held( & Kernel text modification mutex, used for code patching. Users of this lock* can sleep.)
1056  vec = tp
1057  nr_entries = nr_entries
1063  smp_wmb()
1068  When i < nr_entries cycle 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
1071  Call a function on all processors
1076  When i < nr_entries cycle
1077  If len - size of int3 > 0 Then
1081  do_sync++
1085  If do_sync Then
1091  Call a function on all processors
1098  When i < nr_entries cycle
1099  If text[0] == INT3_INSN_OPCODE Then Continue
1102  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
1103  do_sync++
1106  If do_sync Then Call a function on all processors
1113  vec = NULL
1114  nr_entries = 0
Caller
NameDescribe
text_poke_bpxt_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