summaryrefslogtreecommitdiffstats
path: root/sound/hda/trace.h
diff options
context:
space:
mode:
authorLibin Yang <libin.yang@intel.com>2015-05-12 09:43:20 +0800
committerTakashi Iwai <tiwai@suse.de>2015-05-18 10:06:20 +0200
commit598dfb56b016615f5f49848b58a1ce151acd3bd3 (patch)
tree4c272033e253aa5c71a5732e74e82d248828dccf /sound/hda/trace.h
parent5c03be00cd9eb164be7c7e3bd9065c7ac2df4a29 (diff)
downloadlinux-598dfb56b016615f5f49848b58a1ce151acd3bd3.tar.bz2
ALSA: hda - add hdac stream trace
Add the trace of snd_hdac_stream_start and snd_hdac_stream_stop. Signed-off-by: Libin Yang <libin.yang@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/trace.h')
-rw-r--r--sound/hda/trace.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/sound/hda/trace.h b/sound/hda/trace.h
index 33a7eb5573d4..e27e2c0b7b17 100644
--- a/sound/hda/trace.h
+++ b/sound/hda/trace.h
@@ -50,6 +50,33 @@ TRACE_EVENT(hda_unsol_event,
),
TP_printk("%s", __get_str(msg))
);
+
+DECLARE_EVENT_CLASS(hdac_stream,
+ TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
+
+ TP_ARGS(bus, azx_dev),
+
+ TP_STRUCT__entry(
+ __field(unsigned char, stream_tag)
+ ),
+
+ TP_fast_assign(
+ __entry->stream_tag = (azx_dev)->stream_tag;
+ ),
+
+ TP_printk("stream_tag: %d", __entry->stream_tag)
+);
+
+DEFINE_EVENT(hdac_stream, snd_hdac_stream_start,
+ TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
+ TP_ARGS(bus, azx_dev)
+);
+
+DEFINE_EVENT(hdac_stream, snd_hdac_stream_stop,
+ TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev),
+ TP_ARGS(bus, azx_dev)
+);
+
#endif /* __HDAC_TRACE_H */
/* This part must be outside protection */