xref: /linux-6.15/include/trace/events/sof_intel.h (revision baedc630)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright(c) 2022 Intel Corporation. All rights reserved.
4  *
5  * Author: Noah Klayman <[email protected]>
6  */
7 
8 #undef TRACE_SYSTEM
9 #define TRACE_SYSTEM sof_intel
10 
11 #if !defined(_TRACE_SOF_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
12 #define _TRACE_SOF_INTEL_H
13 #include <linux/tracepoint.h>
14 #include "../../../sound/soc/sof/sof-audio.h"
15 
16 TRACE_EVENT(sof_intel_hda_irq,
17 	TP_PROTO(struct snd_sof_dev *sdev, char *source),
18 	TP_ARGS(sdev, source),
19 	TP_STRUCT__entry(
20 		__string(device_name, dev_name(sdev->dev))
21 		__string(source, source)
22 	),
23 	TP_fast_assign(
24 		__assign_str(device_name, dev_name(sdev->dev));
25 		__assign_str(source, source);
26 	),
27 	TP_printk("device_name=%s source=%s",
28 		  __get_str(device_name), __get_str(source))
29 );
30 
31 #endif /* _TRACE_SOF_INTEL_H */
32 
33 /* This part must be outside protection */
34 #include <trace/define_trace.h>
35