Function report |
Source Code:kernel\livepatch\patch.c |
Create Date:2022-07-28 10:31:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:klp_ftrace_handler
Proto:static void notrace klp_ftrace_handler(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *fops, struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | ip | |
| unsigned long | parent_ip | |
| struct ftrace_ops * | fops | |
| struct pt_regs * | regs |
| 65 | If WARN_ON_ONCE(!func) Then Go to unlock |
| 79 | smp_rmb() |
| 89 | smp_rmb() |
| 91 | patch_state = patch_state |
| 93 | WARN_ON_ONCE(patch_state == ask patch states ) |
| 95 | If patch_state == KLP_UNPATCHED Then |
| 101 | func = list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(next, structklp_func, stack_node) |
| 104 | If stack_node == func_stack Then Go to unlock |
| 116 | klp_arch_set_pc(regs, (unsignedlong)new_func) |
| 118 | unlock : |
| 119 | preempt_enable_notrace() |
| 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 |