Home
last modified time | relevance | path

Searched refs:stype (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dlocal_storage.c417 enum bpf_cgroup_storage_type stype; in cgroup_storage_seq_show_elem() local
429 stype = cgroup_storage_type(map); in cgroup_storage_seq_show_elem()
430 if (stype == BPF_CGROUP_STORAGE_SHARED) { in cgroup_storage_seq_show_elem()
472 enum bpf_cgroup_storage_type stype = cgroup_storage_type(_map); in bpf_cgroup_storage_assign() local
474 if (aux->cgroup_storage[stype] && in bpf_cgroup_storage_assign()
475 aux->cgroup_storage[stype] != _map) in bpf_cgroup_storage_assign()
478 aux->cgroup_storage[stype] = _map; in bpf_cgroup_storage_assign()
500 enum bpf_cgroup_storage_type stype) in bpf_cgroup_storage_alloc() argument
508 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()
519 if (stype == BPF_CGROUP_STORAGE_SHARED) { in bpf_cgroup_storage_alloc()
[all …]
Dcgroup.c200 enum bpf_cgroup_storage_type stype; in bpf_cgroup_storages_free() local
202 for_each_cgroup_storage_type(stype) in bpf_cgroup_storages_free()
203 bpf_cgroup_storage_free(storages[stype]); in bpf_cgroup_storages_free()
212 enum bpf_cgroup_storage_type stype; in bpf_cgroup_storages_alloc() local
219 for_each_cgroup_storage_type(stype) { in bpf_cgroup_storages_alloc()
220 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storages_alloc()
224 storages[stype] = cgroup_storage_lookup((void *)map, &key, false); in bpf_cgroup_storages_alloc()
225 if (storages[stype]) in bpf_cgroup_storages_alloc()
228 storages[stype] = bpf_cgroup_storage_alloc(prog, stype); in bpf_cgroup_storages_alloc()
229 if (IS_ERR(storages[stype])) { in bpf_cgroup_storages_alloc()
[all …]
Dverifier.c1349 static void scrub_spilled_slot(u8 *stype) in scrub_spilled_slot() argument
1351 if (*stype != STACK_INVALID) in scrub_spilled_slot()
1352 *stype = STACK_MISC; in scrub_spilled_slot()
4724 u8 new_type, *stype; in check_stack_write_var_off() local
4729 stype = &state->stack[spi].slot_type[slot % BPF_REG_SIZE]; in check_stack_write_var_off()
4732 if (!env->allow_ptr_leaks && *stype != STACK_MISC && *stype != STACK_ZERO) { in check_stack_write_var_off()
4754 if (writing_zero && *stype == STACK_ZERO) { in check_stack_write_var_off()
4766 if (*stype == STACK_INVALID && !env->allow_uninit_stack) { in check_stack_write_var_off()
4771 *stype = new_type; in check_stack_write_var_off()
4798 u8 *stype; in mark_reg_stack_read() local
[all …]
Dbtf.c6331 const struct btf_type *stype, *t; in btf_struct_walk() local
6357 stype = btf_type_skip_modifiers(btf, mtype->type, &id); in btf_struct_walk()
6358 if (btf_type_is_struct(stype)) { in btf_struct_walk()