Home
last modified time | relevance | path

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

/linux/kernel/bpf/
H A Dbpf_local_storage.c111 struct bpf_local_storage *local_storage; in bpf_selem_alloc()
116 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
118 kfree(local_storage); in __bpf_local_storage_free_trace_rcu() local
120 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
124 static void __bpf_local_storage_free(struct bpf_local_storage *local_storage, in __bpf_local_storage_free_trace_rcu()
128 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
130 call_rcu_tasks_trace(&local_storage->rcu, in bpf_local_storage_free_rcu()
136 struct bpf_local_storage *local_storage; in bpf_local_storage_free_rcu()
138 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in bpf_local_storage_free_trace_rcu()
139 kfree_nolock(local_storage); in bpf_local_storage_free_trace_rcu()
132 struct bpf_local_storage *local_storage; bpf_local_storage_free_rcu() local
147 __bpf_local_storage_free(struct bpf_local_storage * local_storage,bool vanilla_rcu) __bpf_local_storage_free() argument
157 bpf_local_storage_free(struct bpf_local_storage * local_storage,struct bpf_local_storage_map * smap,bool bpf_ma,bool reuse_now) bpf_local_storage_free() argument
285 bpf_selem_unlink_storage_nolock(struct bpf_local_storage * local_storage,struct bpf_local_storage_elem * selem,bool uncharge_mem,struct hlist_head * free_selem_list) bpf_selem_unlink_storage_nolock() argument
339 check_storage_bpf_ma(struct bpf_local_storage * local_storage,struct bpf_local_storage_map * storage_smap,struct bpf_local_storage_elem * selem) check_storage_bpf_ma() argument
378 struct bpf_local_storage *local_storage; bpf_selem_unlink_storage() local
405 bpf_selem_link_storage_nolock(struct bpf_local_storage * local_storage,struct bpf_local_storage_elem * selem) bpf_selem_link_storage_nolock() argument
452 __bpf_local_storage_insert_cache(struct bpf_local_storage * local_storage,struct bpf_local_storage_map * smap,struct bpf_local_storage_elem * selem) __bpf_local_storage_insert_cache() argument
562 struct bpf_local_storage *local_storage; bpf_local_storage_update() local
731 bpf_local_storage_destroy(struct bpf_local_storage * local_storage) bpf_local_storage_destroy() argument
[all...]
H A DMakefile12 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o bpf_insn_array.o
/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);
51 __type(value, struct local_storage);
58 __type(value, struct local_storage);
65 struct bpf_local_storage *local_storage; in BPF_PROG() local
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()
[all …]
H A Dsk_storage_omem_uncharge.c23 int BPF_PROG(bpf_local_storage_destroy, struct bpf_local_storage *local_storage) in BPF_PROG() argument
27 if (local_storage_ptr != local_storage) in BPF_PROG()
/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()
/linux/tools/testing/selftests/bpf/benchs/
H A Drun_common.sh44 function local_storage() function
/linux/net/core/
H A Dbpf_sk_storage.c207 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone()
722 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next()
735 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next()
802 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()