Function report |
Source Code:kernel\bpf\verifier.c |
Create Date:2022-07-28 12:56:12 |
| Last Modify:2022-05-19 20:02:10 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_stack_state()
Proto:static int realloc_stack_state(struct bpf_func_state *state, int size, bool copy_old)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_func_state * | state | |
| int | size | |
| bool | copy_old |
| 651 | old_size = allocated_stack |
| 651 | new_stack = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
| 651 | If copy_old Then |
| 651 | If stack Then gcc 内建函数 需要声明 |
| 651 | allocated_stack = slot * 8 |
| 651 | Return 0 |
| Name | Describe |
|---|---|
| realloc_func_state | do_check() starts with zero-sized stack in struct bpf_verifier_state to* make it consume minimal amount of memory |
| 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 |