summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorDaeho Jeong <daehojeong@google.com>2021-08-20 06:52:28 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2021-08-23 20:25:51 +0300
commit521187439abfb3e1c946796dc2187c443e5457ab (patch)
treefce6c67e0ba999bb4ab8f3463dccf8f005c77be5 /include/trace
parentbbe1da7e34ac5a830163bfdfa09cbe3dadfda3ce (diff)
downloadlinux-521187439abfb3e1c946796dc2187c443e5457ab.tar.xz
f2fs: separate out iostat feature
Added F2FS_IOSTAT config option to support getting IO statistics through sysfs and printing out periodic IO statistics tracepoint events and moved I/O statistics related codes into separate files for better maintenance. Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> [Jaegeuk Kim: set default=y] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/f2fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 56b113e3cd6a..3eaf19aa89af 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -1818,6 +1818,7 @@ DEFINE_EVENT(f2fs_zip_end, f2fs_decompress_pages_end,
TP_ARGS(inode, cluster_idx, compressed_size, ret)
);
+#ifdef CONFIG_F2FS_IOSTAT
TRACE_EVENT(f2fs_iostat,
TP_PROTO(struct f2fs_sb_info *sbi, unsigned long long *iostat),
@@ -1893,6 +1894,7 @@ TRACE_EVENT(f2fs_iostat,
__entry->app_mrio, __entry->fs_drio, __entry->fs_gdrio,
__entry->fs_cdrio, __entry->fs_nrio, __entry->fs_mrio)
);
+#endif
TRACE_EVENT(f2fs_bmap,