perf hists: Move sort__has_sym into struct perf_hpp_list
[linux/fpc-iii.git] / include / trace / events / gpio.h
blob2da73b92d47e9566f0d0148e966c398ab6bf8c40
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM gpio
4 #ifndef CONFIG_TRACING_EVENTS_GPIO
5 #define NOTRACE
6 #endif
8 #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
9 #define _TRACE_GPIO_H
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),
19 TP_STRUCT__entry(
20 __field(unsigned, gpio)
21 __field(int, in)
22 __field(int, err)
25 TP_fast_assign(
26 __entry->gpio = gpio;
27 __entry->in = in;
28 __entry->err = err;
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),
41 TP_STRUCT__entry(
42 __field(unsigned, gpio)
43 __field(int, get)
44 __field(int, value)
47 TP_fast_assign(
48 __entry->gpio = gpio;
49 __entry->get = get;
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>