Re: [PATCH v2 0/3] samples: introduce cgroup events listeners

From: Andrew Morton
Date: Fri Nov 10 2023 - 13:19:32 EST


On Fri, 10 Nov 2023 11:20:42 +0300 Dmitry Rokosov <ddrokosov@xxxxxxxxxxxxxxxxx> wrote:

> To begin with, this patch series relocates the cgroup example code to
> the samples/cgroup directory, which is the appropriate location for such
> code snippets.
>
> Furthermore, a new cgroup v2 events listener is introduced. This
> listener is a simple yet effective tool for monitoring memory events and
> managing counter changes during runtime.

Is this correctly named? It's a memcg event listener.
"cgroup_v2_event_listener" implies that it will display events for
other/all cgroup v2 controllers.