2 #define TRACE_SYSTEM gpio
4 #ifndef CONFIG_TRACING_EVENTS_GPIO
8 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
11 #include <linux/tracepoint.h>
13 TRACE_EVENT(gpio_direction
,
15 TP_PROTO(unsigned gpio
, int in
, int err
),
17 TP_ARGS(gpio
, in
, err
),
20 __field(unsigned, gpio
)
31 TP_printk("%u %3s (%d)", __entry
->gpio
,
32 __entry
->in
? "in" : "out", __entry
->err
)
35 TRACE_EVENT(gpio_value
,
37 TP_PROTO(unsigned gpio
, int get
, int value
),
39 TP_ARGS(gpio
, get
, value
),
42 __field(unsigned, gpio
)
50 __entry
->value
= value
;
53 TP_printk("%u %3s %d", __entry
->gpio
,
54 __entry
->get
? "get" : "set", __entry
->value
)
57 #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
59 /* This part must be outside protection */
60 #include <trace/define_trace.h>