X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=inline;f=lib%2Fringbuffer%2Fconfig.h;h=657c04d224a431ef41c7627aaf41a494072304c8;hb=3a7a6c1de98a27d628e07d4a2ad61c1cf15dd6b1;hp=770f692ca0eabce233c4a2e4803e788a9355d7ce;hpb=64c796d8aec1efa5d6f0d5850d2a0095cb7842e3;p=lttng-modules.git diff --git a/lib/ringbuffer/config.h b/lib/ringbuffer/config.h index 770f692c..657c04d2 100644 --- a/lib/ringbuffer/config.h +++ b/lib/ringbuffer/config.h @@ -1,19 +1,33 @@ -#ifndef _LINUX_RING_BUFFER_CONFIG_H -#define _LINUX_RING_BUFFER_CONFIG_H +#ifndef _LIB_RING_BUFFER_CONFIG_H +#define _LIB_RING_BUFFER_CONFIG_H /* - * linux/ringbuffer/config.h - * - * Copyright (C) 2010 - Mathieu Desnoyers + * lib/ringbuffer/config.h * * Ring buffer configuration header. Note: after declaring the standard inline * functions, clients should also include linux/ringbuffer/api.h. * - * Dual LGPL v2.1/GPL v2 license. + * 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 */ #include #include +#include "../align.h" +#include "../../lttng-tracer-core.h" struct lib_ring_buffer; struct channel; @@ -228,6 +242,10 @@ void lib_ring_buffer_ctx_init(struct lib_ring_buffer_ctx *ctx, #define RING_BUFFER_RFLAG_FULL_TSC (1U << 0) #define RING_BUFFER_RFLAG_END (1U << 1) +#ifndef LTTNG_TRACER_CORE_H +#error "lttng-tracer-core.h is needed for RING_BUFFER_ALIGN define" +#endif + /* * We need to define RING_BUFFER_ALIGN_ATTR so it is known early at * compile-time. We have to duplicate the "config->align" information and the @@ -294,4 +312,4 @@ int lib_ring_buffer_check_config(const struct lib_ring_buffer_config *config, #include "../../wrapper/ringbuffer/vatomic.h" -#endif /* _LINUX_RING_BUFFER_CONFIG_H */ +#endif /* _LIB_RING_BUFFER_CONFIG_H */