aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/f2fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/f2fs.h')
-rw-r--r--include/trace/events/f2fs.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index b983990b4a9f..d06d44363fea 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -587,6 +587,69 @@ TRACE_EVENT(f2fs_fallocate,
587 __entry->ret) 587 __entry->ret)
588); 588);
589 589
590TRACE_EVENT(f2fs_direct_IO_enter,
591
592 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len, int rw),
593
594 TP_ARGS(inode, offset, len, rw),
595
596 TP_STRUCT__entry(
597 __field(dev_t, dev)
598 __field(ino_t, ino)
599 __field(loff_t, pos)
600 __field(unsigned long, len)
601 __field(int, rw)
602 ),
603
604 TP_fast_assign(
605 __entry->dev = inode->i_sb->s_dev;
606 __entry->ino = inode->i_ino;
607 __entry->pos = offset;
608 __entry->len = len;
609 __entry->rw = rw;
610 ),
611
612 TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu rw = %d",
613 show_dev_ino(__entry),
614 __entry->pos,
615 __entry->len,
616 __entry->rw)
617);
618
619TRACE_EVENT(f2fs_direct_IO_exit,
620
621 TP_PROTO(struct inode *inode, loff_t offset, unsigned long len,
622 int rw, int ret),
623
624 TP_ARGS(inode, offset, len, rw, ret),
625
626 TP_STRUCT__entry(
627 __field(dev_t, dev)
628 __field(ino_t, ino)
629 __field(loff_t, pos)
630 __field(unsigned long, len)
631 __field(int, rw)
632 __field(int, ret)
633 ),
634
635 TP_fast_assign(
636 __entry->dev = inode->i_sb->s_dev;
637 __entry->ino = inode->i_ino;
638 __entry->pos = offset;
639 __entry->len = len;
640 __entry->rw = rw;
641 __entry->ret = ret;
642 ),
643
644 TP_printk("dev = (%d,%d), ino = %lu pos = %lld len = %lu "
645 "rw = %d ret = %d",
646 show_dev_ino(__entry),
647 __entry->pos,
648 __entry->len,
649 __entry->rw,
650 __entry->ret)
651);
652
590TRACE_EVENT(f2fs_reserve_new_block, 653TRACE_EVENT(f2fs_reserve_new_block,
591 654
592 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node), 655 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node),
@@ -926,6 +989,30 @@ TRACE_EVENT(f2fs_issue_discard,
926 (unsigned long long)__entry->blkstart, 989 (unsigned long long)__entry->blkstart,
927 (unsigned long long)__entry->blklen) 990 (unsigned long long)__entry->blklen)
928); 991);
992
993TRACE_EVENT(f2fs_issue_flush,
994
995 TP_PROTO(struct super_block *sb, bool nobarrier, bool flush_merge),
996
997 TP_ARGS(sb, nobarrier, flush_merge),
998
999 TP_STRUCT__entry(
1000 __field(dev_t, dev)
1001 __field(bool, nobarrier)
1002 __field(bool, flush_merge)
1003 ),
1004
1005 TP_fast_assign(
1006 __entry->dev = sb->s_dev;
1007 __entry->nobarrier = nobarrier;
1008 __entry->flush_merge = flush_merge;
1009 ),
1010
1011 TP_printk("dev = (%d,%d), %s %s",
1012 show_dev(__entry),
1013 __entry->nobarrier ? "skip (nobarrier)" : "issue",
1014 __entry->flush_merge ? " with flush_merge" : "")
1015);
929#endif /* _TRACE_F2FS_H */ 1016#endif /* _TRACE_F2FS_H */
930 1017
931 /* This part must be outside protection */ 1018 /* This part must be outside protection */