noinst_HEADERS += \
compat/dlfcn.h \
+ compat/mmap.h \
compat/tid.h
# These headers should be moved to the public headers when tested and
ringbuffer/frontend_internal.h \
ringbuffer/frontend_types.h \
ringbuffer/getcpu.h \
- ringbuffer/mmap.h \
ringbuffer/nohz.h \
ringbuffer/rb-init.h \
ringbuffer/ring_buffer_backend.c \
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
+ */
+
+#ifndef _UST_COMMON_COMPAT_MMAP_H
+#define _UST_COMMON_COMPAT_MMAP_H
+
+#include <sys/mman.h>
+
+#if defined(__linux__) && defined(MAP_POPULATE)
+# define LTTNG_MAP_POPULATE MAP_POPULATE
+#else
+# define LTTNG_MAP_POPULATE 0
+#endif /* __linux__ && MAP_POPULATE */
+
+#endif /* _UST_COMMON_COMPAT_MMAP_H */
#include "common/macros.h"
#include "common/ust-fd.h"
-#include "common/ringbuffer/mmap.h"
+#include "common/compat/mmap.h"
/*
* Ensure we have the required amount of space available by writing 0
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
- */
-
-#ifndef _LTTNG_MMAP_H
-#define _LTTNG_MMAP_H
-
-#include <sys/mman.h>
-
-#if defined(__linux__) && defined(MAP_POPULATE)
-# define LTTNG_MAP_POPULATE MAP_POPULATE
-#else
-# define LTTNG_MAP_POPULATE 0
-#endif /* __linux__ && MAP_POPULATE */
-
-#endif /* _LTTNG_MMAP_H */
#include "common/macros.h"
#include "common/ust-fd.h"
-#include "mmap.h"
+#include "common/compat/mmap.h"
/*
* Ensure we have the required amount of space available by writing 0