[alsa-devel] [PATCH 4/6] ASoC: Intel: Add trace support for Haswell/Broadwell SST IPC messages.
broonie at kernel.org
Fri Feb 21 06:19:06 CET 2014
On Thu, Feb 20, 2014 at 09:48:45PM +0000, Liam Girdwood wrote:
> Provide a trace mechanism for debugging Haswell/Broadwell specific SST
> IPC messages.
> + TP_STRUCT__entry(
> + __field( unsigned int, status )
> + __field( unsigned int, mask )
> + ),
> + TP_fast_assign(
> + __entry->status = status;
> + __entry->mask = mask;
> + ),
> + TP_printk("status 0x%8.8x mask 0x%8.8x",
> + (unsigned int)__entry->status, (unsigned int)__entry->mask)
I found out the other day that the trace infrastructure has a neat
helper called __print_symbolic which can decode things - might be
helpful for some of these, though I don't think it does bitfields it
might help with making the IPC messages more legible.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the Alsa-devel