Move context types to private header
[lttng-ust.git] / liblttng-ust / lttng-context-cpu-id.c
index 7a9dd5fd43b28cd46de3ed3d1047cc8522596cc2..2a8f2812338265040423f90883517ccb7511ca26 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * lttng-context-cpu-id.c
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2009-2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * LTTng UST CPU id context.
  *
@@ -8,25 +10,8 @@
  * statistical. For instance, even though a user might select a
  * cpu_id==1 filter, there may be few events recorded into the channel
  * appearing from other CPUs, due to migration.
- *
- * Copyright (C) 2009-2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * 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
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <stddef.h>
 #include <sys/types.h>
@@ -36,6 +21,8 @@
 #include <lttng/ringbuffer-config.h>
 #include "../libringbuffer/getcpu.h"
 
+#include "context-internal.h"
+
 static
 size_t cpu_id_get_size(struct lttng_ctx_field *field, size_t offset)
 {
This page took 0.024816 seconds and 4 git commands to generate.