linux_dsm_epyc7002/tools/cgroup
Vasily Averin 6995512a47 tools/cgroup/slabinfo.py: updated to work on current kernel
[ Upstream commit 1974c45dd7745e999b9387be3d8fdcb27a5b1721 ]

slabinfo.py script does not work with actual kernel version.

First, it was unable to recognise SLUB susbsytem, and when I specified
it manually it failed again with

  AttributeError: 'struct page' has no member 'obj_cgroups'

.. and then again with

  File "tools/cgroup/memcg_slabinfo.py", line 221, in main
    memcg.kmem_caches.address_of_(),
  AttributeError: 'struct mem_cgroup' has no member 'kmem_caches'

Link: https://lkml.kernel.org/r/cec1a75e-43b4-3d64-2084-d9f98fda037f@virtuozzo.com
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Tested-by: Roman Gushchin <guro@fb.com>
Acked-by: Roman Gushchin <guro@fb.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-07 11:04:31 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
cgroup_event_listener.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iocost_coef_gen.py blkcg: add tools/cgroup/iocost_coef_gen.py 2019-08-28 21:17:17 -06:00
iocost_monitor.py blk-iocost: update iocost_monitor.py 2020-09-01 19:38:33 -06:00
Makefile tools: fix cross-compile var clobbering 2018-02-21 15:35:42 -08:00
memcg_slabinfo.py tools/cgroup/slabinfo.py: updated to work on current kernel 2021-05-07 11:04:31 +02:00