Searched refs:local_storage (Results 1 – 11 of 11) sorted by relevance
| /linux/kernel/bpf/ |
| A D | bpf_local_storage.c | 124 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 …]
|
| A D | bpf_inode_storage.c | 59 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()
|
| A D | bpf_cgrp_storage.c | 48 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()
|
| A D | bpf_task_storage.c | 74 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()
|
| A D | Makefile | 12 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | local_storage.c | 21 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 …]
|
| A D | sk_storage_omem_uncharge.c | 23 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/include/linux/ |
| A D | bpf_local_storage.h | 79 struct bpf_local_storage __rcu *local_storage; member 132 void __bpf_local_storage_insert_cache(struct bpf_local_storage *local_storage, 137 bpf_local_storage_lookup(struct bpf_local_storage *local_storage, in bpf_local_storage_lookup() argument 145 sdata = rcu_dereference_check(local_storage->cache[smap->cache_idx], in bpf_local_storage_lookup() 151 hlist_for_each_entry_rcu(selem, &local_storage->list, snode, in bpf_local_storage_lookup() 159 __bpf_local_storage_insert_cache(local_storage, smap, selem); in bpf_local_storage_lookup() 163 void bpf_local_storage_destroy(struct bpf_local_storage *local_storage); 174 void bpf_selem_link_storage_nolock(struct bpf_local_storage *local_storage,
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | test_local_storage.c | 26 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/ |
| A D | run_common.sh | 44 function local_storage() function
|
| /linux/net/core/ |
| A D | bpf_sk_storage.c | 208 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 734 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 747 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 814 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()
|
Completed in 23 milliseconds