diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-07-31 09:11:22 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-08-02 10:34:46 -0400 |
commit | 70407fad85f2ec87a0cf56057c3267cd3aa22768 (patch) | |
tree | f408c7768f8c0af862c0fd954dba6331554152ff /include/trace | |
parent | b3582c68920105e29d219714d8a6fbde25a43379 (diff) |
f2fs: add tracepoint for f2fs_direct_IO
This patch adds a tracepoint for f2fs_direct_IO.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/f2fs.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h index 7d2e70e75f16..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 | ||
590 | TRACE_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 | |||
619 | TRACE_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 | |||
590 | TRACE_EVENT(f2fs_reserve_new_block, | 653 | TRACE_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), |