trace: ureadahead support

This commit is contained in:
Matt Sealey
2010-10-20 00:40:00 -05:00
parent 2b5591d0f4
commit 1e89231708
3 changed files with 83 additions and 0 deletions

View File

@@ -56,6 +56,8 @@
#include <linux/fsnotify.h>
#include <linux/fs_struct.h>
#include <trace/events/fs.h>
#include <asm/uaccess.h>
#include <asm/mmu_context.h>
#include <asm/tlb.h>
@@ -130,6 +132,10 @@ SYSCALL_DEFINE1(uselib, const char __user *, library)
fsnotify_open(file->f_path.dentry);
tmp = getname(library);
trace_uselib(tmp);
putname(library);
error = -ENOEXEC;
if(file->f_op) {
struct linux_binfmt * fmt;
@@ -665,6 +671,8 @@ struct file *open_exec(const char *name)
fsnotify_open(file->f_path.dentry);
trace_open_exec(name);
err = deny_write_access(file);
if (err)
goto exit;