diff options
author | 2023-10-19 15:53:46 -0700 | |
---|---|---|
committer | 2023-10-25 16:47:11 -0700 | |
commit | e56808fef8f71a192b2740c0b6ea8be7ab865d54 (patch) | |
tree | e33f1ca3bd268eb5e707e0cb801aaf7cd3d4d02e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | percpu: scoped objcg protection (diff) | |
download | wireguard-linux-e56808fef8f71a192b2740c0b6ea8be7ab865d54.tar.xz wireguard-linux-e56808fef8f71a192b2740c0b6ea8be7ab865d54.zip |
mm: kmem: reimplement get_obj_cgroup_from_current()
Reimplement get_obj_cgroup_from_current() using current_obj_cgroup().
get_obj_cgroup_from_current() and current_obj_cgroup() share 80% of the
code, so the new implementation is almost trivial.
get_obj_cgroup_from_current() is a convenient function used by the
bpf subsystem, so there is no reason to get rid of it completely.
Link: https://lkml.kernel.org/r/20231019225346.1822282-7-roman.gushchin@linux.dev
Signed-off-by: Roman Gushchin (Cruise) <roman.gushchin@linux.dev>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Shakeel Butt <shakeelb@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions