Function report |
Source Code:kernel\events\uprobes.c |
Create Date:2022-07-28 13:45:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:prepare_uprobe
Proto:static int prepare_uprobe(struct uprobe *uprobe, struct file *file, struct mm_struct *mm, unsigned long vaddr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct uprobe * | uprobe | |
struct file * | file | |
struct mm_struct * | mm | |
unsigned long | vaddr |
848 | ret = 0 |
850 | If Determine whether a bit is set(Have a copy of original instruction , & flags) Then Return ret |
854 | lock for writing |
855 | If Determine whether a bit is set(Have a copy of original instruction , & flags) Then Go to out |
862 | ret = -Operation is not supported |
863 | If s_trap_insn - check if instruction is breakpoint instruction Then Go to out |
871 | BUG_ON((offset & ~PAGE_MASK) + UPROBE_SWBP_INSN_SIZE > PAGE_SIZE) |
874 | smp_wmb() |
877 | out : |
880 | Return ret |
Name | Describe |
---|---|
install_breakpoint |
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 |