Defined in 1 files as a prototype:
Defined in 7 files as a function:
- arch/arm64/net/bpf_jit_comp.c, line 2898 (as a function)
- arch/loongarch/net/bpf_jit.c, line 2138 (as a function)
- arch/powerpc/net/bpf_jit_comp.c, line 1202 (as a function)
- arch/riscv/net/bpf_jit_comp64.c, line 1324 (as a function)
- arch/s390/net/bpf_jit_comp.c, line 3020 (as a function)
- arch/x86/net/bpf_jit_comp.c, line 3762 (as a function)
- kernel/bpf/trampoline.c, line 1479 (as a function)
Referenced in 2 files:
Smatch caller information:
kernel/bpf/trampoline.c bpf_trampoline_update() -> arch_prepare_bpf_trampoline()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | im | 4096-ptr_max |
| PARAM_VALUE | 1 | image | 1-u64max |
| PARAM_VALUE | 2 | image_end | 4096-ptr_max |
| PARAM_VALUE | 3 | m | 4096-ptr_max |
| PARAM_VALUE | 4 | flags | 1-278 |
| PARAM_VALUE | 5 | tnodes | 4096-ptr_max |
| BUF_SIZE | 0 | im | 736 |
| BUF_SIZE | 5 | tnodes | 936 |
| BUF_SIZE | 5 | tnodes | 936 |
| CAPPED_DATA | 0 | im->size | 1 |
| DATA_SOURCE | 0 | im | r bpf_tramp_image_alloc |
| DATA_SOURCE | 5 | tnodes | r bpf_trampoline_get_progs |
| BIT_INFO | 4 | flags | 0x0,0xef |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | image_end | unit_byte |
| HALF_LOCKED2 | global &direct_mutex |
kernel/bpf/bpf_struct_ops.c bpf_struct_ops_prepare_trampoline() -> arch_prepare_bpf_trampoline()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | im | 0 |
| PARAM_VALUE | 1 | image | 1-ptr_max |
| PARAM_VALUE | 2 | image_end | 4096-ptr_max |
| PARAM_VALUE | 3 | m | 4096-ptr_max |
| PARAM_VALUE | 4 | flags | 256,272 |
| PARAM_VALUE | 5 | tnodes | 4096-ptr_max |
| BUF_SIZE | 5 | tnodes | 936 |
| BUF_SIZE | 5 | tnodes | 936 |
| BUF_SIZE | 6 | func_addr | (-1),8 |
| BUF_SIZE | 6 | func_addr | (-1),8 |
| CAPPED_DATA | 3 | m->nr_args | 1 |
| DATA_SOURCE | 3 | m | $2 |
| DATA_SOURCE | 5 | tnodes | $0 |
| DATA_SOURCE | 6 | func_addr | $3 |
| FUZZY_MAX | 4 | flags | 256 |
| BIT_INFO | 4 | flags | 0x100,0x110 |
| UNITS | 1 | image | unit_byte |
| UNITS | 2 | image_end | unit_byte |
| HALF_LOCKED2 | &st_map->lock |