X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-types.h;h=dcab602f095237ae03baf5e2448bd39bdad6de88;hb=1aca53e11bbd4a28fb88f8466744abf66447c92f;hp=bbae874742e56a19a11a1050c276b1049e849644;hpb=c099397a53087b8c616a7feaef0c26d939b9662f;p=lttng-modules.git diff --git a/probes/lttng-types.h b/probes/lttng-types.h index bbae8747..dcab602f 100644 --- a/probes/lttng-types.h +++ b/probes/lttng-types.h @@ -1,3 +1,12 @@ +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * + * probes/lttng-types.h + * + * LTTng types. + * + * Copyright (C) 2010-2012 Mathieu Desnoyers + */ + /* * Protect against multiple inclusion of structure declarations, but run the * stages below each time. @@ -6,31 +15,13 @@ #define _LTTNG_PROBES_LTTNG_TYPES_H #include -#include "lttng.h" -#include "../ltt-events.h" - -#ifdef __KERNEL__ -# include -# ifdef __BIG_ENDIAN -# define __BYTE_ORDER __BIG_ENDIAN -# elif defined(__LITTLE_ENDIAN) -# define __BYTE_ORDER __LITTLE_ENDIAN -# else -# error "unknown endianness" -# endif -#ifndef __BIG_ENDIAN -# define __BIG_ENDIAN 4321 -#endif -#ifndef __LITTLE_ENDIAN -# define __LITTLE_ENDIAN 1234 -#endif -#else -# include -#endif +#include +#include +#include +#include #endif /* _LTTNG_PROBES_LTTNG_TYPES_H */ - /* Export enumerations */ #ifdef STAGE_EXPORT_ENUMS @@ -64,7 +55,7 @@ #define TRACE_EVENT_TYPE___enum(_name, _container_type) \ { \ .name = #_name, \ - .container_type = __type_integer(_container_type, __BYTE_ORDER), \ + .container_type = __type_integer(_container_type, 0, 0, -1, __BYTE_ORDER, 10, none), \ .entries = __trace_event_enum_##_name, \ .len = ARRAY_SIZE(__trace_event_enum_##_name), \ },