Function report |
Source Code:kernel\bpf\core.c |
Create Date:2022-07-28 12:47:23 |
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_alloc
Proto:struct bpf_prog *bpf_prog_alloc(unsigned int size, gfp_t gfp_extra_flags)
Type:struct bpf_prog
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | size | |
gfp_t | gfp_extra_flags |
107 | gfp_flags = GFP_KERNEL | __GFP_ZERO | gfp_extra_flags |
112 | If Not prog Then Return NULL |
115 | stats = alloc_percpu_gfp(structbpf_prog_stats, gfp_flags) |
116 | If Not stats Then |
122 | for_each_possible_cpu(cpu) |
125 | pstats = per_cpu_ptr(stats, cpu) |
126 | u64_stats_init( & syncp) |
128 | Return prog |
Name | Describe |
---|---|
bpf_prog_load | |
generate_filter |
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 |