]> git.baikalelectronics.ru Git - kernel.git/commit
connector: add comm change event report to proc connector
authorVladimir Zapolskiy <vzapolskiy@gmail.com>
Wed, 21 Sep 2011 09:26:44 +0000 (09:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Sep 2011 17:41:50 +0000 (13:41 -0400)
commit892746313f5758e0ef5a79c66d61f50c008bda78
tree0291e9079912f41ad2dd67ffd609a554e98b7850
parent310083708081bb67bf4d80006225dbca661a97a4
connector: add comm change event report to proc connector

Add an event to monitor comm value changes of tasks.  Such an event
becomes vital, if someone desires to control threads of a process in
different manner.

A natural characteristic of threads is its comm value, and helpfully
application developers have an opportunity to change it in runtime.
Reporting about such events via proc connector allows to fine-grain
monitoring and control potentials, for instance a process control daemon
listening to proc connector and following comm value policies can place
specific threads to assigned cgroup partitions.

It might be possible to achieve a pale partial one-shot likeness without
this update, if an application changes comm value of a thread generator
task beforehand, then a new thread is cloned, and after that proc
connector listener gets the fork event and reads new thread's comm value
from procfs stat file, but this change visibly simplifies and extends the
matter.

Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/cn_proc.c
include/linux/cn_proc.h
kernel/sys.c