xref: /linux/drivers/soc/qcom/trace-aoss.h (revision a36e9f5cfe9eb3a1dce8769c7058251c42705357)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
4  */
5 
6 #undef TRACE_SYSTEM
7 #define TRACE_SYSTEM qcom_aoss
8 
9 #if !defined(_TRACE_QCOM_AOSS_H) || defined(TRACE_HEADER_MULTI_READ)
10 #define _TRACE_QCOM_AOSS_H
11 
12 #include <linux/tracepoint.h>
13 
14 TRACE_EVENT(aoss_send,
15 	TP_PROTO(const char *msg),
16 	TP_ARGS(msg),
17 	TP_STRUCT__entry(
18 		__string(msg, msg)
19 	),
20 	TP_fast_assign(
21 		__assign_str(msg);
22 	),
23 	TP_printk("%s", __get_str(msg))
24 );
25 
26 TRACE_EVENT(aoss_send_done,
27 	TP_PROTO(const char *msg, int ret),
28 	TP_ARGS(msg, ret),
29 	TP_STRUCT__entry(
30 		__string(msg, msg)
31 		__field(int, ret)
32 	),
33 	TP_fast_assign(
34 		__assign_str(msg);
35 		__entry->ret = ret;
36 	),
37 	TP_printk("%s: %d", __get_str(msg), __entry->ret)
38 );
39 
40 #endif /* _TRACE_QCOM_AOSS_H */
41 
42 #undef TRACE_INCLUDE_PATH
43 #define TRACE_INCLUDE_PATH .
44 
45 #undef TRACE_INCLUDE_FILE
46 #define TRACE_INCLUDE_FILE trace-aoss
47 
48 #include <trace/define_trace.h>
49