Function report |
Source Code:arch\x86\kernel\kprobes\core.c |
Create Date:2022-07-28 08:38:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Copy an instruction with recovering modified instruction by kprobes* and adjust the displacement if the instruction uses the %rip-relative* addressing mode. Note that since @real will be the final place of copied
Proto:int __copy_instruction(u8 *dest, u8 *src, u8 *real, struct insn *insn)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u8 * | dest | |
| u8 * | src | |
| u8 * | real | |
| struct insn * | insn |
| 344 | If Not recovered_insn || Not insn Then Return 0 |
| 355 | If insn_has_emulate_prefix(insn) Then Return 0 |
| 359 | If bytes[0] == BREAKPOINT_INSTRUCTION Then Return 0 |
| 389 | disp = dest + insn_offset_displacement(insn) |
| 393 | Return length |
| Name | Describe |
|---|---|
| arch_copy_kprobe | |
| copy_optimized_instructions |
| 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 |