diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-09 14:22:44 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-09 14:24:17 +0200 |
commit | ecf726f5414489fe749477eb77d6cb12bb93c8bc (patch) | |
tree | 5dd0bea16d7b627091b16f295fc8f553ec266014 /sound/pci/hda/hda_trace.h | |
parent | d11b7fa3d5b6d4b3a730f563e7b14dfc859c40c6 (diff) |
ALSA: hda - Add tracepoint for unsolicited events
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_trace.h')
-rw-r--r-- | sound/pci/hda/hda_trace.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_trace.h b/sound/pci/hda/hda_trace.h index b446cfcf60d..9884871ddb0 100644 --- a/sound/pci/hda/hda_trace.h +++ b/sound/pci/hda/hda_trace.h @@ -87,6 +87,28 @@ DEFINE_EVENT(hda_power, hda_power_up, TP_ARGS(codec) ); +TRACE_EVENT(hda_unsol_event, + + TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex), + + TP_ARGS(bus, res, res_ex), + + TP_STRUCT__entry( + __field( unsigned int, card ) + __field( u32, res ) + __field( u32, res_ex ) + ), + + TP_fast_assign( + __entry->card = (bus)->card->number; + __entry->res = res; + __entry->res_ex = res_ex; + ), + + TP_printk("[%d] res=%x, res_ex=%x", __entry->card, + __entry->res, __entry->res_ex) +); + #endif /* _TRACE_HDA_H */ /* This part must be outside protection */ |