Home
last modified time | relevance | path

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

/linux/mm/
H A Dmemcontrol.c142 struct obj_cgroup *objcg = container_of(ref, struct obj_cgroup, refcnt); in obj_cgroup_release() local
167 nr_bytes = atomic_read(&objcg->nr_charged_bytes); in obj_cgroup_release()
174 memcg = get_mem_cgroup_from_objcg(objcg); in obj_cgroup_release()
183 list_del(&objcg->list); in obj_cgroup_release()
187 kfree_rcu(objcg, rcu); in obj_cgroup_release()
192 struct obj_cgroup *objcg; in obj_cgroup_alloc() local
195 objcg = kzalloc_obj(struct obj_cgroup); in obj_cgroup_alloc()
196 if (!objcg) in obj_cgroup_alloc()
199 ret = percpu_ref_init(&objcg->refcnt, obj_cgroup_release, 0, in obj_cgroup_alloc()
202 kfree(objcg); in obj_cgroup_alloc()
[all …]
H A Dzswap.c196 struct obj_cgroup *objcg; member
654 return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; in mem_cgroup_from_entry()
770 if (entry->objcg) { in zswap_entry_free()
771 obj_cgroup_uncharge_zswap(entry->objcg, entry->length); in zswap_entry_free()
772 obj_cgroup_put(entry->objcg); in zswap_entry_free()
1045 if (entry->objcg) in zswap_writeback_entry()
1046 count_objcg_events(entry->objcg, ZSWPWB, 1); in zswap_writeback_entry()
1402 struct obj_cgroup *objcg, in zswap_store_page() argument
1445 if (objcg) { in zswap_store_page()
1446 obj_cgroup_get(objcg); in zswap_store_page()
[all …]
/linux/kernel/bpf/
H A Dmemalloc.c97 struct obj_cgroup *objcg; member
163 if (c->objcg) in get_memcg()
164 return get_mem_cgroup_from_objcg(c->objcg); in get_memcg()
506 struct obj_cgroup *objcg = NULL; in bpf_mem_alloc_init() local
528 objcg = get_obj_cgroup_from_current(); in bpf_mem_alloc_init()
530 ma->objcg = objcg; in bpf_mem_alloc_init()
535 c->objcg = objcg; in bpf_mem_alloc_init()
549 objcg = get_obj_cgroup_from_current(); in bpf_mem_alloc_init()
551 ma->objcg = objcg; in bpf_mem_alloc_init()
557 c->objcg = objcg; in bpf_mem_alloc_init()
[all …]
H A Dsyscall.c494 map->objcg = get_obj_cgroup_from_current(); in bpf_map_save_memcg()
499 if (map->objcg) in bpf_map_release_memcg()
500 obj_cgroup_put(map->objcg); in bpf_map_release_memcg()
505 if (map->objcg) in bpf_map_get_memcg()
506 return get_mem_cgroup_from_objcg(map->objcg); in bpf_map_get_memcg()
/linux/include/linux/
H A Dbpf_mem_alloc.h14 struct obj_cgroup *objcg; member
33 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
H A Dsched.h1542 struct obj_cgroup *objcg; member
H A Dbpf.h317 struct obj_cgroup *objcg; member
/linux/tools/cgroup/
H A Dmemcg_slabinfo.py186 obj_cgroups.add(memcg.objcg.value_())
/linux/mm/kfence/
H A Dcore.c1247 KFENCE_WARN_ON(meta->obj_exts.objcg); in __kfence_free()