/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cg_storage_multi.c | 119 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 D | cgroup_storage.c | 37 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 D | verifier_cgroup_storage.c | 14 } 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 D | cg_storage_multi_isolated.c | 19 } 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 D | cg_storage_multi_shared.c | 19 } 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 D | cgroup_storage.c | 10 } cgroup_storage SEC(".maps"); 17 counter = bpf_get_local_storage(&cgroup_storage, 0); in bpf_prog()
|
H A D | cg_storage_multi_egress_only.c | 19 } cgroup_storage SEC(".maps"); 27 bpf_get_local_storage(&cgroup_storage, 0); in egress()
|
H A D | lsm_cgroup.c | 30 } cgroup_storage SEC(".maps"); 43 val = bpf_get_local_storage(&cgroup_storage, 0); in test_local_storage()
|
H A D | map_ptr_kern.c | 525 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 D | bpf_cgrp_storage.c | 65 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 D | local_storage.c | 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() 508 map = prog->aux->cgroup_storage[stype]; in bpf_cgroup_storage_alloc()
|
/linux/Documentation/bpf/ |
H A D | map_cgroup_storage.rst | 65 } 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 D | drgn.rst | 177 .cgroup_storage = (struct bpf_map *[2]){},
|
/linux/net/bpf/ |
H A D | test_run.c | 412 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 D | bpftool-map.rst | 56 | | **cgroup_storage** | **reuseport_sockarray** | **percpu_cgroup_storage**
|
/linux/include/linux/ |
H A D | bpf.h | 1558 struct bpf_map *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member 2065 struct bpf_cgroup_storage *cgroup_storage[MAX_BPF_CGROUP_STORAGE_TYPE]; member
|