Fix: update sched instrumentation for kernel 4.12
[lttng-modules.git] / instrumentation / events / lttng-module / gpio.h
CommitLineData
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
6ec43db8 7#include <probes/lttng-tracepoint-event.h>
b283666f 8
3bc29f0a 9LTTNG_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 22LTTNG_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 */
6ec43db8 38#include <probes/define_trace.h>
This page took 0.029386 seconds and 4 git commands to generate.