Home
last modified time | relevance | path

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

/kernel/bpf/
Dlocal_storage.c418 enum bpf_cgroup_storage_type stype; in cgroup_storage_seq_show_elem() local
430 stype = cgroup_storage_type(map); in cgroup_storage_seq_show_elem()
431 if (stype == BPF_CGROUP_STORAGE_SHARED) { in cgroup_storage_seq_show_elem()
466 enum bpf_cgroup_storage_type stype = cgroup_storage_type(_map); in bpf_cgroup_storage_assign() local
468 if (aux->cgroup_storage[stype] && in bpf_cgroup_storage_assign()
469 aux->cgroup_storage[stype] != _map) in bpf_cgroup_storage_assign()
472 aux->cgroup_storage[stype] = _map; in bpf_cgroup_storage_assign()
494 enum bpf_cgroup_storage_type stype) in bpf_cgroup_storage_alloc() argument
502 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()
513 if (stype == BPF_CGROUP_STORAGE_SHARED) { in bpf_cgroup_storage_alloc()
[all …]
Dcgroup.c33 enum bpf_cgroup_storage_type stype; in bpf_cgroup_storages_free() local
35 for_each_cgroup_storage_type(stype) in bpf_cgroup_storages_free()
36 bpf_cgroup_storage_free(storages[stype]); in bpf_cgroup_storages_free()
45 enum bpf_cgroup_storage_type stype; in bpf_cgroup_storages_alloc() local
52 for_each_cgroup_storage_type(stype) { in bpf_cgroup_storages_alloc()
53 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storages_alloc()
57 storages[stype] = cgroup_storage_lookup((void *)map, &key, false); in bpf_cgroup_storages_alloc()
58 if (storages[stype]) in bpf_cgroup_storages_alloc()
61 storages[stype] = bpf_cgroup_storage_alloc(prog, stype); in bpf_cgroup_storages_alloc()
62 if (IS_ERR(storages[stype])) { in bpf_cgroup_storages_alloc()
[all …]
Dhelpers.c413 enum bpf_cgroup_storage_type stype = cgroup_storage_type(map); in BPF_CALL_2() local
420 storage = ctx->prog_item->cgroup_storage[stype]; in BPF_CALL_2()
422 if (stype == BPF_CGROUP_STORAGE_SHARED) in BPF_CALL_2()
Dverifier.c623 static void scrub_spilled_slot(u8 *stype) in scrub_spilled_slot() argument
625 if (*stype != STACK_INVALID) in scrub_spilled_slot()
626 *stype = STACK_MISC; in scrub_spilled_slot()
2998 u8 new_type, *stype; in check_stack_write_var_off() local
3003 stype = &state->stack[spi].slot_type[slot % BPF_REG_SIZE]; in check_stack_write_var_off()
3005 if (!env->allow_ptr_leaks && *stype != STACK_MISC && *stype != STACK_ZERO) { in check_stack_write_var_off()
3027 if (writing_zero && *stype == STACK_ZERO) { in check_stack_write_var_off()
3039 if (*stype == STACK_INVALID && !env->allow_uninit_stack) { in check_stack_write_var_off()
3044 *stype = new_type; in check_stack_write_var_off()
3071 u8 *stype; in mark_reg_stack_read() local
[all …]
Dbtf.c5103 const struct btf_type *stype; in btf_struct_walk() local
5112 stype = btf_type_skip_modifiers(btf, mtype->type, &id); in btf_struct_walk()
5113 if (btf_type_is_struct(stype)) { in btf_struct_walk()