aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorScott James Remnant <scott@ubuntu.com>2009-10-27 06:05:32 -0400
committerLeann Ogasawara <leann.ogasawara@canonical.com>2011-08-30 13:14:25 -0400
commit00ccd94c860ce08ac0976a93159a2616b0bcf34b (patch)
tree517b79c635bf75b2edff2046c0681c39ebc0f159 /fs/exec.c
parent12735c25ad9b7d37b0c8c9c99e6b6545d7020482 (diff)
UBUNTU: SAUCE: (no-up) trace: add trace events for open(), exec() and uselib()
BugLink: http://bugs.launchpad.net/bugs/462111 This patch uses TRACE_EVENT to add tracepoints for the open(), exec() and uselib() syscalls so that ureadahead can cheaply trace the boot sequence to determine what to read to speed up the next. It's not upstream because it will need to be rebased onto the syscall trace events whenever that gets merged, and is a stop-gap. Signed-off-by: Scott James Remnant <scott@ubuntu.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 6075a1e727a..c122d78f11b 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 <trace/events/fs.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>
@@ -789,6 +791,8 @@ struct file *open_exec(const char *name)
789 791
790 fsnotify_open(file); 792 fsnotify_open(file);
791 793
794 trace_open_exec(name);
795
792 err = deny_write_access(file); 796 err = deny_write_access(file);
793 if (err) 797 if (err)
794 goto exit; 798 goto exit;