diff options
Diffstat (limited to 'fs/xfs/xfs_trace.h')
-rw-r--r-- | fs/xfs/xfs_trace.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index aa4db3307d36..a04701de6bbd 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h | |||
@@ -974,14 +974,16 @@ DEFINE_RW_EVENT(xfs_file_splice_read); | |||
974 | DEFINE_RW_EVENT(xfs_file_splice_write); | 974 | DEFINE_RW_EVENT(xfs_file_splice_write); |
975 | 975 | ||
976 | DECLARE_EVENT_CLASS(xfs_page_class, | 976 | DECLARE_EVENT_CLASS(xfs_page_class, |
977 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off), | 977 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off, |
978 | TP_ARGS(inode, page, off), | 978 | unsigned int len), |
979 | TP_ARGS(inode, page, off, len), | ||
979 | TP_STRUCT__entry( | 980 | TP_STRUCT__entry( |
980 | __field(dev_t, dev) | 981 | __field(dev_t, dev) |
981 | __field(xfs_ino_t, ino) | 982 | __field(xfs_ino_t, ino) |
982 | __field(pgoff_t, pgoff) | 983 | __field(pgoff_t, pgoff) |
983 | __field(loff_t, size) | 984 | __field(loff_t, size) |
984 | __field(unsigned long, offset) | 985 | __field(unsigned long, offset) |
986 | __field(unsigned int, length) | ||
985 | __field(int, delalloc) | 987 | __field(int, delalloc) |
986 | __field(int, unwritten) | 988 | __field(int, unwritten) |
987 | ), | 989 | ), |
@@ -995,24 +997,27 @@ DECLARE_EVENT_CLASS(xfs_page_class, | |||
995 | __entry->pgoff = page_offset(page); | 997 | __entry->pgoff = page_offset(page); |
996 | __entry->size = i_size_read(inode); | 998 | __entry->size = i_size_read(inode); |
997 | __entry->offset = off; | 999 | __entry->offset = off; |
1000 | __entry->length = len; | ||
998 | __entry->delalloc = delalloc; | 1001 | __entry->delalloc = delalloc; |
999 | __entry->unwritten = unwritten; | 1002 | __entry->unwritten = unwritten; |
1000 | ), | 1003 | ), |
1001 | TP_printk("dev %d:%d ino 0x%llx pgoff 0x%lx size 0x%llx offset %lx " | 1004 | TP_printk("dev %d:%d ino 0x%llx pgoff 0x%lx size 0x%llx offset %lx " |
1002 | "delalloc %d unwritten %d", | 1005 | "length %x delalloc %d unwritten %d", |
1003 | MAJOR(__entry->dev), MINOR(__entry->dev), | 1006 | MAJOR(__entry->dev), MINOR(__entry->dev), |
1004 | __entry->ino, | 1007 | __entry->ino, |
1005 | __entry->pgoff, | 1008 | __entry->pgoff, |
1006 | __entry->size, | 1009 | __entry->size, |
1007 | __entry->offset, | 1010 | __entry->offset, |
1011 | __entry->length, | ||
1008 | __entry->delalloc, | 1012 | __entry->delalloc, |
1009 | __entry->unwritten) | 1013 | __entry->unwritten) |
1010 | ) | 1014 | ) |
1011 | 1015 | ||
1012 | #define DEFINE_PAGE_EVENT(name) \ | 1016 | #define DEFINE_PAGE_EVENT(name) \ |
1013 | DEFINE_EVENT(xfs_page_class, name, \ | 1017 | DEFINE_EVENT(xfs_page_class, name, \ |
1014 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off), \ | 1018 | TP_PROTO(struct inode *inode, struct page *page, unsigned long off, \ |
1015 | TP_ARGS(inode, page, off)) | 1019 | unsigned int len), \ |
1020 | TP_ARGS(inode, page, off, len)) | ||
1016 | DEFINE_PAGE_EVENT(xfs_writepage); | 1021 | DEFINE_PAGE_EVENT(xfs_writepage); |
1017 | DEFINE_PAGE_EVENT(xfs_releasepage); | 1022 | DEFINE_PAGE_EVENT(xfs_releasepage); |
1018 | DEFINE_PAGE_EVENT(xfs_invalidatepage); | 1023 | DEFINE_PAGE_EVENT(xfs_invalidatepage); |