Commit b4caee6a authored by Arend van Spriel's avatar Arend van Spriel Committed by John W. Linville

brcmfmac: store address in trace_brcmf_hexdump()

The trace function trace_brcmf_hexdump() stores the length, but
having the address of the buffer being dumped helps putting it
in context.
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 89f927af
...@@ -78,13 +78,15 @@ TRACE_EVENT(brcmf_hexdump, ...@@ -78,13 +78,15 @@ TRACE_EVENT(brcmf_hexdump,
TP_ARGS(data, len), TP_ARGS(data, len),
TP_STRUCT__entry( TP_STRUCT__entry(
__field(unsigned long, len) __field(unsigned long, len)
__field(unsigned long, addr)
__dynamic_array(u8, hdata, len) __dynamic_array(u8, hdata, len)
), ),
TP_fast_assign( TP_fast_assign(
__entry->len = len; __entry->len = len;
__entry->addr = (unsigned long)data;
memcpy(__get_dynamic_array(hdata), data, len); memcpy(__get_dynamic_array(hdata), data, len);
), ),
TP_printk("hexdump [length=%lu]", __entry->len) TP_printk("hexdump [addr=%lx, length=%lu]", __entry->addr, __entry->len)
); );
TRACE_EVENT(brcmf_bdchdr, TRACE_EVENT(brcmf_bdchdr,
......
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