X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-types.h;h=dcab602f095237ae03baf5e2448bd39bdad6de88;hb=edfdcb685c3f56dde803244449f79ad7bed03798;hp=93760667697919f4f76ffd8663ef5617ea630e9e;hpb=886d51a3d7ed5fa6b41d7f19b3e14ae6c535a44c;p=lttng-modules.git diff --git a/probes/lttng-types.h b/probes/lttng-types.h index 93760667..dcab602f 100644 --- a/probes/lttng-types.h +++ b/probes/lttng-types.h @@ -1,37 +1,24 @@ -/* - * Protect against multiple inclusion of structure declarations, but run the - * stages below each time. - */ -#ifndef _LTTNG_PROBES_LTTNG_TYPES_H -#define _LTTNG_PROBES_LTTNG_TYPES_H - -/* +/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) + * * probes/lttng-types.h * * LTTng types. * * Copyright (C) 2010-2012 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; only - * version 2.1 of the License. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +/* + * Protect against multiple inclusion of structure declarations, but run the + * stages below each time. + */ +#ifndef _LTTNG_PROBES_LTTNG_TYPES_H +#define _LTTNG_PROBES_LTTNG_TYPES_H + #include -#include "lttng.h" -#include "../lttng-events.h" -#include "../lttng-tracer.h" -#include "../lttng-endian.h" +#include +#include +#include +#include #endif /* _LTTNG_PROBES_LTTNG_TYPES_H */ @@ -68,7 +55,7 @@ #define TRACE_EVENT_TYPE___enum(_name, _container_type) \ { \ .name = #_name, \ - .container_type = __type_integer(_container_type, __BYTE_ORDER, 10, none), \ + .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), \ },