2 #define TRACE_SYSTEM gpio
4 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(gpio_direction
,
11 TP_PROTO(unsigned gpio
, int in
, int err
),
13 TP_ARGS(gpio
, in
, err
),
16 __field(unsigned, gpio
)
27 TP_printk("%u %3s (%d)", __entry
->gpio
,
28 __entry
->in
? "in" : "out", __entry
->err
)
31 TRACE_EVENT(gpio_value
,
33 TP_PROTO(unsigned gpio
, int get
, int value
),
35 TP_ARGS(gpio
, get
, value
),
38 __field(unsigned, gpio
)
46 __entry
->value
= value
;
49 TP_printk("%u %3s %d", __entry
->gpio
,
50 __entry
->get
? "get" : "set", __entry
->value
)
53 #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
55 /* This part must be outside protection */
56 #include <trace/define_trace.h>
This page took 0.034671 seconds and 4 git commands to generate.