cgroup: update debug controller to print out thread mode information
authorWaiman Long <longman@redhat.com>
Fri, 21 Jul 2017 15:14:51 +0000 (11:14 -0400)
committerTejun Heo <tj@kernel.org>
Fri, 21 Jul 2017 15:14:51 +0000 (11:14 -0400)
commit7a0cf0e74ab6cfd8e561f5f12860d4ff8844905a
treea4fb0b9648bc07969beffbe350005fecd4ade14f
parent8cfd8147df67e741d93b8783a3ea8f3c74f93a0e
cgroup: update debug controller to print out thread mode information

Update debug controller so that it prints out debug info about thread
mode.

 1) The relationship between proc_cset and threaded_csets are displayed.
 2) The status of being a thread root or threaded cgroup is displayed.

This patch is extracted from Waiman's larger patch.

v2: - Removed [thread root] / [threaded] from debug.cgroup_css_links
      file as the same information is available from cgroup.type.
      Suggested by Waiman.
    - Threaded marking is moved to the previous patch.

Patch-originally-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup.c
kernel/cgroup/debug.c