aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFelipe Cerqueira <felipec@mpi-sws.org>2013-02-12 11:45:17 -0500
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-08-07 03:46:53 -0400
commit44bbdeefae36fd3926eeccce4e715d91d5ffe6a0 (patch)
tree1fa3c348d27ae50204384aa02fcf00765691eacb /fs
parenta8ffcb17006ab6e278526ae8ab75d15fd08d030f (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 ffd7a813ad3d..bc010db0075c 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -56,6 +56,8 @@
56#include <linux/oom.h> 56#include <linux/oom.h>
57#include <linux/compat.h> 57#include <linux/compat.h>
58 58
59#include <litmus/litmus.h>
60
59#include <asm/uaccess.h> 61#include <asm/uaccess.h>
60#include <asm/mmu_context.h> 62#include <asm/mmu_context.h>
61#include <asm/tlb.h> 63#include <asm/tlb.h>
@@ -1506,6 +1508,7 @@ static int do_execve_common(const char *filename,
1506 goto out_unmark; 1508 goto out_unmark;
1507 1509
1508 sched_exec(); 1510 sched_exec();
1511 litmus_exec();
1509 1512
1510 bprm->file = file; 1513 bprm->file = file;
1511 bprm->filename = filename; 1514 bprm->filename = filename;