diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2016-10-28 17:45:07 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-23 12:11:24 -0800 |
commit | 126606c7a99b32ba8265a51fab01533fe40c9ecc (patch) | |
tree | fe9ad10c562c4790b032295232c4c5822866dd31 /include/trace | |
parent | f46e8809e88d113ba096bcfc772b5182ce00b941 (diff) | |
download | op-kernel-dev-126606c7a99b32ba8265a51fab01533fe40c9ecc.zip op-kernel-dev-126606c7a99b32ba8265a51fab01533fe40c9ecc.tar.gz |
f2fs: Trace reset zone events
Similarly to the regular discard, trace zone reset events.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/f2fs.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 903a091..a2193e3 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h @@ -1113,6 +1113,27 @@ TRACE_EVENT(f2fs_issue_discard, (unsigned long long)__entry->blklen) ); +TRACE_EVENT(f2fs_issue_reset_zone, + + TP_PROTO(struct super_block *sb, block_t blkstart), + + TP_ARGS(sb, blkstart), + + TP_STRUCT__entry( + __field(dev_t, dev) + __field(block_t, blkstart) + ), + + TP_fast_assign( + __entry->dev = sb->s_dev; + __entry->blkstart = blkstart; + ), + + TP_printk("dev = (%d,%d), reset zone at block = 0x%llx", + show_dev(__entry), + (unsigned long long)__entry->blkstart) +); + TRACE_EVENT(f2fs_issue_flush, TP_PROTO(struct super_block *sb, unsigned int nobarrier, |