Searched refs:bpf_mem_cache (Results 1 – 2 of 2) sorted by relevance
/linux/kernel/bpf/ |
H A D | memalloc.c | 81 struct bpf_mem_cache { struct 104 struct bpf_mem_cache *tgt; argument 123 struct bpf_mem_cache cache[NUM_CACHES]; argument 140 static void *__alloc(struct bpf_mem_cache *c, int node, gfp_t flags) in __alloc() 158 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg() 169 static void inc_active(struct bpf_mem_cache *c, unsigned long *flags) in inc_active() 187 static void dec_active(struct bpf_mem_cache *c, unsigned long *flags) in dec_active() 194 static void add_obj_to_free_list(struct bpf_mem_cache *c, void *obj) in add_obj_to_free_list() 205 static void alloc_bulk(struct bpf_mem_cache *c, int cnt, int node, bool atomic) in alloc_bulk() 277 struct bpf_mem_cache *c = container_of(head, struct bpf_mem_cache, rcu_ttrace); in __free_rcu() [all …]
|
/linux/include/linux/ |
H A D | bpf_mem_alloc.h | 8 struct bpf_mem_cache; 13 struct bpf_mem_cache __percpu *cache;
|