Home
last modified time | relevance | path

Searched refs:cgroup_storage (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dcg_storage_multi.c119 if (assert_storage(obj->maps.cgroup_storage, in test_egress_only()
123 if (assert_storage_noexist(obj->maps.cgroup_storage, &key)) in test_egress_only()
142 if (assert_storage(obj->maps.cgroup_storage, in test_egress_only()
147 if (assert_storage(obj->maps.cgroup_storage, in test_egress_only()
198 if (assert_storage(obj->maps.cgroup_storage, in test_isolated()
203 if (assert_storage(obj->maps.cgroup_storage, in test_isolated()
208 if (assert_storage_noexist(obj->maps.cgroup_storage, &key)) in test_isolated()
211 if (assert_storage_noexist(obj->maps.cgroup_storage, &key)) in test_isolated()
240 if (assert_storage(obj->maps.cgroup_storage, in test_isolated()
245 if (assert_storage(obj->maps.cgroup_storage, in test_isolated()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dverifier_cgroup_storage.c14 } cgroup_storage SEC(".maps");
45 __imm_addr(cgroup_storage) in valid_cgroup_storage_access()
104 __imm_addr(cgroup_storage) in invalid_cgroup_storage_access_3()
125 __imm_addr(cgroup_storage) in __flag()
145 __imm_addr(cgroup_storage) in invalid_cgroup_storage_access_5()
165 __imm_addr(cgroup_storage) in invalid_cgroup_storage_access_6()
264 __imm_addr(cgroup_storage) in __flag()
Dcg_storage_multi_isolated.c19 } cgroup_storage SEC(".maps");
27 bpf_get_local_storage(&cgroup_storage, 0); in egress1()
39 bpf_get_local_storage(&cgroup_storage, 0); in egress2()
51 bpf_get_local_storage(&cgroup_storage, 0); in ingress()
Dcg_storage_multi_shared.c19 } cgroup_storage SEC(".maps");
27 bpf_get_local_storage(&cgroup_storage, 0); in egress1()
39 bpf_get_local_storage(&cgroup_storage, 0); in egress2()
51 bpf_get_local_storage(&cgroup_storage, 0); in ingress()
Dcg_storage_multi_egress_only.c19 } cgroup_storage SEC(".maps");
27 bpf_get_local_storage(&cgroup_storage, 0); in egress()
Dlsm_cgroup.c30 } cgroup_storage SEC(".maps");
43 val = bpf_get_local_storage(&cgroup_storage, 0); in test_local_storage()
Dmap_ptr_kern.c525 struct bpf_cgroup_storage_map *cgroup_storage = in check_cgroup_storage() local
529 VERIFY(check(&cgroup_storage->map, map, in check_cgroup_storage()
/linux-6.6.21/kernel/bpf/
Dbpf_cgrp_storage.c66 struct bpf_local_storage *cgroup_storage; in cgroup_storage_lookup() local
69 cgroup_storage = rcu_dereference_check(cgroup->bpf_cgrp_storage, in cgroup_storage_lookup()
71 if (!cgroup_storage) in cgroup_storage_lookup()
75 return bpf_local_storage_lookup(cgroup_storage, smap, cacheit_lockit); in cgroup_storage_lookup()
Dlocal_storage.c474 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()
508 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()
Dcgroup.c220 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storages_alloc()
435 bpf_cgroup_storages_assign(item->cgroup_storage, in compute_effective_progs()
1567 storage = ctx->prog_item->cgroup_storage[stype]; in BPF_CALL_2()
/linux-6.6.21/Documentation/bpf/
Dmap_cgroup_storage.rst65 } cgroup_storage SEC(".maps");
69 __u32 *ptr = bpf_get_local_storage(&cgroup_storage, 0);
100 } cgroup_storage SEC(".maps");
104 __u32 *ptr = bpf_get_local_storage(&cgroup_storage, 0);
Ddrgn.rst177 .cgroup_storage = (struct bpf_map *[2]){},
/linux-6.6.21/net/bpf/
Dtest_run.c403 item.cgroup_storage[stype] = bpf_cgroup_storage_alloc(prog, stype); in bpf_test_run()
404 if (IS_ERR(item.cgroup_storage[stype])) { in bpf_test_run()
405 item.cgroup_storage[stype] = NULL; in bpf_test_run()
407 bpf_cgroup_storage_free(item.cgroup_storage[stype]); in bpf_test_run()
430 bpf_cgroup_storage_free(item.cgroup_storage[stype]); in bpf_test_run()
/linux-6.6.21/tools/bpf/bpftool/Documentation/
Dbpftool-map.rst56 | | **cgroup_storage** | **reuseport_sockarray** | **percpu_cgroup_storage**
/linux-6.6.21/include/linux/
Dbpf.h1439 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member
1831 struct bpf_cgroup_storage *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member