Home
last modified time | relevance | path

Searched refs:bpf_mem_alloc (Results 1 – 10 of 10) 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.h66 extern struct bpf_mem_alloc bpf_global_ma, bpf_global_percpu_ma;
/linux/kernel/bpf/
H A Dmemalloc.c513 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu) in bpf_mem_alloc_init()
581 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg) in bpf_mem_alloc_percpu_init()
595 int bpf_mem_alloc_percpu_unit_init(struct bpf_mem_alloc *ma, int size) in bpf_mem_alloc_percpu_unit_init()
662 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs()
685 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
697 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
718 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
724 static void destroy_mem_alloc(struct bpf_mem_alloc *ma, int rcu_in_progress) in destroy_mem_alloc()
726 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
749 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
[all …]
H A Dcpumask.c4 #include <linux/bpf_mem_alloc.h>
30 static struct bpf_mem_alloc bpf_cpumask_ma;
H A Dtask_iter.c832 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 Dhelpers.c2311 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl()
2324 return bpf_mem_alloc(&bpf_global_percpu_ma, size); in bpf_percpu_obj_new_impl()
2330 struct bpf_mem_alloc *ma; in __bpf_obj_drop_impl()
3314 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes); in bpf_iter_bits_new()
4273 ctx = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_task_work_ctx)); in bpf_task_work_fetch_ctx()
4420 state = bpf_mem_alloc(&bpf_global_ma, sizeof(struct bpf_dynptr_file_impl)); in make_file_dynptr()
H A Dlpm_trie.c36 struct bpf_mem_alloc ma;
H A Dhashtab.c87 struct bpf_mem_alloc ma;
88 struct bpf_mem_alloc pcpu_ma;
502 struct bpf_mem_alloc *ma; in htab_set_dtor()
H A Dcore.c71 struct bpf_mem_alloc bpf_global_ma;
H A Dverifier.c53 struct bpf_mem_alloc bpf_global_percpu_ma;