misc_cgroup: introduce misc.events to count failures
authorChunguang Xu <brookxu@tencent.com>
Fri, 17 Sep 2021 12:44:14 +0000 (20:44 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 20 Sep 2021 17:35:38 +0000 (07:35 -1000)
commitf279294b329363eb6ada568e494d609ef78e3e8e
tree12c5a7205270ba787ef51a89b7cb24f7ad7ea598
parentc0002d11d79900f8aa5c8375336434940d6afedf
misc_cgroup: introduce misc.events to count failures

Introduce misc.events to make it easier for us to understand
the pressure of resources. Currently only the 'max' event is
implemented, which indicates the times the resource is about
to exceeds the max limit.

Signed-off-by: Chunguang Xu <brookxu@tencent.com>
Reviewed-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/misc_cgroup.h
kernel/cgroup/misc.c