md/raid: only permit hot-add of compatible integrity profiles
[linux/fpc-iii.git] / sound / pci / hda / hda_controller_trace.h
blob3e18d99bfb70fb4e82bbf81b38745991ef350845
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM hda_controller
3 #define TRACE_INCLUDE_FILE hda_controller_trace
5 #if !defined(_TRACE_HDA_CONTROLLER_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_HDA_CONTROLLER_H
8 #include <linux/tracepoint.h>
10 struct azx;
11 struct azx_dev;
13 TRACE_EVENT(azx_pcm_trigger,
15 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd),
17 TP_ARGS(chip, dev, cmd),
19 TP_STRUCT__entry(
20 __field( int, card )
21 __field( int, idx )
22 __field( int, cmd )
25 TP_fast_assign(
26 __entry->card = (chip)->card->number;
27 __entry->idx = (dev)->core.index;
28 __entry->cmd = cmd;
31 TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd)
34 TRACE_EVENT(azx_get_position,
36 TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay),
38 TP_ARGS(chip, dev, pos, delay),
40 TP_STRUCT__entry(
41 __field( int, card )
42 __field( int, idx )
43 __field( unsigned int, pos )
44 __field( unsigned int, delay )
47 TP_fast_assign(
48 __entry->card = (chip)->card->number;
49 __entry->idx = (dev)->core.index;
50 __entry->pos = pos;
51 __entry->delay = delay;
54 TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay)
57 DECLARE_EVENT_CLASS(azx_pcm,
58 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
60 TP_ARGS(chip, azx_dev),
62 TP_STRUCT__entry(
63 __field( unsigned char, stream_tag )
66 TP_fast_assign(
67 __entry->stream_tag = (azx_dev)->core.stream_tag;
70 TP_printk("stream_tag: %d", __entry->stream_tag)
73 DEFINE_EVENT(azx_pcm, azx_pcm_open,
74 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
75 TP_ARGS(chip, azx_dev)
78 DEFINE_EVENT(azx_pcm, azx_pcm_close,
79 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
80 TP_ARGS(chip, azx_dev)
83 DEFINE_EVENT(azx_pcm, azx_pcm_hw_params,
84 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
85 TP_ARGS(chip, azx_dev)
88 DEFINE_EVENT(azx_pcm, azx_pcm_prepare,
89 TP_PROTO(struct azx *chip, struct azx_dev *azx_dev),
90 TP_ARGS(chip, azx_dev)
93 #endif /* _TRACE_HDA_CONTROLLER_H */
95 /* This part must be outside protection */
96 #undef TRACE_INCLUDE_PATH
97 #define TRACE_INCLUDE_PATH .
98 #include <trace/define_trace.h>