diff options
author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 07:18:50 -0400 |
---|---|---|
committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2015-08-09 06:21:19 -0400 |
commit | e82bc71470695e6a8a319962737b4abff85bf0c6 (patch) | |
tree | 01694ae07bcc9ab740693a0bd019bbeaa051927c /fs | |
parent | fec18fc634e6ff5d6bef6cf0b5844fd82483576d (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
@@ -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] == '/') { |