UBUNTU: SAUCE: (no-up) trace: add trace events for open(), exec() and uselib()
[linux-flexiantxendom0-natty.git] / fs / open.c
index b47aab3..425837c 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -33,6 +33,9 @@
 
 #include "internal.h"
 
+#define CREATE_TRACE_POINTS
+#include <trace/events/fs.h>
+
 int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
        struct file *filp)
 {
@@ -905,6 +908,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, int mode)
                        } else {
                                fsnotify_open(f);
                                fd_install(fd, f);
+                               trace_do_sys_open(tmp, flags, mode);
                        }
                }
                putname(tmp);