diff options
author | Dave Chinner <dchinner@redhat.com> | 2011-07-17 23:40:19 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-07-20 19:38:04 -0400 |
commit | 55fb25d5b39320242b41af894921f5cef0c7e293 (patch) | |
tree | 80611313673fc3adc9e82f355884a6adbc258357 /fs/xfs/linux-2.6/xfs_trace.h | |
parent | af3e40228fb2dbc18d94fbd5103f07344a720ae7 (diff) |
xfs: add size update tracepoint to IO completion
For improving insight into IO completion behaviour.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_trace.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_trace.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_trace.h b/fs/xfs/linux-2.6/xfs_trace.h index 3bdfcb9f52b7..fda0708ef2ea 100644 --- a/fs/xfs/linux-2.6/xfs_trace.h +++ b/fs/xfs/linux-2.6/xfs_trace.h | |||
@@ -998,7 +998,8 @@ DECLARE_EVENT_CLASS(xfs_simple_io_class, | |||
998 | TP_STRUCT__entry( | 998 | TP_STRUCT__entry( |
999 | __field(dev_t, dev) | 999 | __field(dev_t, dev) |
1000 | __field(xfs_ino_t, ino) | 1000 | __field(xfs_ino_t, ino) |
1001 | __field(loff_t, size) | 1001 | __field(loff_t, isize) |
1002 | __field(loff_t, disize) | ||
1002 | __field(loff_t, new_size) | 1003 | __field(loff_t, new_size) |
1003 | __field(loff_t, offset) | 1004 | __field(loff_t, offset) |
1004 | __field(size_t, count) | 1005 | __field(size_t, count) |
@@ -1006,16 +1007,18 @@ DECLARE_EVENT_CLASS(xfs_simple_io_class, | |||
1006 | TP_fast_assign( | 1007 | TP_fast_assign( |
1007 | __entry->dev = VFS_I(ip)->i_sb->s_dev; | 1008 | __entry->dev = VFS_I(ip)->i_sb->s_dev; |
1008 | __entry->ino = ip->i_ino; | 1009 | __entry->ino = ip->i_ino; |
1009 | __entry->size = ip->i_d.di_size; | 1010 | __entry->isize = ip->i_size; |
1011 | __entry->disize = ip->i_d.di_size; | ||
1010 | __entry->new_size = ip->i_new_size; | 1012 | __entry->new_size = ip->i_new_size; |
1011 | __entry->offset = offset; | 1013 | __entry->offset = offset; |
1012 | __entry->count = count; | 1014 | __entry->count = count; |
1013 | ), | 1015 | ), |
1014 | TP_printk("dev %d:%d ino 0x%llx size 0x%llx new_size 0x%llx " | 1016 | TP_printk("dev %d:%d ino 0x%llx isize 0x%llx disize 0x%llx new_size 0x%llx " |
1015 | "offset 0x%llx count %zd", | 1017 | "offset 0x%llx count %zd", |
1016 | MAJOR(__entry->dev), MINOR(__entry->dev), | 1018 | MAJOR(__entry->dev), MINOR(__entry->dev), |
1017 | __entry->ino, | 1019 | __entry->ino, |
1018 | __entry->size, | 1020 | __entry->isize, |
1021 | __entry->disize, | ||
1019 | __entry->new_size, | 1022 | __entry->new_size, |
1020 | __entry->offset, | 1023 | __entry->offset, |
1021 | __entry->count) | 1024 | __entry->count) |
@@ -1028,6 +1031,7 @@ DEFINE_EVENT(xfs_simple_io_class, name, \ | |||
1028 | DEFINE_SIMPLE_IO_EVENT(xfs_delalloc_enospc); | 1031 | DEFINE_SIMPLE_IO_EVENT(xfs_delalloc_enospc); |
1029 | DEFINE_SIMPLE_IO_EVENT(xfs_unwritten_convert); | 1032 | DEFINE_SIMPLE_IO_EVENT(xfs_unwritten_convert); |
1030 | DEFINE_SIMPLE_IO_EVENT(xfs_get_blocks_notfound); | 1033 | DEFINE_SIMPLE_IO_EVENT(xfs_get_blocks_notfound); |
1034 | DEFINE_SIMPLE_IO_EVENT(xfs_setfilesize); | ||
1031 | 1035 | ||
1032 | DECLARE_EVENT_CLASS(xfs_itrunc_class, | 1036 | DECLARE_EVENT_CLASS(xfs_itrunc_class, |
1033 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), | 1037 | TP_PROTO(struct xfs_inode *ip, xfs_fsize_t new_size), |