2 #define TRACE_SYSTEM hda
3 #define TRACE_INCLUDE_FILE hda_trace
5 #if !defined(_TRACE_HDA_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/tracepoint.h>
13 DECLARE_EVENT_CLASS(hda_cmd,
15 TP_PROTO(struct hda_codec *codec, unsigned int val),
20 __field( unsigned int, card )
21 __field( unsigned int, addr )
22 __field( unsigned int, val )
26 __entry->card = (codec)->bus->card->number;
27 __entry->addr = (codec)->addr;
31 TP_printk("[%d:%d] val=%x", __entry->card, __entry->addr, __entry->val)
34 DEFINE_EVENT(hda_cmd, hda_send_cmd,
35 TP_PROTO(struct hda_codec *codec, unsigned int val),
39 DEFINE_EVENT(hda_cmd, hda_get_response,
40 TP_PROTO(struct hda_codec *codec, unsigned int val),
44 TRACE_EVENT(hda_bus_reset,
46 TP_PROTO(struct hda_bus *bus),
51 __field( unsigned int, card )
55 __entry->card = (bus)->card->number;
58 TP_printk("[%d]", __entry->card)
61 DECLARE_EVENT_CLASS(hda_power,
63 TP_PROTO(struct hda_codec *codec),
68 __field( unsigned int, card )
69 __field( unsigned int, addr )
73 __entry->card = (codec)->bus->card->number;
74 __entry->addr = (codec)->addr;
77 TP_printk("[%d:%d]", __entry->card, __entry->addr)
80 DEFINE_EVENT(hda_power, hda_power_down,
81 TP_PROTO(struct hda_codec *codec),
85 DEFINE_EVENT(hda_power, hda_power_up,
86 TP_PROTO(struct hda_codec *codec),
90 TRACE_EVENT(hda_power_count,
91 TP_PROTO(struct hda_codec *codec),
94 __field( unsigned int, card )
95 __field( unsigned int, addr )
96 __field( int, power_count )
97 __field( int, power_on )
98 __field( int, power_transition )
102 __entry->card = (codec)->bus->card->number;
103 __entry->addr = (codec)->addr;
104 __entry->power_count = (codec)->power_count;
105 __entry->power_on = (codec)->power_on;
106 __entry->power_transition = (codec)->power_transition;
109 TP_printk("[%d:%d] power_count=%d, power_on=%d, power_transition=%d",
110 __entry->card, __entry->addr, __entry->power_count,
111 __entry->power_on, __entry->power_transition)
114 TRACE_EVENT(hda_unsol_event,
116 TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex),
118 TP_ARGS(bus, res, res_ex),
121 __field( unsigned int, card )
123 __field( u32, res_ex )
127 __entry->card = (bus)->card->number;
129 __entry->res_ex = res_ex;
132 TP_printk("[%d] res=%x, res_ex=%x", __entry->card,
133 __entry->res, __entry->res_ex)
136 #endif /* _TRACE_HDA_H */
138 /* This part must be outside protection */
139 #undef TRACE_INCLUDE_PATH
140 #define TRACE_INCLUDE_PATH .
141 #include <trace/define_trace.h>