Home
last modified time | relevance | path

Searched refs:bpf_mem_cache (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/bpf/
H A Dmemalloc.c81 struct bpf_mem_cache { struct
104 struct bpf_mem_cache *tgt; argument
131 struct bpf_mem_cache cache[NUM_CACHES]; argument
148 static void *__alloc(struct bpf_mem_cache *c, int node, gfp_t flags) in __alloc()
166 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg()
177 static void inc_active(struct bpf_mem_cache *c, unsigned long *flags) in inc_active()
195 static void dec_active(struct bpf_mem_cache *c, unsigned long *flags) in dec_active()
202 static void add_obj_to_free_list(struct bpf_mem_cache *c, void *obj) in add_obj_to_free_list()
213 static void alloc_bulk(struct bpf_mem_cache *c, int cnt, int node, bool atomic) in alloc_bulk()
270 static int free_all(struct bpf_mem_cache *c, struct llist_node *llnode, bool percpu) in free_all()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_ma_ttrace.c29 struct bpf_mem_cache *c; in check_ttrace()
39 c = bpf_core_cast((void *)(cache + off), struct bpf_mem_cache); in check_ttrace()
/linux/include/linux/
H A Dbpf_mem_alloc.h8 struct bpf_mem_cache;
13 struct bpf_mem_cache __percpu *cache;