Merge tag 'xtensa-20180225' of git://github.com/jcmvbkbc/linux-xtensa
[cris-mirror.git] / include / trace / events / fsi_master_gpio.h
blobf95cf3264bf916d24f31c338db5e0262f4c9724b
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #undef TRACE_SYSTEM
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),
14 TP_STRUCT__entry(
15 __field(int, master_idx)
16 __field(int, bits)
17 __field(uint64_t, msg)
19 TP_fast_assign(
20 __entry->master_idx = master->master.idx;
21 __entry->bits = bits;
22 __entry->msg = msg & ((1ull<<bits) - 1);
24 TP_printk("fsi-gpio%d => %0*llx[%d]",
25 __entry->master_idx,
26 (__entry->bits + 3) / 4,
27 __entry->msg,
28 __entry->bits
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)
40 TP_fast_assign(
41 __entry->master_idx = master->master.idx;
42 __entry->bits = bits;
43 __entry->msg = msg & ((1ull<<bits) - 1);
45 TP_printk("fsi-gpio%d <= %0*llx[%d]",
46 __entry->master_idx,
47 (__entry->bits + 3) / 4,
48 __entry->msg,
49 __entry->bits
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)
59 TP_fast_assign(
60 __entry->master_idx = master->master.idx;
62 TP_printk("fsi-gpio%d ----break---",
63 __entry->master_idx
67 #endif /* _TRACE_FSI_MASTER_GPIO_H */
69 #include <trace/define_trace.h>