Function report |
Source Code:kernel\bpf\core.c |
Create Date:2022-07-28 12:47:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_prog_realloc
Proto:struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, gfp_t gfp_extra_flags)
Type:struct bpf_prog
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_prog * | fp_old | |
unsigned int | size | |
gfp_t | gfp_extra_flags |
220 | gfp_flags = GFP_KERNEL | __GFP_ZERO | gfp_extra_flags |
229 | If pages <= Number of allocated pages Then Return fp_old |
232 | delta = pages - Number of allocated pages |
233 | ret = __bpf_prog_charge(user, delta) |
234 | If ret Then Return NULL |
237 | fp = __vmalloc(size, gfp_flags, PAGE_KERNEL) |
238 | If (fp == NULL) Then |
239 | __bpf_prog_uncharge(user, delta) |
240 | Else |
241 | No 3D Now!(fp, fp_old, Number of allocated pages * PAGE_SIZE) |
248 | Auxiliary fields = NULL |
249 | __bpf_prog_free(fp_old) |
252 | Return fp |
Name | Describe |
---|---|
bpf_patch_insn_single |
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 |