fix: block: remove GENHD_FL_SUPPRESS_PARTITION_INFO (v5.17)
[lttng-modules.git] / include / instrumentation / events / gpio.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM gpio
4
5 #if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_GPIO_H
7
8 #include <lttng/tracepoint-event.h>
9
10 LTTNG_TRACEPOINT_EVENT(gpio_direction,
11
12 TP_PROTO(unsigned gpio, int in, int err),
13
14 TP_ARGS(gpio, in, err),
15
16 TP_FIELDS(
17 ctf_integer(unsigned, gpio, gpio)
18 ctf_integer(int, in, in)
19 ctf_integer(int, err, err)
20 )
21 )
22
23 LTTNG_TRACEPOINT_EVENT(gpio_value,
24
25 TP_PROTO(unsigned gpio, int get, int value),
26
27 TP_ARGS(gpio, get, value),
28
29 TP_FIELDS(
30 ctf_integer(unsigned, gpio, gpio)
31 ctf_integer(int, get, get)
32 ctf_integer(int, value, value)
33 )
34 )
35
36 #endif /* if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
37
38 /* This part must be outside protection */
39 #include <lttng/define_trace.h>
This page took 0.067593 seconds and 4 git commands to generate.