Home
last modified time | relevance | path

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

/linux/mm/
H A Dmemcontrol.c178 if (!objcg) in obj_cgroup_alloc()
188 return objcg; in obj_cgroup_alloc()
196 objcg = rcu_replace_pointer(memcg->objcg, NULL, true); in memcg_reparent_objcgs()
2462 objcg = rcu_dereference(memcg->objcg); in __get_obj_cgroup_from_memcg()
2463 if (likely(objcg && obj_cgroup_tryget(objcg))) in __get_obj_cgroup_from_memcg()
2531 objcg = READ_ONCE(current->objcg); in current_obj_cgroup()
2556 objcg = rcu_dereference_check(memcg->objcg, 1); in current_obj_cgroup()
2989 slab_obj_exts(slab)[off].objcg = objcg; in __memcg_slab_post_alloc_hook()
3005 objcg = obj_exts[off].objcg; in __memcg_slab_free_hook()
3076 rcu_assign_pointer(memcg->objcg, objcg); in memcg_online_kmem()
[all …]
H A Dzswap.c202 struct obj_cgroup *objcg; member
685 return entry->objcg ? obj_cgroup_memcg(entry->objcg) : NULL; in mem_cgroup_from_entry()
800 if (entry->objcg) { in zswap_entry_free()
802 obj_cgroup_put(entry->objcg); in zswap_entry_free()
1055 if (entry->objcg) in zswap_writeback_entry()
1427 if (objcg && !obj_cgroup_may_zswap(objcg)) { in zswap_store()
1451 if (objcg) { in zswap_store()
1464 entry->objcg = objcg; in zswap_store()
1484 if (objcg) { in zswap_store()
1517 obj_cgroup_put(objcg); in zswap_store()
[all …]
H A Dpercpu.c1626 struct obj_cgroup *objcg; in pcpu_memcg_pre_alloc_hook() local
1631 objcg = current_obj_cgroup(); in pcpu_memcg_pre_alloc_hook()
1632 if (!objcg) in pcpu_memcg_pre_alloc_hook()
1638 *objcgp = objcg; in pcpu_memcg_pre_alloc_hook()
1646 if (!objcg) in pcpu_memcg_post_alloc_hook()
1650 obj_cgroup_get(objcg); in pcpu_memcg_post_alloc_hook()
1664 struct obj_cgroup *objcg; in pcpu_memcg_free_hook() local
1670 if (!objcg) in pcpu_memcg_free_hook()
1681 obj_cgroup_put(objcg); in pcpu_memcg_free_hook()
1749 struct obj_cgroup *objcg = NULL; in pcpu_alloc_noprof() local
[all …]
H A Dslub.c2216 if (unlikely(slab_exts[off].objcg)) in memcg_slab_post_charge()
/linux/include/linux/
H A Dmemcontrol.h252 struct obj_cgroup __rcu *objcg; member
377 return READ_ONCE(objcg->memcg); in obj_cgroup_memcg()
481 struct obj_cgroup *objcg; in folio_memcg_rcu() local
484 return obj_cgroup_memcg(objcg); in folio_memcg_rcu()
526 struct obj_cgroup *objcg; in folio_memcg_check() local
816 percpu_ref_get(&objcg->refcnt); in obj_cgroup_get()
827 if (objcg) in obj_cgroup_put()
1522 struct obj_cgroup *objcg; member
1716 if (objcg) in get_obj_cgroup_from_current()
1717 obj_cgroup_get(objcg); in get_obj_cgroup_from_current()
[all …]
H A Dbpf_mem_alloc.h14 struct obj_cgroup *objcg; member
31 int bpf_mem_alloc_percpu_init(struct bpf_mem_alloc *ma, struct obj_cgroup *objcg);
H A Dsched.h1497 struct obj_cgroup *objcg; member
H A Dbpf.h279 struct obj_cgroup *objcg; member
/linux/kernel/bpf/
H A Dmemalloc.c97 struct obj_cgroup *objcg; member
161 if (c->objcg) in get_memcg()
540 ma->objcg = objcg; in bpf_mem_alloc_init()
545 c->objcg = objcg; in bpf_mem_alloc_init()
561 ma->objcg = objcg; in bpf_mem_alloc_init()
567 c->objcg = objcg; in bpf_mem_alloc_init()
589 ma->objcg = objcg; in bpf_mem_alloc_percpu_init()
598 struct obj_cgroup *objcg; in bpf_mem_alloc_percpu_unit_init() local
609 objcg = ma->objcg; in bpf_mem_alloc_percpu_unit_init()
619 c->objcg = objcg; in bpf_mem_alloc_percpu_unit_init()
[all …]
H A Dsyscall.c397 map->objcg = get_obj_cgroup_from_current(); in bpf_map_save_memcg()
402 if (map->objcg) in bpf_map_release_memcg()
403 obj_cgroup_put(map->objcg); in bpf_map_release_memcg()
408 if (map->objcg) in bpf_map_get_memcg()
409 return get_mem_cgroup_from_objcg(map->objcg); in bpf_map_get_memcg()
/linux/tools/cgroup/
H A Dmemcg_slabinfo.py186 obj_cgroups.add(memcg.objcg.value_())
/linux/mm/kfence/
H A Dcore.c1167 KFENCE_WARN_ON(meta->obj_exts.objcg); in __kfence_free()