Searched refs:local_storage (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/kernel/bpf/ |
D | bpf_local_storage.c | 89 struct bpf_local_storage *local_storage; in bpf_local_storage_free_rcu() local 91 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in bpf_local_storage_free_rcu() 92 kfree_rcu(local_storage, rcu); in bpf_local_storage_free_rcu() 107 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage, in bpf_selem_unlink_storage_nolock() argument 116 owner = local_storage->owner; in bpf_selem_unlink_storage_nolock() 126 &local_storage->list); in bpf_selem_unlink_storage_nolock() 129 local_storage->owner = NULL; in bpf_selem_unlink_storage_nolock() 149 if (rcu_access_pointer(local_storage->cache[smap->cache_idx]) == in bpf_selem_unlink_storage_nolock() 151 RCU_INIT_POINTER(local_storage->cache[smap->cache_idx], NULL); in bpf_selem_unlink_storage_nolock() 164 struct bpf_local_storage *local_storage; in __bpf_selem_unlink_storage() local [all …]
|
D | bpf_inode_storage.c | 60 struct bpf_local_storage *local_storage; in bpf_inode_storage_free() local 71 local_storage = rcu_dereference(bsb->storage); in bpf_inode_storage_free() 72 if (!local_storage) { in bpf_inode_storage_free() 86 raw_spin_lock_bh(&local_storage->lock); in bpf_inode_storage_free() 87 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_inode_storage_free() 93 local_storage, selem, false, false); in bpf_inode_storage_free() 95 raw_spin_unlock_bh(&local_storage->lock); in bpf_inode_storage_free() 102 kfree_rcu(local_storage, rcu); in bpf_inode_storage_free()
|
D | bpf_task_storage.c | 75 struct bpf_local_storage *local_storage; in bpf_task_storage_free() local 82 local_storage = rcu_dereference(task->bpf_storage); in bpf_task_storage_free() 83 if (!local_storage) { in bpf_task_storage_free() 98 raw_spin_lock_irqsave(&local_storage->lock, flags); in bpf_task_storage_free() 99 hlist_for_each_entry_safe(selem, n, &local_storage->list, snode) { in bpf_task_storage_free() 105 local_storage, selem, false, false); in bpf_task_storage_free() 107 raw_spin_unlock_irqrestore(&local_storage->lock, flags); in bpf_task_storage_free() 115 kfree_rcu(local_storage, rcu); in bpf_task_storage_free()
|
D | Makefile | 11 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | local_storage.c | 20 struct local_storage { struct 29 __type(value, struct local_storage); argument 36 __type(value, struct local_storage); 43 __type(value, struct local_storage); 50 __type(value, struct local_storage); 57 struct local_storage *storage; in BPF_PROG() 81 struct local_storage *storage; in BPF_PROG() 111 struct local_storage *storage; in BPF_PROG() 149 struct local_storage *storage; in BPF_PROG() 171 struct local_storage *storage; in BPF_PROG()
|
/linux-6.1.9/include/linux/ |
D | bpf_local_storage.h | 75 struct bpf_local_storage __rcu *local_storage; member 129 bpf_local_storage_lookup(struct bpf_local_storage *local_storage, 141 void bpf_selem_link_storage_nolock(struct bpf_local_storage *local_storage, 144 bool bpf_selem_unlink_storage_nolock(struct bpf_local_storage *local_storage,
|
/linux-6.1.9/tools/testing/selftests/bpf/benchs/ |
D | run_common.sh | 44 function local_storage() function
|
/linux-6.1.9/net/core/ |
D | bpf_sk_storage.c | 243 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 770 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 783 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 850 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | test_local_storage.c | 102 struct local_storage *skel = NULL; in test_test_local_storage()
|