Move it to libcounter/.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I28891c708d105c933bbe2c3cf656c7b7b6e6e550
lttng/ust-clock.h \
lttng/ust-getcpu.h \
lttng/ust-elf.h \
- lttng/counter-config.h \
lttng/ust-libc-wrapper.h \
lttng/urcu/pointer.h \
lttng/urcu/urcu-ust.h \
+++ /dev/null
-/*
- * SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * LTTng Counters Configuration
- */
-
-#ifndef _LTTNG_COUNTER_CONFIG_H
-#define _LTTNG_COUNTER_CONFIG_H
-
-#include <stdint.h>
-
-enum lib_counter_config_alloc {
- COUNTER_ALLOC_PER_CPU = (1 << 0),
- COUNTER_ALLOC_GLOBAL = (1 << 1),
-};
-
-enum lib_counter_config_sync {
- COUNTER_SYNC_PER_CPU,
- COUNTER_SYNC_GLOBAL,
-};
-
-struct lib_counter_config {
- uint32_t alloc; /* enum lib_counter_config_alloc flags */
- enum lib_counter_config_sync sync;
- enum {
- COUNTER_ARITHMETIC_MODULAR,
- COUNTER_ARITHMETIC_SATURATE, /* TODO */
- } arithmetic;
- enum {
- COUNTER_SIZE_8_BIT = 1,
- COUNTER_SIZE_16_BIT = 2,
- COUNTER_SIZE_32_BIT = 4,
- COUNTER_SIZE_64_BIT = 8,
- } counter_size;
-};
-
-#endif /* _LTTNG_COUNTER_CONFIG_H */
libcounter_la_SOURCES = \
counter.c smp.c smp.h shm.c shm.h shm_internal.h shm_types.h \
- counter-api.h counter.h counter-internal.h counter-types.h
+ counter-api.h counter.h counter-internal.h counter-types.h \
+ counter-config.h
libcounter_la_LIBADD = \
-lpthread \
--- /dev/null
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * LTTng Counters Configuration
+ */
+
+#ifndef _LTTNG_COUNTER_CONFIG_H
+#define _LTTNG_COUNTER_CONFIG_H
+
+#include <stdint.h>
+
+enum lib_counter_config_alloc {
+ COUNTER_ALLOC_PER_CPU = (1 << 0),
+ COUNTER_ALLOC_GLOBAL = (1 << 1),
+};
+
+enum lib_counter_config_sync {
+ COUNTER_SYNC_PER_CPU,
+ COUNTER_SYNC_GLOBAL,
+};
+
+struct lib_counter_config {
+ uint32_t alloc; /* enum lib_counter_config_alloc flags */
+ enum lib_counter_config_sync sync;
+ enum {
+ COUNTER_ARITHMETIC_MODULAR,
+ COUNTER_ARITHMETIC_SATURATE, /* TODO */
+ } arithmetic;
+ enum {
+ COUNTER_SIZE_8_BIT = 1,
+ COUNTER_SIZE_16_BIT = 2,
+ COUNTER_SIZE_32_BIT = 4,
+ COUNTER_SIZE_64_BIT = 8,
+ } counter_size;
+};
+
+#endif /* _LTTNG_COUNTER_CONFIG_H */
#include <stddef.h>
#include <stdbool.h>
#include <sys/types.h>
-#include <lttng/counter-config.h>
+#include "counter-config.h"
#include <lttng/ust-config.h>
#include "shm_types.h"