Skip to content

cgroup: Make debug controller useful for debugging

Waiman Long cgroups lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5cgroup: Keep accurate count of tasks in each css_setinclude/linux/cgroup-defs.h kernel/cgroup/cgroup-v1.c kernel/cgroup/cgroup.c+15 -60 replies
2/5cgroup: Move debug cgroup to its own filekernel/cgroup/Makefile kernel/cgroup/cgroup-internal.h kernel/cgroup/cgroup-v1.c +1 more+157 -1480 replies
3/5cgroup: Make Kconfig prompt of debug cgroup more accurateinit/Kconfig kernel/cgroup/debug.c+11 -20 replies
4/5cgroup: Make debug cgroup support v2 and thread modekernel/cgroup/debug.c+180 -170 replies
5/5cgroup: Enable debug controller only with cgroup_debug boot optionkernel/cgroup/debug.c+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH-cgroup 0/5] cgroup: Make debug controller useful for debugging

The current debug controller is vaguely called an "Example controller" at the Kconfig prompt, and it is just not that useful for debugging purpose.

This patchset aims to make the debug controller useful again for debugging the cgroup core, especially for cgroup v2 and the thread mode support.

This patchset is based on top of the Tejun's cgroup v2 thread mode patchset:

https://lkml.org/lkml/2017/6/10/93

which is available in the following git branch.

git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-cgroup2-threads-v2

Patch 1 adds a new field to css_set to make accurate count of the number of tasks in a css_set.

Patch 2 moves the existing debug controller code in cgroup-v1.c into a new debug.c file.

Patch 3 changes the Kconfig prompt to "Debug controller".

Patch 4 enhances the debug information displayed by the debug controller to make them more useful for debugging purpose.

Patch 5 hides the debug control files of the debug controller unless the "cgroup_debug" kernel command line option is specified.

Waiman Long (5):
cgroup: Keep accurate count of tasks in each css_set
cgroup: Move debug cgroup to its own file
cgroup: Make Kconfig prompt of debug cgroup more accurate
cgroup: Make debug cgroup support v2 and thread mode
cgroup: Enable debug controller only with cgroup_debug boot option

 include/linux/cgroup-defs.h     |   3 +
 init/Kconfig                    |   7 +-
 kernel/cgroup/Makefile          |   1 +
 kernel/cgroup/cgroup-internal.h |   2 +
 kernel/cgroup/cgroup-v1.c       | 155 +-----------------
 kernel/cgroup/cgroup.c          |  12 +-
 kernel/cgroup/debug.c           | 342 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 366 insertions(+), 156 deletions(-)
 create mode 100644 kernel/cgroup/debug.c
Signature · 1 line
1.8.3.1