]> exis.tech > repos - linux.git/blobdiff - fs/xfs/xfs_trace.h
Merge tag 'hwmon-for-v7.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groec...
[linux.git] / fs / xfs / xfs_trace.h
index d478693674f9526ad4dc3a13674ecc8d18416ad7..aeb89ac53bf190bc2c947465dfe03d505bf46afc 100644 (file)
@@ -6439,6 +6439,47 @@ TRACE_EVENT(xfs_verify_media_error,
                  __entry->error)
 );
 
+TRACE_EVENT(xfs_bmap_replace_cow_mapping,
+       TP_PROTO(struct xfs_inode *ip, const struct xfs_bmbt_irec *got,
+                const struct xfs_bmbt_irec *rep),
+       TP_ARGS(ip, got, rep),
+       TP_STRUCT__entry(
+               __field(dev_t, dev)
+               __field(xfs_ino_t, ino)
+               __field(xfs_fsblock_t, startblock)
+               __field(xfs_fileoff_t, startoff)
+               __field(xfs_filblks_t, blockcount)
+               __field(xfs_exntst_t, state)
+               __field(xfs_fileoff_t, new_startoff)
+               __field(xfs_fsblock_t, new_startblock)
+               __field(xfs_extlen_t, new_blockcount)
+               __field(xfs_exntst_t, new_state)
+       ),
+       TP_fast_assign(
+               __entry->dev = ip->i_mount->m_super->s_dev;
+               __entry->ino = I_INO(ip);
+               __entry->startoff = got->br_startoff;
+               __entry->startblock = got->br_startblock;
+               __entry->blockcount = got->br_blockcount;
+               __entry->state = got->br_state;
+               __entry->new_startoff = rep->br_startoff;
+               __entry->new_startblock = rep->br_startblock;
+               __entry->new_blockcount = rep->br_blockcount;
+               __entry->new_state = rep->br_state;
+       ),
+       TP_printk("dev %d:%d ino 0x%llx startoff 0x%llx startblock 0x%llx fsbcount 0x%llx state 0x%x new_startoff 0x%llx new_startblock 0x%llx new_fsbcount 0x%x new_state 0x%x",
+                 MAJOR(__entry->dev), MINOR(__entry->dev),
+                 __entry->ino,
+                 __entry->startoff,
+                 __entry->startblock,
+                 __entry->blockcount,
+                 __entry->state,
+                 __entry->new_startoff,
+                 __entry->new_startblock,
+                 __entry->new_blockcount,
+                 __entry->new_state)
+);
+
 #endif /* _TRACE_XFS_H */
 
 #undef TRACE_INCLUDE_PATH