Home
last modified time | relevance | path

Searched refs:local_storage (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/kernel/bpf/
H A Dbpf_local_storage.c124 kfree(local_storage); in __bpf_local_storage_free_trace_rcu()
126 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
134 bpf_mem_cache_raw_free(local_storage); in bpf_local_storage_free_rcu()
150 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free()
160 if (!local_storage) in bpf_local_storage_free()
262 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock()
272 &local_storage->list); in bpf_selem_unlink_storage_nolock()
275 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock()
354 local_storage = rcu_dereference_check(selem->local_storage, in bpf_selem_unlink_storage()
373 RCU_INIT_POINTER(selem->local_storage, local_storage); in bpf_selem_link_storage_nolock()
[all …]
H A Dbpf_inode_storage.c59 struct bpf_local_storage *local_storage; in bpf_inode_storage_free() local
68 local_storage = rcu_dereference(bsb->storage); in bpf_inode_storage_free()
69 if (!local_storage) { in bpf_inode_storage_free()
74 bpf_local_storage_destroy(local_storage); in bpf_inode_storage_free()
H A Dbpf_cgrp_storage.c48 struct bpf_local_storage *local_storage; in bpf_cgrp_storage_free() local
51 local_storage = rcu_dereference(cgroup->bpf_cgrp_storage); in bpf_cgrp_storage_free()
52 if (!local_storage) { in bpf_cgrp_storage_free()
58 bpf_local_storage_destroy(local_storage); in bpf_cgrp_storage_free()
H A Dbpf_task_storage.c74 struct bpf_local_storage *local_storage; in bpf_task_storage_free() local
78 local_storage = rcu_dereference(task->bpf_storage); in bpf_task_storage_free()
79 if (!local_storage) { in bpf_task_storage_free()
85 bpf_local_storage_destroy(local_storage); in bpf_task_storage_free()
H A DMakefile12 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c21 struct local_storage { struct
30 __type(value, struct local_storage); argument
37 __type(value, struct local_storage);
44 __type(value, struct local_storage);
66 struct local_storage *storage; in BPF_PROG()
98 local_storage = task->bpf_storage; in BPF_PROG()
99 if (!local_storage || local_storage->smap) in BPF_PROG()
112 struct local_storage *storage; in BPF_PROG()
142 struct local_storage *storage; in BPF_PROG()
188 struct local_storage *storage; in BPF_PROG()
[all …]
H A Dsk_storage_omem_uncharge.c25 int BPF_PROG(bpf_local_storage_destroy, struct bpf_local_storage *local_storage) in BPF_PROG() argument
29 if (local_storage_ptr != local_storage) in BPF_PROG()
/openbmc/linux/include/linux/
H A Dbpf_local_storage.h79 struct bpf_local_storage __rcu *local_storage; member
133 bpf_local_storage_lookup(struct bpf_local_storage *local_storage,
137 void bpf_local_storage_destroy(struct bpf_local_storage *local_storage);
148 void bpf_selem_link_storage_nolock(struct bpf_local_storage *local_storage,
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_local_storage.c26 static int run_self_unlink(struct local_storage *skel, const char *rm_path) in run_self_unlink()
95 struct local_storage *skel = NULL; in test_test_local_storage()
/openbmc/linux/tools/testing/selftests/bpf/benchs/
H A Drun_common.sh44 function local_storage() function
/openbmc/linux/net/core/
H A Dbpf_sk_storage.c208 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone()
738 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next()
751 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next()
818 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()