brcmfmac: store address in trace_brcmf_hexdump()
authorArend van Spriel <arend@broadcom.com>
Tue, 15 Oct 2013 13:44:46 +0000 (15:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Oct 2013 18:06:56 +0000 (14:06 -0400)
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>
drivers/net/wireless/brcm80211/brcmfmac/tracepoint.h

index bc29171128991a9836d8237c556be00482f66d00..4605a1dd63664ab0b966fefe2860aca0fa55d321 100644 (file)
@@ -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,