Function report |
Source Code:kernel\bpf\stackmap.c |
Create Date:2022-07-28 13:26:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:prealloc_elems_and_freelist
Proto:static int prealloc_elems_and_freelist(struct bpf_stack_map *smap)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_stack_map * | smap |
63 | elem_size = sizeof(structstack_map_bucket) + value_size |
66 | elems = bpf_map_area_alloc(elem_size * max_entries, numa_node) |
72 | If err Then Go to free_elems |
75 | pcpu_freelist_populate( & freelist, elems, elem_size, max_entries) |
77 | Return 0 |
79 | free_elems : |
81 | Return err |
Name | Describe |
---|---|
stack_map_alloc | Called from syscall |
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 |