Commit 7eac3029 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: standardize remaining xfs_buf length tracepoints

For the remaining xfs_buf tracepoints, convert all the tags to
xfs_daddr_t units and retag them 'daddrcount' to match everything else.
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 f93f85f7
...@@ -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 daddr 0x%llx nblks 0x%x hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx bbcount 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,
...@@ -448,7 +448,7 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class, ...@@ -448,7 +448,7 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(dev_t, dev) __field(dev_t, dev)
__field(xfs_daddr_t, bno) __field(xfs_daddr_t, bno)
__field(size_t, buffer_length) __field(unsigned int, length)
__field(int, hold) __field(int, hold)
__field(int, pincount) __field(int, pincount)
__field(unsigned, lockval) __field(unsigned, lockval)
...@@ -458,18 +458,18 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class, ...@@ -458,18 +458,18 @@ DECLARE_EVENT_CLASS(xfs_buf_flags_class,
TP_fast_assign( TP_fast_assign(
__entry->dev = bp->b_target->bt_dev; __entry->dev = bp->b_target->bt_dev;
__entry->bno = bp->b_bn; __entry->bno = bp->b_bn;
__entry->buffer_length = BBTOB(bp->b_length); __entry->length = bp->b_length;
__entry->flags = flags; __entry->flags = flags;
__entry->hold = atomic_read(&bp->b_hold); __entry->hold = atomic_read(&bp->b_hold);
__entry->pincount = atomic_read(&bp->b_pin_count); __entry->pincount = atomic_read(&bp->b_pin_count);
__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 daddr 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx bbcount 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,
__entry->buffer_length, __entry->length,
__entry->hold, __entry->hold,
__entry->pincount, __entry->pincount,
__entry->lockval, __entry->lockval,
...@@ -491,7 +491,7 @@ TRACE_EVENT(xfs_buf_ioerror, ...@@ -491,7 +491,7 @@ TRACE_EVENT(xfs_buf_ioerror,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(dev_t, dev) __field(dev_t, dev)
__field(xfs_daddr_t, bno) __field(xfs_daddr_t, bno)
__field(size_t, buffer_length) __field(unsigned int, length)
__field(unsigned, flags) __field(unsigned, flags)
__field(int, hold) __field(int, hold)
__field(int, pincount) __field(int, pincount)
...@@ -502,7 +502,7 @@ TRACE_EVENT(xfs_buf_ioerror, ...@@ -502,7 +502,7 @@ TRACE_EVENT(xfs_buf_ioerror,
TP_fast_assign( TP_fast_assign(
__entry->dev = bp->b_target->bt_dev; __entry->dev = bp->b_target->bt_dev;
__entry->bno = bp->b_bn; __entry->bno = bp->b_bn;
__entry->buffer_length = BBTOB(bp->b_length); __entry->length = bp->b_length;
__entry->hold = atomic_read(&bp->b_hold); __entry->hold = atomic_read(&bp->b_hold);
__entry->pincount = atomic_read(&bp->b_pin_count); __entry->pincount = atomic_read(&bp->b_pin_count);
__entry->lockval = bp->b_sema.count; __entry->lockval = bp->b_sema.count;
...@@ -510,11 +510,11 @@ TRACE_EVENT(xfs_buf_ioerror, ...@@ -510,11 +510,11 @@ 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 daddr 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx bbcount 0x%x 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,
__entry->buffer_length, __entry->length,
__entry->hold, __entry->hold,
__entry->pincount, __entry->pincount,
__entry->lockval, __entry->lockval,
...@@ -529,7 +529,7 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class, ...@@ -529,7 +529,7 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(dev_t, dev) __field(dev_t, dev)
__field(xfs_daddr_t, buf_bno) __field(xfs_daddr_t, buf_bno)
__field(size_t, buf_len) __field(unsigned int, buf_len)
__field(int, buf_hold) __field(int, buf_hold)
__field(int, buf_pincount) __field(int, buf_pincount)
__field(int, buf_lockval) __field(int, buf_lockval)
...@@ -545,14 +545,14 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class, ...@@ -545,14 +545,14 @@ DECLARE_EVENT_CLASS(xfs_buf_item_class,
__entry->bli_recur = bip->bli_recur; __entry->bli_recur = bip->bli_recur;
__entry->bli_refcount = atomic_read(&bip->bli_refcount); __entry->bli_refcount = atomic_read(&bip->bli_refcount);
__entry->buf_bno = bip->bli_buf->b_bn; __entry->buf_bno = bip->bli_buf->b_bn;
__entry->buf_len = BBTOB(bip->bli_buf->b_length); __entry->buf_len = bip->bli_buf->b_length;
__entry->buf_flags = bip->bli_buf->b_flags; __entry->buf_flags = bip->bli_buf->b_flags;
__entry->buf_hold = atomic_read(&bip->bli_buf->b_hold); __entry->buf_hold = atomic_read(&bip->bli_buf->b_hold);
__entry->buf_pincount = atomic_read(&bip->bli_buf->b_pin_count); __entry->buf_pincount = atomic_read(&bip->bli_buf->b_pin_count);
__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 daddr 0x%llx len 0x%zx hold %d pincount %d " TP_printk("dev %d:%d daddr 0x%llx bbcount 0x%x 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