Searched refs:bpf_mem_alloc (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/include/linux/ |
| H A D | bpf_mem_alloc.h | 11 struct bpf_mem_alloc { struct 29 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu); 33 int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size); 34 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma); 40 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size); 41 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr); 42 void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr); 45 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma); 46 void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr); 47 void bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr); [all …]
|
| H A D | bpf_local_storage.h | 59 struct bpf_mem_alloc selem_ma; 60 struct bpf_mem_alloc storage_ma;
|
| H A D | bpf.h | 65 extern struct bpf_mem_alloc bpf_global_ma, bpf_global_percpu_ma;
|
| /linux-6.15/kernel/bpf/ |
| H A D | memalloc.c | 658 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs() 681 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier() 690 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc() 711 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred() 719 struct bpf_mem_alloc *copy; in destroy_mem_alloc() 742 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy() 889 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function 907 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free() 923 void notrace bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free_rcu() 939 void notrace *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma) in bpf_mem_cache_alloc() [all …]
|
| H A D | range_tree.c | 154 new_rn = bpf_mem_alloc(&bpf_global_ma, sizeof(struct range_node)); in range_tree_clear() 245 left = bpf_mem_alloc(&bpf_global_ma, sizeof(struct range_node)); in range_tree_set()
|
| H A D | cpumask.c | 30 static struct bpf_mem_alloc bpf_cpumask_ma;
|
| H A D | task_iter.c | 832 kit->data = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_iter_task_vma_kern_data)); in bpf_iter_task_vma_new() 914 kit->css_it = bpf_mem_alloc(&bpf_global_ma, sizeof(struct css_task_iter)); in bpf_iter_css_task_new()
|
| H A D | lpm_trie.c | 36 struct bpf_mem_alloc ma;
|
| H A D | helpers.c | 2145 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl() 2158 return bpf_mem_alloc(&bpf_global_percpu_ma, size); in bpf_percpu_obj_new_impl() 2164 struct bpf_mem_alloc *ma; in __bpf_obj_drop_impl() 3037 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes); in bpf_iter_bits_new()
|
| H A D | hashtab.c | 90 struct bpf_mem_alloc ma; 91 struct bpf_mem_alloc pcpu_ma;
|
| H A D | core.c | 68 struct bpf_mem_alloc bpf_global_ma;
|
| H A D | verifier.c | 47 struct bpf_mem_alloc bpf_global_percpu_ma;
|