1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM hda_intel
4 #define TRACE_INCLUDE_FILE hda_intel_trace
6 #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_HDA_INTEL_H
9 #include <linux/tracepoint.h>
11 DECLARE_EVENT_CLASS(hda_pm
,
12 TP_PROTO(struct azx
*chip
),
17 __field(int, dev_index
)
21 __entry
->dev_index
= (chip
)->dev_index
;
24 TP_printk("card index: %d", __entry
->dev_index
)
27 DEFINE_EVENT(hda_pm
, azx_suspend
,
28 TP_PROTO(struct azx
*chip
),
32 DEFINE_EVENT(hda_pm
, azx_resume
,
33 TP_PROTO(struct azx
*chip
),
38 DEFINE_EVENT(hda_pm
, azx_runtime_suspend
,
39 TP_PROTO(struct azx
*chip
),
43 DEFINE_EVENT(hda_pm
, azx_runtime_resume
,
44 TP_PROTO(struct azx
*chip
),
49 #endif /* _TRACE_HDA_INTEL_H */
51 /* This part must be outside protection */
52 #undef TRACE_INCLUDE_PATH
53 #define TRACE_INCLUDE_PATH .
54 #include <trace/define_trace.h>