Home
last modified time | relevance | path

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

/Linux-v6.6/kernel/bpf/
Dbpf_local_storage.c117 struct bpf_local_storage *local_storage; in __bpf_local_storage_free_trace_rcu() local
122 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
124 kfree(local_storage); in __bpf_local_storage_free_trace_rcu()
126 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free_trace_rcu()
131 struct bpf_local_storage *local_storage; in bpf_local_storage_free_rcu() local
133 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in bpf_local_storage_free_rcu()
134 bpf_mem_cache_raw_free(local_storage); in bpf_local_storage_free_rcu()
146 static void __bpf_local_storage_free(struct bpf_local_storage *local_storage, in __bpf_local_storage_free() argument
150 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free()
152 call_rcu_tasks_trace(&local_storage->rcu, in __bpf_local_storage_free()
[all …]
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()
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()
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()
DMakefile12 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
/Linux-v6.6/tools/testing/selftests/bpf/progs/
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 …]
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()
/Linux-v6.6/include/linux/
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,
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
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-v6.6/tools/testing/selftests/bpf/benchs/
Drun_common.sh44 function local_storage() function
/Linux-v6.6/net/core/
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()