Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A Dcgroup_storage.c37 struct cgroup_storage *skel; in test_cgroup_storage()
67 err = bpf_map__get_next_key(skel->maps.cgroup_storage, NULL, &key, in test_cgroup_storage()
71 err = bpf_map__lookup_elem(skel->maps.cgroup_storage, &key, sizeof(key), in test_cgroup_storage()
78 err = bpf_map__update_elem(skel->maps.cgroup_storage, &key, sizeof(key), in test_cgroup_storage()
/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A 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()
H A 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()
H A Dcgroup_storage.c10 } cgroup_storage SEC(".maps");
17 counter = bpf_get_local_storage(&cgroup_storage, 0); in bpf_prog()
H A Dcg_storage_multi_egress_only.c19 } cgroup_storage SEC(".maps");
27 bpf_get_local_storage(&cgroup_storage, 0); in egress()
H A Dlsm_cgroup.c30 } cgroup_storage SEC(".maps");
43 val = bpf_get_local_storage(&cgroup_storage, 0); in test_local_storage()
H A 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/kernel/bpf/
H A Dbpf_cgrp_storage.c65 struct bpf_local_storage *cgroup_storage; in cgroup_storage_lookup() local
68 cgroup_storage = rcu_dereference_check(cgroup->bpf_cgrp_storage, in cgroup_storage_lookup()
70 if (!cgroup_storage) in cgroup_storage_lookup()
74 return bpf_local_storage_lookup(cgroup_storage, smap, cacheit_lockit); in cgroup_storage_lookup()
H A 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()
/linux/Documentation/bpf/
H A 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);
H A Ddrgn.rst177 .cgroup_storage = (struct bpf_map *[2]){},
/linux/net/bpf/
H A Dtest_run.c412 item.cgroup_storage[stype] = bpf_cgroup_storage_alloc(prog, stype); in bpf_test_run()
413 if (IS_ERR(item.cgroup_storage[stype])) { in bpf_test_run()
414 item.cgroup_storage[stype] = NULL; in bpf_test_run()
416 bpf_cgroup_storage_free(item.cgroup_storage[stype]); in bpf_test_run()
443 bpf_cgroup_storage_free(item.cgroup_storage[stype]); in bpf_test_run()
/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-map.rst56 | | **cgroup_storage** | **reuseport_sockarray** | **percpu_cgroup_storage**
/linux/include/linux/
H A Dbpf.h1558 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member
2065 struct bpf_cgroup_storage *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member