X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fgpio.h;h=6d93d4febf86222f48b94dae0f78d1f606675627;hb=3bc29f0a41b3c803245b845db2e1909042e72e9c;hp=a0c587653ee102728e4163554940bdacf6b40aee;hpb=7ca580f8aca4f8c2b9e0066ad52ebfc226b3d645;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/gpio.h b/instrumentation/events/lttng-module/gpio.h index a0c58765..6d93d4fe 100644 --- a/instrumentation/events/lttng-module/gpio.h +++ b/instrumentation/events/lttng-module/gpio.h @@ -1,12 +1,12 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM gpio -#if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) -#define _TRACE_GPIO_H +#if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) +#define LTTNG_TRACE_GPIO_H -#include +#include "../../../probes/lttng-tracepoint-event.h" -TRACE_EVENT(gpio_direction, +LTTNG_TRACEPOINT_EVENT(gpio_direction, TP_PROTO(unsigned gpio, int in, int err), @@ -28,7 +28,7 @@ TRACE_EVENT(gpio_direction, __entry->in ? "in" : "out", __entry->err) ) -TRACE_EVENT(gpio_value, +LTTNG_TRACEPOINT_EVENT(gpio_value, TP_PROTO(unsigned gpio, int get, int value), @@ -50,7 +50,7 @@ TRACE_EVENT(gpio_value, __entry->get ? "get" : "set", __entry->value) ) -#endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */ +#endif /* if !defined(LTTNG_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */ /* This part must be outside protection */ #include "../../../probes/define_trace.h"