Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 1 files as a function:
Referenced in 5 files:
- include/linux/bpf.h, line 2835
- kernel/bpf/arraymap.c, line 39
- kernel/bpf/cpumap.c, line 451
- kernel/bpf/hashtab.c
- kernel/bpf/local_storage.c, line 530
Smatch caller information:
kernel/bpf/local_storage.c bpf_cgroup_storage_alloc() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg->css.refcnt.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 1052096 |
| DATA_SOURCE | 1 | size | r bpf_cgroup_storage_calculate_size |
| HALF_LOCKED2 | global &cgroup_mutex |
kernel/bpf/arraymap.c bpf_array_alloc_percpu() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->map_type | 0-35 |
| PARAM_VALUE | 0 | map->max_entries | 1-u32max |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 1060032 |
| NO_OVERFLOW_SIMPLE | 0 | map->max_entries |
kernel/bpf/cpumap.c __cpu_map_entry_alloc() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg->css.refcnt.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 0 | map->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | map->ops->map_update_batch | 0,7911141981172039680 |
| PARAM_VALUE | 1 | size | 152 |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 11456 |
| DATA_SOURCE | 0 | map | $0 |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | align | unit_byte |
kernel/bpf/hashtab.c alloc_extra_elems() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->elem_count | 4096-ptr_max |
| PARAM_VALUE | 0 | map->map_type | 0-4,6-8,11-12,14-35 |
| PARAM_VALUE | 0 | map->max_entries | 0-2147483648 |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 1 | size | 8 |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 1060032 |
| NO_OVERFLOW_SIMPLE | 0 | map->max_entries | |
| UNITS | 1 | size | unit_byte |
kernel/bpf/hashtab.c bpf_map_init_elem_count() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 1-u64max |
| PARAM_VALUE | 0 | map->map_type | 0-35 |
| PARAM_VALUE | 0 | map->max_entries | 0-2147483648 |
| PARAM_VALUE | 1 | size | 8 |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 1060032 |
| DATA_SOURCE | 0 | map | $0 |
| PARAM_COMPARE | 1 | size | == $2 |
| PARAM_COMPARE | 2 | align | == $1 |
| PARAM_COMPARE | 2 | align | == $1 |
| NO_OVERFLOW_SIMPLE | 0 | map->max_entries | |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | align | unit_byte |
kernel/bpf/hashtab.c prealloc_init() -> bpf_map_alloc_percpu()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->elem_count | 4096-ptr_max |
| PARAM_VALUE | 0 | map->map_type | 5,10 |
| PARAM_VALUE | 0 | map->max_entries | 0-2147483648 |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 2 | align | 8 |
| PARAM_VALUE | 3 | flags | 1060032 |
| NO_OVERFLOW_SIMPLE | 0 | map->max_entries |