Linux 4.16.11
[linux/fpc-iii.git] / sound / pci / hda / hda_intel_trace.h
blob73a7adfa192d00ed65c033ed338bd7d60ccaf483
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
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),
14 TP_ARGS(chip),
16 TP_STRUCT__entry(
17 __field(int, dev_index)
20 TP_fast_assign(
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),
29 TP_ARGS(chip)
32 DEFINE_EVENT(hda_pm, azx_resume,
33 TP_PROTO(struct azx *chip),
34 TP_ARGS(chip)
37 #ifdef CONFIG_PM
38 DEFINE_EVENT(hda_pm, azx_runtime_suspend,
39 TP_PROTO(struct azx *chip),
40 TP_ARGS(chip)
43 DEFINE_EVENT(hda_pm, azx_runtime_resume,
44 TP_PROTO(struct azx *chip),
45 TP_ARGS(chip)
47 #endif
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>