diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-07-26 20:21:55 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-27 17:24:08 +0200 |
commit | 13f06f48f7bf8ebfa443e9496d382fa3d20b9ff3 (patch) | |
tree | 18087b4fe39da65673549e5e1aad0ccdadc4a75d /drivers/staging/erofs/namei.c | |
parent | 9c07b3b39dc7720a9427e5561cc730fa28b92cc2 (diff) | |
download | linux-13f06f48f7bf8ebfa443e9496d382fa3d20b9ff3.tar.bz2 |
staging: erofs: support tracepoint
Add basic tracepoints for ->readpage{,s}, ->lookup,
->destroy_inode, fill_inode and map_blocks.
Reviewed-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/erofs/namei.c')
-rw-r--r-- | drivers/staging/erofs/namei.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/erofs/namei.c b/drivers/staging/erofs/namei.c index 989876b15063..d2a0da3b1e44 100644 --- a/drivers/staging/erofs/namei.c +++ b/drivers/staging/erofs/namei.c @@ -13,6 +13,8 @@ #include "internal.h" #include "xattr.h" +#include <trace/events/erofs.h> + /* based on the value of qn->len is accurate */ static inline int dirnamecmp(struct qstr *qn, struct qstr *qd, unsigned *matched) @@ -209,6 +211,8 @@ static struct dentry *erofs_lookup(struct inode *dir, /* dentry must be unhashed in lookup, no need to worry about */ DBG_BUGON(!d_unhashed(dentry)); + trace_erofs_lookup(dir, dentry, flags); + /* file name exceeds fs limit */ if (unlikely(dentry->d_name.len > EROFS_NAME_LEN)) return ERR_PTR(-ENAMETOOLONG); |