summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2025-03-11 02:09:34 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-03-17 03:40:25 +0300
commit9f01b4954490d4ccdbcc2b9be34a9921ceee9cbb (patch)
tree8f71be4af48fb100de3a4e0a5cf72367b33d7529 /tools/perf/scripts/python/event_analyzing_sample.py
parent14efb4793519d73fb2902bb0ece319b886e4b4b9 (diff)
downloadlinux-9f01b4954490d4ccdbcc2b9be34a9921ceee9cbb.tar.xz
memcg: drain obj stock on cpu hotplug teardown
Currently on cpu hotplug teardown, only memcg stock is drained but we need to drain the obj stock as well otherwise we will miss the stats accumulated on the target cpu as well as the nr_bytes cached. The stats include MEMCG_KMEM, NR_SLAB_RECLAIMABLE_B & NR_SLAB_UNRECLAIMABLE_B. In addition we are leaking reference to struct obj_cgroup object. Link: https://lkml.kernel.org/r/20250310230934.2913113-1-shakeel.butt@linux.dev Fixes: bf4f059954dc ("mm: memcg/slab: obj_cgroup API") Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Cc: Muchun Song <muchun.song@linux.dev> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions