diff options
author | Yangtao Li <frank.li@vivo.com> | 2022-12-22 03:19:32 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2023-01-11 11:15:19 -0800 |
commit | 7a2b15cfa8dbbd54beb4e2ce7b2f42eb0ad00425 (patch) | |
tree | 901e54d888930668c9659e4dee00397fe1ce2737 /include/trace | |
parent | 45c98f5a58f36c35ecf5a149cbf69cf5fd022120 (diff) | |
download | linux-stable-7a2b15cfa8dbbd54beb4e2ce7b2f42eb0ad00425.tar.gz linux-stable-7a2b15cfa8dbbd54beb4e2ce7b2f42eb0ad00425.tar.bz2 linux-stable-7a2b15cfa8dbbd54beb4e2ce7b2f42eb0ad00425.zip |
f2fs: support accounting iostat count and avg_bytes
Previously, we supported to account iostat io_bytes,
in this patch, it adds to account iostat count and avg_bytes:
time: 1671648667
io_bytes count avg_bytes
[WRITE]
app buffered data: 31 2 15
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/f2fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 9183a0a11e26..3852085198fb 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -1972,7 +1972,7 @@ TRACE_EVENT(f2fs_iostat, __entry->fs_cdrio = iostat[FS_CDATA_READ_IO]; __entry->fs_nrio = iostat[FS_NODE_READ_IO]; __entry->fs_mrio = iostat[FS_META_READ_IO]; - __entry->fs_discard = iostat[FS_DISCARD]; + __entry->fs_discard = iostat[FS_DISCARD_IO]; ), TP_printk("dev = (%d,%d), " |