]> asedeno.scripts.mit.edu Git - linux.git/commit
cgroup: add tracing points for cgroup v2 freezer
authorRoman Gushchin <guro@fb.com>
Fri, 19 Apr 2019 17:03:08 +0000 (10:03 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 19 Apr 2019 18:26:49 +0000 (11:26 -0700)
commit4c476d8cff48853645abc822154aaad208faebcc
tree6f548d87c31e12ea213db7af9236e0944ae4f7a4
parent712e35178754bbb785d00d5fcf5abaf32699bf11
cgroup: add tracing points for cgroup v2 freezer

Add cgroup:cgroup_freeze and cgroup:cgroup_unfreeze events,
which are using the existing cgroup tracing infrastructure.

Add the cgroup_event event class, which is similar to the cgroup
class, but contains an additional integer field to store a new
value (the level field is dropped).

Also add two tracing events: cgroup_notify_populated and
cgroup_notify_frozen, which are raised in a generic way using
the TRACE_CGROUP_PATH() macro.

This allows to trace cgroup state transitions and is generally
helpful for debugging the cgroup freezer code.

Signed-off-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/trace/events/cgroup.h
kernel/cgroup/cgroup.c
kernel/cgroup/freezer.c