Function report |
Source Code:kernel\bpf\trampoline.c |
Create Date:2022-07-28 13:15:47 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_trampoline_update
Proto:static int bpf_trampoline_update(struct bpf_trampoline *tr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_trampoline * | tr |
124 | old_image = Executable image of trampoline + ( selector + 1 & 1) * PAGE_SIZE / 2 |
125 | new_image = Executable image of trampoline + (selector & 1) * PAGE_SIZE / 2 |
130 | flags = Restore arguments before returning from trampoline to let original function* continue executing. This flag is used for fentry progs when there are no* fexit progs. |
134 | If fentry_cnt + fexit_cnt == 0 Then |
141 | fentry = progs = progs_to_run |
159 | synchronize_rcu_tasks() |
161 | err = arch_prepare_bpf_trampoline(new_image, & model, flags, fentry, fentry_cnt, fexit, fexit_cnt, addr) |
171 | Else err = st time registering |
176 | selector++ |
177 | out : |
178 | Return err |
Name | Describe |
---|---|
bpf_trampoline_link_prog | |
bpf_trampoline_unlink_prog | pf_trampoline_unlink_prog() should never fail. |
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 |