diff options
Diffstat (limited to 'fs/xfs/xfs_trace.h')
| -rw-r--r-- | fs/xfs/xfs_trace.h | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h index 690fc7a7bd72..f1d2802b2f07 100644 --- a/fs/xfs/xfs_trace.h +++ b/fs/xfs/xfs_trace.h | |||
| @@ -30,6 +30,7 @@ struct xfs_buf_log_item; | |||
| 30 | struct xfs_da_args; | 30 | struct xfs_da_args; |
| 31 | struct xfs_da_node_entry; | 31 | struct xfs_da_node_entry; |
| 32 | struct xfs_dquot; | 32 | struct xfs_dquot; |
| 33 | struct xfs_log_item; | ||
| 33 | struct xlog_ticket; | 34 | struct xlog_ticket; |
| 34 | struct log; | 35 | struct log; |
| 35 | struct xlog_recover; | 36 | struct xlog_recover; |
| @@ -320,7 +321,6 @@ DEFINE_BUF_EVENT(xfs_buf_rele); | |||
| 320 | DEFINE_BUF_EVENT(xfs_buf_iodone); | 321 | DEFINE_BUF_EVENT(xfs_buf_iodone); |
| 321 | DEFINE_BUF_EVENT(xfs_buf_iorequest); | 322 | DEFINE_BUF_EVENT(xfs_buf_iorequest); |
| 322 | DEFINE_BUF_EVENT(xfs_buf_bawrite); | 323 | DEFINE_BUF_EVENT(xfs_buf_bawrite); |
| 323 | DEFINE_BUF_EVENT(xfs_buf_bdwrite); | ||
| 324 | DEFINE_BUF_EVENT(xfs_buf_lock); | 324 | DEFINE_BUF_EVENT(xfs_buf_lock); |
| 325 | DEFINE_BUF_EVENT(xfs_buf_lock_done); | 325 | DEFINE_BUF_EVENT(xfs_buf_lock_done); |
| 326 | DEFINE_BUF_EVENT(xfs_buf_trylock); | 326 | DEFINE_BUF_EVENT(xfs_buf_trylock); |
| @@ -577,6 +577,7 @@ DEFINE_INODE_EVENT(xfs_vm_bmap); | |||
| 577 | DEFINE_INODE_EVENT(xfs_file_ioctl); | 577 | DEFINE_INODE_EVENT(xfs_file_ioctl); |
| 578 | DEFINE_INODE_EVENT(xfs_file_compat_ioctl); | 578 | DEFINE_INODE_EVENT(xfs_file_compat_ioctl); |
| 579 | DEFINE_INODE_EVENT(xfs_ioctl_setattr); | 579 | DEFINE_INODE_EVENT(xfs_ioctl_setattr); |
| 580 | DEFINE_INODE_EVENT(xfs_dir_fsync); | ||
| 580 | DEFINE_INODE_EVENT(xfs_file_fsync); | 581 | DEFINE_INODE_EVENT(xfs_file_fsync); |
| 581 | DEFINE_INODE_EVENT(xfs_destroy_inode); | 582 | DEFINE_INODE_EVENT(xfs_destroy_inode); |
| 582 | DEFINE_INODE_EVENT(xfs_write_inode); | 583 | DEFINE_INODE_EVENT(xfs_write_inode); |
| @@ -853,6 +854,42 @@ DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_enter); | |||
| 853 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_exit); | 854 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_exit); |
| 854 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_sub); | 855 | DEFINE_LOGGRANT_EVENT(xfs_log_ungrant_sub); |
| 855 | 856 | ||
| 857 | DECLARE_EVENT_CLASS(xfs_log_item_class, | ||
| 858 | TP_PROTO(struct xfs_log_item *lip), | ||
| 859 | TP_ARGS(lip), | ||
| 860 | TP_STRUCT__entry( | ||
| 861 | __field(dev_t, dev) | ||
| 862 | __field(void *, lip) | ||
| 863 | __field(uint, type) | ||
| 864 | __field(uint, flags) | ||
| 865 | __field(xfs_lsn_t, lsn) | ||
| 866 | ), | ||
| 867 | TP_fast_assign( | ||
| 868 | __entry->dev = lip->li_mountp->m_super->s_dev; | ||
| 869 | __entry->lip = lip; | ||
| 870 | __entry->type = lip->li_type; | ||
| 871 | __entry->flags = lip->li_flags; | ||
| 872 | __entry->lsn = lip->li_lsn; | ||
| 873 | ), | ||
| 874 | TP_printk("dev %d:%d lip 0x%p lsn %d/%d type %s flags %s", | ||
| 875 | MAJOR(__entry->dev), MINOR(__entry->dev), | ||
| 876 | __entry->lip, | ||
| 877 | CYCLE_LSN(__entry->lsn), BLOCK_LSN(__entry->lsn), | ||
| 878 | __print_symbolic(__entry->type, XFS_LI_TYPE_DESC), | ||
| 879 | __print_flags(__entry->flags, "|", XFS_LI_FLAGS)) | ||
| 880 | ) | ||
| 881 | |||
| 882 | #define DEFINE_LOG_ITEM_EVENT(name) \ | ||
| 883 | DEFINE_EVENT(xfs_log_item_class, name, \ | ||
| 884 | TP_PROTO(struct xfs_log_item *lip), \ | ||
| 885 | TP_ARGS(lip)) | ||
| 886 | DEFINE_LOG_ITEM_EVENT(xfs_ail_push); | ||
| 887 | DEFINE_LOG_ITEM_EVENT(xfs_ail_pushbuf); | ||
| 888 | DEFINE_LOG_ITEM_EVENT(xfs_ail_pushbuf_pinned); | ||
| 889 | DEFINE_LOG_ITEM_EVENT(xfs_ail_pinned); | ||
| 890 | DEFINE_LOG_ITEM_EVENT(xfs_ail_locked); | ||
| 891 | |||
| 892 | |||
| 856 | DECLARE_EVENT_CLASS(xfs_file_class, | 893 | DECLARE_EVENT_CLASS(xfs_file_class, |
| 857 | TP_PROTO(struct xfs_inode *ip, size_t count, loff_t offset, int flags), | 894 | TP_PROTO(struct xfs_inode *ip, size_t count, loff_t offset, int flags), |
| 858 | TP_ARGS(ip, count, offset, flags), | 895 | TP_ARGS(ip, count, offset, flags), |
