Re: [PATCH 1/2] connector: add cgroup release event report to proc connector

2015-05-28 Thread Dimitri John Ledkov
On 28 May 2015 at 04:30, Zefan Li lize...@huawei.com wrote: On 2015/5/27 20:37, Dimitri John Ledkov wrote: On 27 May 2015 at 12:22, Zefan Li lize...@huawei.com wrote: On 2015/5/27 6:07, Dimitri John Ledkov wrote: Add a kernel API to send a proc connector notification that a cgroup has become

Re: [PATCH 1/2] connector: add cgroup release event report to proc connector

2015-05-27 Thread Dimitri John Ledkov
On 27 May 2015 at 12:22, Zefan Li lize...@huawei.com wrote: On 2015/5/27 6:07, Dimitri John Ledkov wrote: Add a kernel API to send a proc connector notification that a cgroup has become empty. A userspace daemon can then act upon such information, and usually clean-up and remove such a group

[PATCH 1/2] connector: add cgroup release event report to proc connector

2015-05-26 Thread Dimitri John Ledkov
for this notification type. For precisely when cgroups should emit this event, see next patch against kernel/cgroup.c. Signed-off-by: Dimitri John Ledkov dimitri.j.led...@intel.com --- drivers/connector/cn_proc.c | 56 include/linux/cn_proc.h | 6 + include

[PATCH 2/2] cgroup: report cgroup release event to proc connector

2015-05-26 Thread Dimitri John Ledkov
connector API. Specifically, if there are no listeners, no events are emitted. If only certain events are desired, the userspace proc connector listener can filter them in the userspace or install a BPF on the socket to ignore things it doesn't care about. Signed-off-by: Dimitri John Ledkov