From: Waiman Long <longman@redhat.com>
To: Tejun Heo <tj@kernel.org>, Li Zefan <lizefan@huawei.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>
Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@fb.com, pjt@google.com, luto@amacapital.net,
efault@gmx.de, torvalds@linux-foundation.org,
Waiman Long <longman@redhat.com>
Subject: [PATCH-cgroup 0/5] cgroup: Make debug controller useful for debugging
Date: Tue, 13 Jun 2017 17:18:00 -0400 [thread overview]
Message-ID: <1497388685-31207-1-git-send-email-longman@redhat.com> (raw)
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
--
1.8.3.1
next reply other threads:[~2017-06-13 21:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 21:18 Waiman Long [this message]
2017-06-13 21:18 ` [PATCH-cgroup 1/5] cgroup: Keep accurate count of tasks in each css_set Waiman Long
2017-06-13 21:18 ` [PATCH-cgroup 2/5] cgroup: Move debug cgroup to its own file Waiman Long
2017-06-13 21:18 ` [PATCH-cgroup 3/5] cgroup: Make Kconfig prompt of debug cgroup more accurate Waiman Long
2017-06-13 21:18 ` [PATCH-cgroup 4/5] cgroup: Make debug cgroup support v2 and thread mode Waiman Long
2017-06-13 21:18 ` [PATCH-cgroup 5/5] cgroup: Enable debug controller only with cgroup_debug boot option Waiman Long
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497388685-31207-1-git-send-email-longman@redhat.com \
--to=longman@redhat.com \
--cc=cgroups@vger.kernel.org \
--cc=efault@gmx.de \
--cc=hannes@cmpxchg.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=luto@amacapital.net \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome