18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#undef TRACE_SYSTEM
38c2ecf20Sopenharmony_ci#define TRACE_SYSTEM hda_intel
48c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_FILE hda_intel_trace
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
78c2ecf20Sopenharmony_ci#define _TRACE_HDA_INTEL_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <linux/tracepoint.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciDECLARE_EVENT_CLASS(hda_pm,
128c2ecf20Sopenharmony_ci	TP_PROTO(struct azx *chip),
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	TP_ARGS(chip),
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	TP_STRUCT__entry(
178c2ecf20Sopenharmony_ci		__field(int, dev_index)
188c2ecf20Sopenharmony_ci	),
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci	TP_fast_assign(
218c2ecf20Sopenharmony_ci		__entry->dev_index = (chip)->dev_index;
228c2ecf20Sopenharmony_ci	),
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci	TP_printk("card index: %d", __entry->dev_index)
258c2ecf20Sopenharmony_ci);
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciDEFINE_EVENT(hda_pm, azx_suspend,
288c2ecf20Sopenharmony_ci	TP_PROTO(struct azx *chip),
298c2ecf20Sopenharmony_ci	TP_ARGS(chip)
308c2ecf20Sopenharmony_ci);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciDEFINE_EVENT(hda_pm, azx_resume,
338c2ecf20Sopenharmony_ci	TP_PROTO(struct azx *chip),
348c2ecf20Sopenharmony_ci	TP_ARGS(chip)
358c2ecf20Sopenharmony_ci);
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#ifdef CONFIG_PM
388c2ecf20Sopenharmony_ciDEFINE_EVENT(hda_pm, azx_runtime_suspend,
398c2ecf20Sopenharmony_ci	TP_PROTO(struct azx *chip),
408c2ecf20Sopenharmony_ci	TP_ARGS(chip)
418c2ecf20Sopenharmony_ci);
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciDEFINE_EVENT(hda_pm, azx_runtime_resume,
448c2ecf20Sopenharmony_ci	TP_PROTO(struct azx *chip),
458c2ecf20Sopenharmony_ci	TP_ARGS(chip)
468c2ecf20Sopenharmony_ci);
478c2ecf20Sopenharmony_ci#endif
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#endif /* _TRACE_HDA_INTEL_H */
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci/* This part must be outside protection */
528c2ecf20Sopenharmony_ci#undef TRACE_INCLUDE_PATH
538c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_PATH .
548c2ecf20Sopenharmony_ci#include <trace/define_trace.h>
55