Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct text_poke_loc * | tp | |
unsigned int | nr_entries |
1050 | int3 = INT3_INSN_OPCODE |
1054 | lockdep_assert_held( & Kernel text modification mutex, used for code patching. Users of this lock* can sleep.) |
1057 | nr_entries = nr_entries |
1063 | smp_wmb() |
1076 | When i < nr_entries cycle |
1085 | If do_sync Then |
1098 | When i < nr_entries cycle |
1099 | If text[0] == INT3_INSN_OPCODE Then Continue |
1103 | do_sync++ |
1106 | If do_sync Then Call a function on all processors |
1113 | vec = NULL |
1114 | nr_entries = 0 |
Name | Describe |
---|---|
text_poke_bp | 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |