mtd: rawnand: fsl_elbc: Implement RNDOUT command
[linux/fpc-iii.git] / include / trace / events / gpio.h
blob5c189a22c48973a86502710a45886271fe631c21
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM gpio
5 #ifndef CONFIG_TRACING_EVENTS_GPIO
6 #define NOTRACE
7 #endif
9 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
10 #define _TRACE_GPIO_H
12 #include <linux/tracepoint.h>
14 TRACE_EVENT(gpio_direction,
16 TP_PROTO(unsigned gpio, int in, int err),
18 TP_ARGS(gpio, in, err),
20 TP_STRUCT__entry(
21 __field(unsigned, gpio)
22 __field(int, in)
23 __field(int, err)
26 TP_fast_assign(
27 __entry->gpio = gpio;
28 __entry->in = in;
29 __entry->err = err;
32 TP_printk("%u %3s (%d)", __entry->gpio,
33 __entry->in ? "in" : "out", __entry->err)
36 TRACE_EVENT(gpio_value,
38 TP_PROTO(unsigned gpio, int get, int value),
40 TP_ARGS(gpio, get, value),
42 TP_STRUCT__entry(
43 __field(unsigned, gpio)
44 __field(int, get)
45 __field(int, value)
48 TP_fast_assign(
49 __entry->gpio = gpio;
50 __entry->get = get;
51 __entry->value = value;
54 TP_printk("%u %3s %d", __entry->gpio,
55 __entry->get ? "get" : "set", __entry->value)
58 #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
60 /* This part must be outside protection */
61 #include <trace/define_trace.h>