3 #define TRACE_SYSTEM fsi
5 #if !defined(_TRACE_FSI_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(fsi_master_read
,
11 TP_PROTO(const struct fsi_master
*master
, int link
, int id
,
12 uint32_t addr
, size_t size
),
13 TP_ARGS(master
, link
, id
, addr
, size
),
15 __field(int, master_idx
)
22 __entry
->master_idx
= master
->idx
;
28 TP_printk("fsi%d:%02d:%02d %08x[%zd]",
37 TRACE_EVENT(fsi_master_write
,
38 TP_PROTO(const struct fsi_master
*master
, int link
, int id
,
39 uint32_t addr
, size_t size
, const void *data
),
40 TP_ARGS(master
, link
, id
, addr
, size
, data
),
42 __field(int, master_idx
)
50 __entry
->master_idx
= master
->idx
;
56 memcpy(&__entry
->data
, data
, size
);
58 TP_printk("fsi%d:%02d:%02d %08x[%zd] <= {%*ph}",
64 (int)__entry
->size
, &__entry
->data
68 TRACE_EVENT(fsi_master_rw_result
,
69 TP_PROTO(const struct fsi_master
*master
, int link
, int id
,
70 uint32_t addr
, size_t size
,
71 bool write
, const void *data
, int ret
),
72 TP_ARGS(master
, link
, id
, addr
, size
, write
, data
, ret
),
74 __field(int, master_idx
)
84 __entry
->master_idx
= master
->idx
;
89 __entry
->write
= write
;
92 if (__entry
->write
|| !__entry
->ret
)
93 memcpy(&__entry
->data
, data
, size
);
95 TP_printk("fsi%d:%02d:%02d %08x[%zd] %s {%*ph} ret %d",
101 __entry
->write
? "<=" : "=>",
102 (int)__entry
->size
, &__entry
->data
,
107 TRACE_EVENT(fsi_master_break
,
108 TP_PROTO(const struct fsi_master
*master
, int link
),
109 TP_ARGS(master
, link
),
111 __field(int, master_idx
)
115 __entry
->master_idx
= master
->idx
;
116 __entry
->link
= link
;
118 TP_printk("fsi%d:%d",
125 #endif /* _TRACE_FSI_H */
127 #include <trace/define_trace.h>