Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
kernel/bpf/syscall.c bpf_tracing_prog_attach() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 4096-ptr_max |
| PARAM_VALUE | 1 | btf | 0 |
| BUF_SIZE | 0 | tgt_prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | tgt_prog | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | tgt_prog | r bpf_prog_get |
| DATA_SOURCE | 2 | btf_id | $2 |
kernel/bpf/syscall.c bpf_tracing_prog_attach() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 0 |
| PARAM_VALUE | 1 | btf | 1-u64max |
| UNITS | 2 | btf_id | unit_array_size |
| LOCK2 | &prog->aux->dst_mutex | ||
| TYPE_LOCK | (struct bpf_prog_aux)->dst_mutex |
kernel/bpf/trampoline.c bpf_trampoline_link_cgroup_shim() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 0 |
| UNITS | 2 | btf_id | unit_array_size |
| LOCK2 | global &cgroup_mutex |
kernel/bpf/trampoline.c bpf_trampoline_multi_attach() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 0 |
| PARAM_VALUE | 1 | btf | 4096-ptr_max |
| PARAM_VALUE | 2 | btf_id | 1-u32max |
| CAPPED_DATA | 1 | btf->start_id | 1 |
| PARAM_COMPARE | 1 | btf->nr_types | > $1->start_id |
kernel/bpf/trampoline.c bpf_trampoline_unlink_cgroup_shim() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | btf_id | unit_array_size |
| LOCK2 | global &cgroup_mutex |
kernel/bpf/verifier.c check_attach_btf_id() -> bpf_trampoline_compute_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tgt_prog | 0,4096-ptr_max |
| UNITS | 2 | btf_id | unit_array_size |