1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #undef TRACE_SYSTEM 4 #define TRACE_SYSTEM fsi_master_gpio 5 6 #if !defined(_TRACE_FSI_MASTER_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_FSI_MASTER_GPIO_H 8 9 #include <linux/tracepoint.h> 10 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), 14 TP_STRUCT__entry( 15 __field(int, master_idx) 16 __field(int, bits) 17 __field(uint64_t, msg) 18 ), 19 TP_fast_assign( 20 __entry->master_idx = master->master.idx; 21 __entry->bits = bits; 22 __entry->msg = msg & ((1ull<<bits) - 1); 23 ), 24 TP_printk("fsi-gpio%d => %0*llx[%d]", 25 __entry->master_idx, 26 (__entry->bits + 3) / 4, 27 __entry->msg, 28 __entry->bits 29 ) 30 ); 31 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), 35 TP_STRUCT__entry( 36 __field(int, master_idx) 37 __field(int, bits) 38 __field(uint64_t, msg) 39 ), 40 TP_fast_assign( 41 __entry->master_idx = master->master.idx; 42 __entry->bits = bits; 43 __entry->msg = msg & ((1ull<<bits) - 1); 44 ), 45 TP_printk("fsi-gpio%d <= %0*llx[%d]", 46 __entry->master_idx, 47 (__entry->bits + 3) / 4, 48 __entry->msg, 49 __entry->bits 50 ) 51 ); 52 53 TRACE_EVENT(fsi_master_gpio_break, 54 TP_PROTO(const struct fsi_master_gpio *master), 55 TP_ARGS(master), 56 TP_STRUCT__entry( 57 __field(int, master_idx) 58 ), 59 TP_fast_assign( 60 __entry->master_idx = master->master.idx; 61 ), 62 TP_printk("fsi-gpio%d ----break---", 63 __entry->master_idx 64 ) 65 ); 66 67 #endif /* _TRACE_FSI_MASTER_GPIO_H */ 68 69 #include <trace/define_trace.h> 70