Searched refs:local_storage (Results 1 – 10 of 10) sorted by relevance
/linux/kernel/bpf/ |
H A D | bpf_local_storage.c | 118 struct bpf_local_storage *local_storage; in __bpf_local_storage_free_trace_rcu() local 123 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in __bpf_local_storage_free_trace_rcu() 125 kfree(local_storage); in __bpf_local_storage_free_trace_rcu() 127 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free_trace_rcu() 132 struct bpf_local_storage *local_storage; in bpf_local_storage_free_rcu() local 134 local_storage = container_of(rcu, struct bpf_local_storage, rcu); in bpf_local_storage_free_rcu() 135 bpf_mem_cache_raw_free(local_storage); in bpf_local_storage_free_rcu() 147 static void __bpf_local_storage_free(struct bpf_local_storage *local_storage, in __bpf_local_storage_free() argument 151 kfree_rcu(local_storage, rcu); in __bpf_local_storage_free() 153 call_rcu_tasks_trace(&local_storage->rcu, in __bpf_local_storage_free() [all …]
|
H A D | bpf_inode_storage.c | 58 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() 72 bpf_local_storage_destroy(local_storage); in bpf_inode_storage_free()
|
H A D | bpf_cgrp_storage.c | 46 struct bpf_local_storage *local_storage; in bpf_cgrp_storage_free() local 50 local_storage = rcu_dereference(cgroup->bpf_cgrp_storage); in bpf_cgrp_storage_free() 51 if (!local_storage) in bpf_cgrp_storage_free() 55 bpf_local_storage_destroy(local_storage); in bpf_cgrp_storage_free()
|
H A D | bpf_task_storage.c | 71 struct bpf_local_storage *local_storage; in bpf_task_storage_free() local 76 local_storage = rcu_dereference(task->bpf_storage); in bpf_task_storage_free() 77 if (!local_storage) in bpf_task_storage_free() 81 bpf_local_storage_destroy(local_storage); in bpf_task_storage_free()
|
H A D | Makefile | 12 obj-$(CONFIG_BPF_SYSCALL) += local_storage.o queue_stack_maps.o ringbuf.o
|
/linux/tools/testing/selftests/bpf/progs/ |
H 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); 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 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/tools/testing/selftests/bpf/prog_tests/ |
H 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/ |
H A D | run_common.sh | 44 function local_storage() function
|
/linux/net/core/ |
H A D | bpf_sk_storage.c | 210 rcu_dereference(copy_selem->local_storage); in bpf_sk_storage_clone() 726 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 739 sk_storage = rcu_dereference(selem->local_storage); in bpf_sk_storage_map_seq_find_next() 806 sk_storage = rcu_dereference(selem->local_storage); in DEFINE_BPF_ITER_FUNC()
|