xref: /linux/sound/pci/hda/hda_intel_trace.h (revision c0c914eca7f251c70facc37dfebeaf176601918d)
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM hda_intel
3 #define TRACE_INCLUDE_FILE hda_intel_trace
4 
5 #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_HDA_INTEL_H
7 
8 #include <linux/tracepoint.h>
9 
10 DECLARE_EVENT_CLASS(hda_pm,
11 	TP_PROTO(struct azx *chip),
12 
13 	TP_ARGS(chip),
14 
15 	TP_STRUCT__entry(
16 		__field(int, dev_index)
17 	),
18 
19 	TP_fast_assign(
20 		__entry->dev_index = (chip)->dev_index;
21 	),
22 
23 	TP_printk("card index: %d", __entry->dev_index)
24 );
25 
26 DEFINE_EVENT(hda_pm, azx_suspend,
27 	TP_PROTO(struct azx *chip),
28 	TP_ARGS(chip)
29 );
30 
31 DEFINE_EVENT(hda_pm, azx_resume,
32 	TP_PROTO(struct azx *chip),
33 	TP_ARGS(chip)
34 );
35 
36 #ifdef CONFIG_PM
37 DEFINE_EVENT(hda_pm, azx_runtime_suspend,
38 	TP_PROTO(struct azx *chip),
39 	TP_ARGS(chip)
40 );
41 
42 DEFINE_EVENT(hda_pm, azx_runtime_resume,
43 	TP_PROTO(struct azx *chip),
44 	TP_ARGS(chip)
45 );
46 #endif
47 
48 #endif /* _TRACE_HDA_INTEL_H */
49 
50 /* This part must be outside protection */
51 #undef TRACE_INCLUDE_PATH
52 #define TRACE_INCLUDE_PATH .
53 #include <trace/define_trace.h>
54