aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-04-23 05:26:54 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-04-23 06:16:37 -0400
commit2af4bd6ca556d690ee166200abd16fdbe749782e (patch)
treebcbdbe6a0251350f5d7e6eef942f7411960d3886 /include/trace
parent6ec178dac6768204a6edf70f4a53d40b691c12b4 (diff)
f2fs: add tracepoints to debug checkpoint request
Add tracepoints to debug checkpoint request. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> [Jaegeuk: change expressions] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/f2fs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index ae2da92e0768..b2b2f72a023d 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -645,6 +645,30 @@ TRACE_EVENT(f2fs_submit_write_page,
645 (unsigned long long)__entry->block) 645 (unsigned long long)__entry->block)
646); 646);
647 647
648TRACE_EVENT(f2fs_write_checkpoint,
649
650 TP_PROTO(struct super_block *sb, bool is_umount, char *msg),
651
652 TP_ARGS(sb, is_umount, msg),
653
654 TP_STRUCT__entry(
655 __field(dev_t, dev)
656 __field(bool, is_umount)
657 __field(char *, msg)
658 ),
659
660 TP_fast_assign(
661 __entry->dev = sb->s_dev;
662 __entry->is_umount = is_umount;
663 __entry->msg = msg;
664 ),
665
666 TP_printk("dev = (%d,%d), checkpoint for %s, state = %s",
667 show_dev(__entry),
668 __entry->is_umount ? "clean umount" : "consistency",
669 __entry->msg)
670);
671
648#endif /* _TRACE_F2FS_H */ 672#endif /* _TRACE_F2FS_H */
649 673
650 /* This part must be outside protection */ 674 /* This part must be outside protection */