mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[PATCH] Process Events Connector
This patch adds a connector that reports fork, exec, id change, and exit events for all processes to userspace. It replaces the fork_advisor patch that ELSA is currently using. Applications that may find these events useful include accounting/auditing (e.g. ELSA), system activity monitoring (e.g. top), security, and resource management (e.g. CKRM). Signed-off-by: Matt Helsley <matthltc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
49364ce253
commit
9f46080c41
9 changed files with 379 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
#include <linux/profile.h>
|
||||
#include <linux/rmap.h>
|
||||
#include <linux/acct.h>
|
||||
#include <linux/cn_proc.h>
|
||||
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/pgalloc.h>
|
||||
|
@ -1143,6 +1144,7 @@ static task_t *copy_process(unsigned long clone_flags,
|
|||
__get_cpu_var(process_counts)++;
|
||||
}
|
||||
|
||||
proc_fork_connector(p);
|
||||
if (!current->signal->tty && p->signal->tty)
|
||||
p->signal->tty = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue