Commit 92eff386 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: standardize daddr formatting in ftrace output

Always print disk addr (i.e. 512 byte block) numbers in hexadecimal and
preceded with the unit "daddr".
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Reviewed-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
parent 97f4f915
...@@ -397,7 +397,7 @@ DECLARE_EVENT_CLASS(xfs_buf_class, ...@@ -397,7 +397,7 @@ DECLARE_EVENT_CLASS(xfs_buf_class,
__entry->flags = bp->b_flags; __entry->flags = bp->b_flags;
__entry->caller_ip = caller_ip; __entry->caller_ip = caller_ip;
), ),
TP_printk("dev %d:%d bno 0x%llx nblks 0x%x hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx nblks 0x%x hold %d pincount %d "
"lock %d flags %s caller %pS", "lock %d flags %s caller %pS",
MAJOR(__entry->dev), MINOR(__entry->dev), MAJOR(__entry->dev), MINOR(__entry->dev),
(unsigned long long)__entry->bno, (unsigned long long)__entry->bno,
...@@ -465,7 +465,7 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class, ...@@ -465,7 +465,7 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class,
__entry->lockval = bp->b_sema.count; __entry->lockval = bp->b_sema.count;
__entry->caller_ip = caller_ip; __entry->caller_ip = caller_ip;
), ),
TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx len 0x%zx hold %d pincount %d "
"lock %d flags %s caller %pS", "lock %d flags %s caller %pS",
MAJOR(__entry->dev), MINOR(__entry->dev), MAJOR(__entry->dev), MINOR(__entry->dev),
(unsigned long long)__entry->bno, (unsigned long long)__entry->bno,
...@@ -510,7 +510,7 @@ TRACE_EVENT(xfs_buf_ioerror, ...@@ -510,7 +510,7 @@ TRACE_EVENT(xfs_buf_ioerror,
__entry->flags = bp->b_flags; __entry->flags = bp->b_flags;
__entry->caller_ip = caller_ip; __entry->caller_ip = caller_ip;
), ),
TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx len 0x%zx hold %d pincount %d "
"lock %d error %d flags %s caller %pS", "lock %d error %d flags %s caller %pS",
MAJOR(__entry->dev), MINOR(__entry->dev), MAJOR(__entry->dev), MINOR(__entry->dev),
(unsigned long long)__entry->bno, (unsigned long long)__entry->bno,
...@@ -552,7 +552,7 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class, ...@@ -552,7 +552,7 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class,
__entry->buf_lockval = bip->bli_buf->b_sema.count; __entry->buf_lockval = bip->bli_buf->b_sema.count;
__entry->li_flags = bip->bli_item.li_flags; __entry->li_flags = bip->bli_item.li_flags;
), ),
TP_printk("dev %d:%d bno 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx len 0x%zx hold %d pincount %d "
"lock %d flags %s recur %d refcount %d bliflags %s " "lock %d flags %s recur %d refcount %d bliflags %s "
"liflags %s", "liflags %s",
MAJOR(__entry->dev), MINOR(__entry->dev), MAJOR(__entry->dev), MINOR(__entry->dev),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment