Commit | Line | Data |
---|---|---|
b283666f PW |
1 | #undef TRACE_SYSTEM |
2 | #define TRACE_SYSTEM gpio | |
3 | ||
3bc29f0a MD |
4 | #if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) |
5 | #define LTTNG_TRACE_GPIO_H | |
b283666f | 6 | |
3bc29f0a | 7 | #include "../../../probes/lttng-tracepoint-event.h" |
b283666f | 8 | |
3bc29f0a | 9 | LTTNG_TRACEPOINT_EVENT(gpio_direction, |
b283666f PW |
10 | |
11 | TP_PROTO(unsigned gpio, int in, int err), | |
12 | ||
13 | TP_ARGS(gpio, in, err), | |
14 | ||
f127e61e MD |
15 | TP_FIELDS( |
16 | ctf_integer(unsigned, gpio, gpio) | |
17 | ctf_integer(int, in, in) | |
18 | ctf_integer(int, err, err) | |
19 | ) | |
b283666f PW |
20 | ) |
21 | ||
3bc29f0a | 22 | LTTNG_TRACEPOINT_EVENT(gpio_value, |
b283666f PW |
23 | |
24 | TP_PROTO(unsigned gpio, int get, int value), | |
25 | ||
26 | TP_ARGS(gpio, get, value), | |
27 | ||
f127e61e MD |
28 | TP_FIELDS( |
29 | ctf_integer(unsigned, gpio, gpio) | |
30 | ctf_integer(int, get, get) | |
31 | ctf_integer(int, value, value) | |
32 | ) | |
b283666f PW |
33 | ) |
34 | ||
3bc29f0a | 35 | #endif /* if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */ |
b283666f PW |
36 | |
37 | /* This part must be outside protection */ | |
38 | #include "../../../probes/define_trace.h" |