1 /* SPDX-License-Identifier: GPL-2.0 */
4 #define TRACE_SYSTEM fsi_master_gpio
6 #if !defined(_TRACE_FSI_MASTER_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_FSI_MASTER_GPIO_H
9 #include <linux/tracepoint.h>
11 TRACE_EVENT(fsi_master_gpio_in
,
12 TP_PROTO(const struct fsi_master_gpio
*master
, int bits
, uint64_t msg
),
13 TP_ARGS(master
, bits
, msg
),
15 __field(int, master_idx
)
17 __field(uint64_t, msg
)
20 __entry
->master_idx
= master
->master
.idx
;
22 __entry
->msg
= msg
& ((1ull<<bits
) - 1);
24 TP_printk("fsi-gpio%d => %0*llx[%d]",
26 (__entry
->bits
+ 3) / 4,
32 TRACE_EVENT(fsi_master_gpio_out
,
33 TP_PROTO(const struct fsi_master_gpio
*master
, int bits
, uint64_t msg
),
34 TP_ARGS(master
, bits
, msg
),
36 __field(int, master_idx
)
38 __field(uint64_t, msg
)
41 __entry
->master_idx
= master
->master
.idx
;
43 __entry
->msg
= msg
& ((1ull<<bits
) - 1);
45 TP_printk("fsi-gpio%d <= %0*llx[%d]",
47 (__entry
->bits
+ 3) / 4,
53 TRACE_EVENT(fsi_master_gpio_break
,
54 TP_PROTO(const struct fsi_master_gpio
*master
),
57 __field(int, master_idx
)
60 __entry
->master_idx
= master
->master
.idx
;
62 TP_printk("fsi-gpio%d ----break---",
67 #endif /* _TRACE_FSI_MASTER_GPIO_H */
69 #include <trace/define_trace.h>