cgroup/misc: Introduce misc.events.local
authorXiu Jianfeng <xiujianfeng@huawei.com>
Thu, 11 Jul 2024 10:14:57 +0000 (10:14 +0000)
committerTejun Heo <tj@kernel.org>
Fri, 12 Jul 2024 16:45:23 +0000 (06:45 -1000)
commit6a26f9c68901797261bc145975a02f85be0c1d8f
tree73621ac53339580b2f4373cbeafcee1c954e306d
parentb824766504e49f3fdcbb8c722e70996a78c3636e
cgroup/misc: Introduce misc.events.local

Currently the event counting provided by misc.events is hierarchical,
it's not practical if user is only concerned with events of a
specified cgroup. Therefore, introduce misc.events.local collect events
specific to the given cgroup.

This is analogous to memory.events.local and pids.events.local.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/cgroup-v2.rst
include/linux/misc_cgroup.h
kernel/cgroup/misc.c