diff options
author | Namjae Jeon <namjae.jeon@samsung.com> | 2013-04-23 17:51:43 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-04-23 18:15:17 +0900 |
commit | 6ec178dac6768204a6edf70f4a53d40b691c12b4 (patch) | |
tree | 88a7676da49821341d3c193ddc9c8cce73db31a8 /fs/f2fs | |
parent | c01e285324793a86c2c90c8451ed6feb04b3d310 (diff) | |
download | op-kernel-dev-6ec178dac6768204a6edf70f4a53d40b691c12b4.zip op-kernel-dev-6ec178dac6768204a6edf70f4a53d40b691c12b4.tar.gz |
f2fs: add tracepoints for write page operations
Add tracepoints to debug the various page write operation
like data pages, meta pages.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
[Jaegeuk: remove unnecessary tracepoints]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 7c67ec2..0a65284 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -18,6 +18,7 @@ #include "f2fs.h" #include "segment.h" #include "node.h" +#include <trace/events/f2fs.h> /* * This function balances dirty node and dentry pages. @@ -691,6 +692,9 @@ static void do_submit_bio(struct f2fs_sb_info *sbi, struct bio_private *p = sbi->bio[btype]->bi_private; p->sbi = sbi; sbi->bio[btype]->bi_end_io = f2fs_end_io_write; + + trace_f2fs_do_submit_bio(sbi->sb, btype, sync, sbi->bio[btype]); + if (type == META_FLUSH) { DECLARE_COMPLETION_ONSTACK(wait); p->is_sync = true; @@ -745,6 +749,7 @@ alloc_new: sbi->last_block_in_bio[type] = blk_addr; up_write(&sbi->bio_sem); + trace_f2fs_submit_write_page(page, blk_addr, type); } static bool __has_curseg_space(struct f2fs_sb_info *sbi, int type) |