diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2017-03-04 15:13:10 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-03-22 03:34:19 +0100 |
commit | 20fda56b018550cfd3a352b2f027eb42b1991bc4 (patch) | |
tree | 77c5660e05bf43ae84ea2fdf6fd273dfdd6bdca6 /include/trace | |
parent | f2fs: don't allow volatile writes for non-regular file (diff) | |
download | linux-20fda56b018550cfd3a352b2f027eb42b1991bc4.tar.xz linux-20fda56b018550cfd3a352b2f027eb42b1991bc4.zip |
f2fs: make sure trace all f2fs_issue_flush
The root device's issue flush trace is missing,
add it and tracing the result from submit.
Fixes d50aaeec90 ("f2fs: show actual device info in tracepoints")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/f2fs.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 96139021b6bc..25a08a6ce4be 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -1176,26 +1176,29 @@ TRACE_EVENT(f2fs_issue_reset_zone, TRACE_EVENT(f2fs_issue_flush, TP_PROTO(struct block_device *dev, unsigned int nobarrier, - unsigned int flush_merge), + unsigned int flush_merge, int ret), - TP_ARGS(dev, nobarrier, flush_merge), + TP_ARGS(dev, nobarrier, flush_merge, ret), TP_STRUCT__entry( __field(dev_t, dev) __field(unsigned int, nobarrier) __field(unsigned int, flush_merge) + __field(int, ret) ), TP_fast_assign( __entry->dev = dev->bd_dev; __entry->nobarrier = nobarrier; __entry->flush_merge = flush_merge; + __entry->ret = ret; ), - TP_printk("dev = (%d,%d), %s %s", + TP_printk("dev = (%d,%d), %s %s, ret = %d", show_dev(__entry->dev), __entry->nobarrier ? "skip (nobarrier)" : "issue", - __entry->flush_merge ? " with flush_merge" : "") + __entry->flush_merge ? " with flush_merge" : "", + __entry->ret) ); TRACE_EVENT(f2fs_lookup_extent_tree_start, |