1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM gpio
5 #if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_GPIO_H
8 #include <probes/lttng-tracepoint-event.h>
10 LTTNG_TRACEPOINT_EVENT(gpio_direction
,
12 TP_PROTO(unsigned gpio
, int in
, int err
),
14 TP_ARGS(gpio
, in
, err
),
17 ctf_integer(unsigned, gpio
, gpio
)
18 ctf_integer(int, in
, in
)
19 ctf_integer(int, err
, err
)
23 LTTNG_TRACEPOINT_EVENT(gpio_value
,
25 TP_PROTO(unsigned gpio
, int get
, int value
),
27 TP_ARGS(gpio
, get
, value
),
30 ctf_integer(unsigned, gpio
, gpio
)
31 ctf_integer(int, get
, get
)
32 ctf_integer(int, value
, value
)
36 #endif /* if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */
38 /* This part must be outside protection */
39 #include <probes/define_trace.h>
This page took 0.033028 seconds and 4 git commands to generate.