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>2017-05-26 17:12:33 -0400
commit3e53de728b191fbd0de09cc2283878e76afa7917 (patch)
tree868207eedb9ea5f7433b90b9bf410fb28d52c460 /fs
parentb5506ae89a16f96120e68a994ade593366551849 (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 67e86571685a..8abb07bf28e2 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -58,6 +58,8 @@
58#include <linux/compat.h> 58#include <linux/compat.h>
59#include <linux/vmalloc.h> 59#include <linux/vmalloc.h>
60 60
61#include <litmus/litmus.h>
62
61#include <asm/uaccess.h> 63#include <asm/uaccess.h>
62#include <asm/mmu_context.h> 64#include <asm/mmu_context.h>
63#include <asm/tlb.h> 65#include <asm/tlb.h>
@@ -1706,6 +1708,7 @@ static int do_execveat_common(int fd, struct filename *filename,
1706 goto out_unmark; 1708 goto out_unmark;
1707 1709
1708 sched_exec(); 1710 sched_exec();
1711 litmus_exec();
1709 1712
1710 bprm->file = file; 1713 bprm->file = file;
1711 if (fd == AT_FDCWD || filename->name[0] == '/') { 1714 if (fd == AT_FDCWD || filename->name[0] == '/') {