aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2013-11-20 03:40:10 -0500
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-22 20:18:02 -0500
commit87b8872d5b4a8f9f61123ab913aff4f6047d8b53 (patch)
treec04facd80ec93152d2c74c10bb9e27e9bd190020 /include/trace/events/f2fs.h
parent61ae45c8803262a96f3af200489344f339992291 (diff)
f2fs: adds a tracepoint for submit_read_page
This patch adds a tracepoint for submit_read_page. Signed-off-by: Chao Yu <chao2.yu@samsung.com> [Jaegeuk Kim: integrate tracepoints of f2fs_submit_read(_write)_page] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'include/trace/events/f2fs.h')
-rw-r--r--include/trace/events/f2fs.h25
1 files changed, 21 insertions, 4 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 47ee70de7fed..73cc5f07d1ba 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -674,15 +674,16 @@ DEFINE_EVENT(f2fs__page, f2fs_vm_page_mkwrite,
674 TP_ARGS(page, type) 674 TP_ARGS(page, type)
675); 675);
676 676
677TRACE_EVENT(f2fs_submit_write_page, 677DECLARE_EVENT_CLASS(f2fs_io_page,
678 678
679 TP_PROTO(struct page *page, block_t blk_addr, int type), 679 TP_PROTO(struct page *page, int rw, int type, block_t blk_addr),
680 680
681 TP_ARGS(page, blk_addr, type), 681 TP_ARGS(page, rw, type, blk_addr),
682 682
683 TP_STRUCT__entry( 683 TP_STRUCT__entry(
684 __field(dev_t, dev) 684 __field(dev_t, dev)
685 __field(ino_t, ino) 685 __field(ino_t, ino)
686 __field(int, rw)
686 __field(int, type) 687 __field(int, type)
687 __field(pgoff_t, index) 688 __field(pgoff_t, index)
688 __field(block_t, block) 689 __field(block_t, block)
@@ -691,18 +692,34 @@ TRACE_EVENT(f2fs_submit_write_page,
691 TP_fast_assign( 692 TP_fast_assign(
692 __entry->dev = page->mapping->host->i_sb->s_dev; 693 __entry->dev = page->mapping->host->i_sb->s_dev;
693 __entry->ino = page->mapping->host->i_ino; 694 __entry->ino = page->mapping->host->i_ino;
695 __entry->rw = rw;
694 __entry->type = type; 696 __entry->type = type;
695 __entry->index = page->index; 697 __entry->index = page->index;
696 __entry->block = blk_addr; 698 __entry->block = blk_addr;
697 ), 699 ),
698 700
699 TP_printk("dev = (%d,%d), ino = %lu, %s, index = %lu, blkaddr = 0x%llx", 701 TP_printk("dev = (%d,%d), ino = %lu, %s, %s, index = %lu, blkaddr = 0x%llx",
700 show_dev_ino(__entry), 702 show_dev_ino(__entry),
703 show_bio_type(__entry->rw),
701 show_block_type(__entry->type), 704 show_block_type(__entry->type),
702 (unsigned long)__entry->index, 705 (unsigned long)__entry->index,
703 (unsigned long long)__entry->block) 706 (unsigned long long)__entry->block)
704); 707);
705 708
709DEFINE_EVENT(f2fs_io_page, f2fs_submit_write_page,
710
711 TP_PROTO(struct page *page, int rw, int type, block_t blk_addr),
712
713 TP_ARGS(page, rw, type, blk_addr)
714);
715
716DEFINE_EVENT(f2fs_io_page, f2fs_submit_read_page,
717
718 TP_PROTO(struct page *page, int rw, int type, block_t blk_addr),
719
720 TP_ARGS(page, rw, type, blk_addr)
721);
722
706TRACE_EVENT(f2fs_write_checkpoint, 723TRACE_EVENT(f2fs_write_checkpoint,
707 724
708 TP_PROTO(struct super_block *sb, bool is_umount, char *msg), 725 TP_PROTO(struct super_block *sb, bool is_umount, char *msg),