Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dbpf_mem_alloc.h11 struct bpf_mem_alloc { struct
25 int bpf_mem_alloc_init(struct bpf_mem_alloc *ma, int size, bool percpu);
26 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma);
29 void *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size);
30 void bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr);
31 void bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
34 void *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma);
35 void bpf_mem_cache_free(struct bpf_mem_alloc *ma, void *ptr);
36 void bpf_mem_cache_free_rcu(struct bpf_mem_alloc *ma, void *ptr);
38 void *bpf_mem_cache_alloc_flags(struct bpf_mem_alloc *ma, gfp_t flags);
H A Dbpf_local_storage.h59 struct bpf_mem_alloc selem_ma;
60 struct bpf_mem_alloc storage_ma;
H A Dbpf.h58 extern struct bpf_mem_alloc bpf_global_ma;
/openbmc/linux/kernel/bpf/
H A Dmemalloc.c593 static void check_leaked_objs(struct bpf_mem_alloc *ma) in check_leaked_objs()
616 static void free_mem_alloc_no_barrier(struct bpf_mem_alloc *ma) in free_mem_alloc_no_barrier()
625 static void free_mem_alloc(struct bpf_mem_alloc *ma) in free_mem_alloc()
646 struct bpf_mem_alloc *ma = container_of(work, struct bpf_mem_alloc, work); in free_mem_alloc_deferred()
654 struct bpf_mem_alloc *copy; in destroy_mem_alloc()
677 void bpf_mem_alloc_destroy(struct bpf_mem_alloc *ma) in bpf_mem_alloc_destroy()
817 void notrace *bpf_mem_alloc(struct bpf_mem_alloc *ma, size_t size) in bpf_mem_alloc() function
833 void notrace bpf_mem_free(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free()
849 void notrace bpf_mem_free_rcu(struct bpf_mem_alloc *ma, void *ptr) in bpf_mem_free_rcu()
865 void notrace *bpf_mem_cache_alloc(struct bpf_mem_alloc *ma) in bpf_mem_cache_alloc()
[all …]
H A Dcpumask.c30 static struct bpf_mem_alloc bpf_cpumask_ma;
H A Dhashtab.c88 struct bpf_mem_alloc ma;
89 struct bpf_mem_alloc pcpu_ma;
H A Dhelpers.c1986 p = bpf_mem_alloc(&bpf_global_ma, size); in bpf_obj_new_impl()
H A Dcore.c67 struct bpf_mem_alloc bpf_global_ma;