Home
last modified time | relevance | path

Searched refs:bpf_mem_alloc (Results 1 – 9 of 9) sorted by relevance

/linux/include/linux/
H A Dbpf_mem_alloc.h11 struct bpf_mem_alloc { struct
31 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu);
33 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
35 int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size);
36 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma);
37 void bpf_mem_alloc_set_dtor(struct bpf_mem_alloc *ma,
46 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size);
47 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr);
48 void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
51 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma);
[all …]
H A Dbpf.h71 extern struct bpf_mem_alloc bpf_global_ma, bpf_global_percpu_ma;
/linux/kernel/bpf/
H A Dmemalloc.c539 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init()
608 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg) in bpf_mem_alloc_percpu_init()
622 int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size) in bpf_mem_alloc_percpu_unit_init()
689 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs()
712 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
724 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
748 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
754 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc()
756 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
779 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
[all …]
H A Dcpumask.c30 static struct bpf_mem_alloc bpf_cpumask_ma;
H A Dtask_iter.c9 #include <linux/bpf_mem_alloc.h>
901 * bpf_mem_alloc'd bpf_iter_task_vma_kern_data in bpf_iter_task_vma_new()
903 kit->data = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_iter_task_vma_kern_data)); in bpf_iter_task_vma_new()
1079 kit->css_it = bpf_mem_alloc(&bpf_global_ma, sizeof(struct css_task_iter)); in bpf_iter_css_task_next()
H A Dhashtab.c19 #include <linux/bpf_mem_alloc.h>
74 * atomic contexts even on RT. Before the introduction of bpf_mem_alloc,
77 * after hash map was fully converted to use bpf_mem_alloc, there will be
88 struct bpf_mem_alloc ma;
89 struct bpf_mem_alloc pcpu_ma;
342 * Preallocated maps do not have a bpf_mem_alloc destructor, so fully in prealloc_init()
602 static int bpf_ma_set_dtor(struct bpf_map *map, struct bpf_mem_alloc *ma, in htab_map_alloc()
1845 /* htab no longer uses call_rcu() directly. bpf_mem_alloc does it in __htab_map_lookup_and_delete_batch()
2978 struct bpf_mem_alloc ma; in rhtab_delete_elem()
H A Dhelpers.c25 #include <linux/bpf_mem_alloc.h>
2424 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_drop()
2454 return bpf_mem_alloc(&bpf_global_percpu_ma, size);
2465 struct bpf_mem_alloc *ma; in bpf_refcount_acquire()
3644 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes); in bpf_copy_from_user_str()
H A Dcore.c43 #include <linux/bpf_mem_alloc.h>
74 struct bpf_mem_alloc bpf_global_ma;
H A Dverifier.c36 #include <linux/bpf_mem_alloc.h>
61 struct bpf_mem_alloc bpf_global_percpu_ma;