aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 07:18:50 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2015-08-09 06:21:19 -0400
commite82bc71470695e6a8a319962737b4abff85bf0c6 (patch)
tree01694ae07bcc9ab740693a0bd019bbeaa051927c /fs
parentfec18fc634e6ff5d6bef6cf0b5844fd82483576d (diff)
Hook into fork(), exec(), and exit()
Allow LITMUS^RT to do some work when a process is created or terminated.
Diffstat (limited to 'fs')
-rw-r--r--fs/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 1977c2a553ac..c359db61c8a3 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -57,6 +57,8 @@
57#include <linux/oom.h> 57#include <linux/oom.h>
58#include <linux/compat.h> 58#include <linux/compat.h>
59 59
60#include <litmus/litmus.h>
61
60#include <asm/uaccess.h> 62#include <asm/uaccess.h>
61#include <asm/mmu_context.h> 63#include <asm/mmu_context.h>
62#include <asm/tlb.h> 64#include <asm/tlb.h>
@@ -1527,6 +1529,7 @@ static int do_execveat_common(int fd, struct filename *filename,
1527 goto out_unmark; 1529 goto out_unmark;
1528 1530
1529 sched_exec(); 1531 sched_exec();
1532 litmus_exec();
1530 1533
1531 bprm->file = file; 1534 bprm->file = file;
1532 if (fd == AT_FDCWD || filename->name[0] == '/') { 1535 if (fd == AT_FDCWD || filename->name[0] == '/') {