From 3e53de728b191fbd0de09cc2283878e76afa7917 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Sun, 9 Aug 2015 13:18:50 +0200 Subject: Hook into fork(), exec(), and exit() Allow LITMUS^RT to do some work when a process is created or terminated. --- fs/exec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs') diff --git a/fs/exec.c b/fs/exec.c index 67e86571685a..8abb07bf28e2 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -58,6 +58,8 @@ #include #include +#include + #include #include #include @@ -1706,6 +1708,7 @@ static int do_execveat_common(int fd, struct filename *filename, goto out_unmark; sched_exec(); + litmus_exec(); bprm->file = file; if (fd == AT_FDCWD || filename->name[0] == '/') { -- cgit v1.2.2