aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-10-12 05:02:26 -0400
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-12 17:00:34 -0400
commitb8c2940048adf4b2fcc5ae738f2bd4821ebf6a8a (patch)
treee72060649cd483751b38400284693b3295ac42ac /include/trace
parenta56c7c6fb3c60857c1335bcb8b914e6f65655486 (diff)
f2fs: add a tracepoint for f2fs_read_data_pages
This patch adds a tracepoint for f2fs_read_data_pages to trace when pages are readahead by VFS. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/f2fs.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 7de751d5763b..00b4a6308249 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -1028,6 +1028,32 @@ TRACE_EVENT(f2fs_writepages,
1028 __entry->for_sync) 1028 __entry->for_sync)
1029); 1029);
1030 1030
1031TRACE_EVENT(f2fs_readpages,
1032
1033 TP_PROTO(struct inode *inode, struct page *page, unsigned int nrpage),
1034
1035 TP_ARGS(inode, page, nrpage),
1036
1037 TP_STRUCT__entry(
1038 __field(dev_t, dev)
1039 __field(ino_t, ino)
1040 __field(pgoff_t, start)
1041 __field(unsigned int, nrpage)
1042 ),
1043
1044 TP_fast_assign(
1045 __entry->dev = inode->i_sb->s_dev;
1046 __entry->ino = inode->i_ino;
1047 __entry->start = page->index;
1048 __entry->nrpage = nrpage;
1049 ),
1050
1051 TP_printk("dev = (%d,%d), ino = %lu, start = %lu nrpage = %u",
1052 show_dev_ino(__entry),
1053 (unsigned long)__entry->start,
1054 __entry->nrpage)
1055);
1056
1031TRACE_EVENT(f2fs_write_checkpoint, 1057TRACE_EVENT(f2fs_write_checkpoint,
1032 1058
1033 TP_PROTO(struct super_block *sb, int reason, char *msg), 1059 TP_PROTO(struct super_block *sb, int reason, char *msg),