mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
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: Franky Lin <frankyl@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
89f927af7f
commit
b4caee6a4a
@ -78,13 +78,15 @@ TRACE_EVENT(brcmf_hexdump,
|
||||
TP_ARGS(data, len),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned long, len)
|
||||
__field(unsigned long, addr)
|
||||
__dynamic_array(u8, hdata, len)
|
||||
),
|
||||
TP_fast_assign(
|
||||
__entry->len = len;
|
||||
__entry->addr = (unsigned long)data;
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user