diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-02-12 11:45:17 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2014-10-21 10:03:20 -0400 |
commit | 87c71e1c704021c7381821a6c654096db4f07b20 (patch) | |
tree | 41ecc426bb69e45a2f98f88bdf5baf26ed380715 /fs | |
parent | 1042b270f038a2c654d93aa3fd8b9ae9abe542d9 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |