X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fs%2Fopen.c;h=59f1126f879967dbed71a87d3c638b7966fd7cf2;hb=435edc1014a6d67e756c6bf286e24ffa9656259d;hp=9921f70bc5ca07dab62d19ff9fded8d4a60ae9f0;hpb=6d90b4f99d62e6cf7643c7d8b48a9d7c005455bd;p=mirror_ubuntu-zesty-kernel.git diff --git a/fs/open.c b/fs/open.c index 9921f70bc5ca..59f1126f8799 100644 --- a/fs/open.c +++ b/fs/open.c @@ -34,6 +34,9 @@ #include "internal.h" +#define CREATE_TRACE_POINTS +#include + int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, struct file *filp) { @@ -64,6 +67,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, inode_unlock(dentry->d_inode); return ret; } +EXPORT_SYMBOL_GPL(do_truncate); long vfs_truncate(const struct path *path, loff_t length) { @@ -695,6 +699,7 @@ int open_check_o_direct(struct file *f) } return 0; } +EXPORT_SYMBOL_GPL(open_check_o_direct); static int do_dentry_open(struct file *f, struct inode *inode, @@ -1057,6 +1062,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) } else { fsnotify_open(f); fd_install(fd, f); + trace_do_sys_open(tmp->name, flags, mode); } } putname(tmp);