Searched refs:storage (Results 1 – 3 of 3) sorted by relevance
/kernel/bpf/ |
D | local_storage.c | 60 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup() local 62 storage = container_of(node, struct bpf_cgroup_storage, node); in cgroup_storage_lookup() 64 switch (bpf_cgroup_storage_key_cmp(key, &storage->key)) { in cgroup_storage_lookup() 74 return storage; in cgroup_storage_lookup() 85 struct bpf_cgroup_storage *storage) in cgroup_storage_insert() argument 96 switch (bpf_cgroup_storage_key_cmp(&storage->key, &this->key)) { in cgroup_storage_insert() 108 rb_link_node(&storage->node, parent, new); in cgroup_storage_insert() 109 rb_insert_color(&storage->node, root); in cgroup_storage_insert() 118 struct bpf_cgroup_storage *storage; in cgroup_storage_lookup_elem() local 120 storage = cgroup_storage_lookup(map, key, false); in cgroup_storage_lookup_elem() [all …]
|
D | cgroup.c | 54 bpf_cgroup_storage_unlink(pl->storage[stype]); in cgroup_bpf_release() 55 bpf_cgroup_storage_free(pl->storage[stype]); in cgroup_bpf_release() 173 pl->storage[stype]; in compute_effective_progs() 306 struct bpf_cgroup_storage *storage[MAX_BPF_CGROUP_STORAGE_TYPE] = {}; in __cgroup_bpf_attach() local 331 storage[stype] = bpf_cgroup_storage_alloc(prog, stype); in __cgroup_bpf_attach() 332 if (IS_ERR(storage[stype])) { in __cgroup_bpf_attach() 333 storage[stype] = NULL; in __cgroup_bpf_attach() 335 bpf_cgroup_storage_free(storage[stype]); in __cgroup_bpf_attach() 345 bpf_cgroup_storage_free(storage[stype]); in __cgroup_bpf_attach() 353 bpf_cgroup_storage_free(storage[stype]); in __cgroup_bpf_attach() [all …]
|
D | helpers.c | 362 struct bpf_cgroup_storage *storage; in BPF_CALL_2() local 365 storage = this_cpu_read(bpf_cgroup_storage[stype]); in BPF_CALL_2() 368 ptr = &READ_ONCE(storage->buf)->data[0]; in BPF_CALL_2() 370 ptr = this_cpu_ptr(storage->percpu_buf); in BPF_CALL_2()
|