diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-11-12 03:01:00 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-22 20:18:00 -0500 |
commit | 1661d07c2d5e6486cab1c189cfb65ff60abf9b92 (patch) | |
tree | 1230d1c17610face401d553abe723cd52eafe7d9 /include/trace/events | |
parent | 3720887910864467a61cd0d64bad3965009cdef8 (diff) |
f2fs: add a tracepoint for f2fs_issue_discard
This patch adds a tracepoint for f2fs_issue_discard.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'include/trace/events')
-rw-r--r-- | include/trace/events/f2fs.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index e0dc355fa317..47ee70de7fed 100644 --- a/include/trace/events/f2fs.h +++ b/include/trace/events/f2fs.h | |||
@@ -727,6 +727,29 @@ TRACE_EVENT(f2fs_write_checkpoint, | |||
727 | __entry->msg) | 727 | __entry->msg) |
728 | ); | 728 | ); |
729 | 729 | ||
730 | TRACE_EVENT(f2fs_issue_discard, | ||
731 | |||
732 | TP_PROTO(struct super_block *sb, block_t blkstart, block_t blklen), | ||
733 | |||
734 | TP_ARGS(sb, blkstart, blklen), | ||
735 | |||
736 | TP_STRUCT__entry( | ||
737 | __field(dev_t, dev) | ||
738 | __field(block_t, blkstart) | ||
739 | __field(block_t, blklen) | ||
740 | ), | ||
741 | |||
742 | TP_fast_assign( | ||
743 | __entry->dev = sb->s_dev; | ||
744 | __entry->blkstart = blkstart; | ||
745 | __entry->blklen = blklen; | ||
746 | ), | ||
747 | |||
748 | TP_printk("dev = (%d,%d), blkstart = 0x%llx, blklen = 0x%llx", | ||
749 | show_dev(__entry), | ||
750 | (unsigned long long)__entry->blkstart, | ||
751 | (unsigned long long)__entry->blklen) | ||
752 | ); | ||
730 | #endif /* _TRACE_F2FS_H */ | 753 | #endif /* _TRACE_F2FS_H */ |
731 | 754 | ||
732 | /* This part must be outside protection */ | 755 | /* This part must be outside protection */ |