Function report |
Source Code:kernel\bpf\trampoline.c |
Create Date:2022-07-28 13:15:38 |
| 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_lookup
Proto:struct bpf_trampoline *bpf_trampoline_lookup(u64 key)
Type:struct bpf_trampoline
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u64 | key |
| 25 | head = trampoline_table[hash_64(key, f_vmlinux has ~22k attachable functions. 1k htab is enough. )] |
| 29 | Go to out |
| 32 | tr = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 37 | image = bpf_jit_alloc_exec(PAGE_SIZE) |
| 38 | If Not image Then |
| 46 | hlist_add_head( & hlist for trampoline_table , head) |
| 49 | When i < BPF_TRAMP_MAX cycle INIT_HLIST_HEAD( & list of BPF programs using this trampoline [i]) |
| 56 | set_memory_x((long)image, 1) |
| 58 | out : |
| 60 | Return tr |
| Name | Describe |
|---|---|
| check_attach_btf_id |
| 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 |