noinst_HEADERS = \
usterr-signal-safe.h \
- ust_snprintf.h \
+ ust-snprintf.h \
ust-comm.h \
ust-fd.h \
ust-tid.h \
ust-dlfcn.h \
ust-dynamic-type.h \
ust-context-provider.h \
- helper.h \
- share.h
+ ust-helper.h \
+ ust-share.h
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-only
- *
- * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- */
-
-#ifndef _LTTNG_UST_HELPER_H
-#define _LTTNG_UST_HELPER_H
-
-#include <stdlib.h>
-
-static inline __attribute__((always_inline))
-void *zmalloc(size_t len)
-{
- return calloc(len, 1);
-}
-
-#define max_t(type, x, y) \
- ({ \
- type __max1 = (x); \
- type __max2 = (y); \
- __max1 > __max2 ? __max1: __max2; \
- })
-
-#define min_t(type, x, y) \
- ({ \
- type __min1 = (x); \
- type __min2 = (y); \
- __min1 <= __min2 ? __min1: __min2; \
- })
-
-#define LTTNG_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-
-/*
- * Use of __builtin_return_address(0) sometimes seems to cause stack
- * corruption on 32-bit PowerPC. Disable this feature on that
- * architecture for now by always using the NULL value for the ip
- * context.
- */
-#if defined(__PPC__) && !defined(__PPC64__)
-#define LTTNG_UST_CALLER_IP() NULL
-#else /* #if defined(__PPC__) && !defined(__PPC64__) */
-#define LTTNG_UST_CALLER_IP() __builtin_return_address(0)
-#endif /* #else #if defined(__PPC__) && !defined(__PPC64__) */
-
-/*
- * LTTNG_HIDDEN: set the hidden attribute for internal functions
- * On Windows, symbols are local unless explicitly exported,
- * see https://gcc.gnu.org/wiki/Visibility
- */
-#if defined(_WIN32) || defined(__CYGWIN__)
-#define LTTNG_HIDDEN
-#else
-#define LTTNG_HIDDEN __attribute__((visibility("hidden")))
-#endif
-
-#endif /* _LTTNG_UST_HELPER_H */
+++ /dev/null
-/*
- * SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- */
-
-#ifndef _LTTNG_SHARE_H
-#define _LTTNG_SHARE_H
-
-#include <stdlib.h>
-#include <sys/uio.h>
-
-#include "helper.h"
-
-/* Should be hidden but would break the ABI */
-ssize_t patient_write(int fd, const void *buf, size_t count);
-LTTNG_HIDDEN
-ssize_t patient_writev(int fd, struct iovec *iov, int iovcnt);
-/* Should be hidden but would break the ABI */
-ssize_t patient_send(int fd, const void *buf, size_t count, int flags);
-
-#endif /* _LTTNG_SHARE_H */
#include <lttng/ust-error.h>
#include <lttng/ust-compiler.h>
#include <lttng/ust-ctl.h>
-#include "helper.h"
+#include "ust-helper.h"
#ifndef LTTNG_PACKED
#error "LTTNG_PACKED should be defined"
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-only
+ *
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#ifndef _LTTNG_UST_HELPER_H
+#define _LTTNG_UST_HELPER_H
+
+#include <stdlib.h>
+
+static inline __attribute__((always_inline))
+void *zmalloc(size_t len)
+{
+ return calloc(len, 1);
+}
+
+#define max_t(type, x, y) \
+ ({ \
+ type __max1 = (x); \
+ type __max2 = (y); \
+ __max1 > __max2 ? __max1: __max2; \
+ })
+
+#define min_t(type, x, y) \
+ ({ \
+ type __min1 = (x); \
+ type __min2 = (y); \
+ __min1 <= __min2 ? __min1: __min2; \
+ })
+
+#define LTTNG_ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+/*
+ * Use of __builtin_return_address(0) sometimes seems to cause stack
+ * corruption on 32-bit PowerPC. Disable this feature on that
+ * architecture for now by always using the NULL value for the ip
+ * context.
+ */
+#if defined(__PPC__) && !defined(__PPC64__)
+#define LTTNG_UST_CALLER_IP() NULL
+#else /* #if defined(__PPC__) && !defined(__PPC64__) */
+#define LTTNG_UST_CALLER_IP() __builtin_return_address(0)
+#endif /* #else #if defined(__PPC__) && !defined(__PPC64__) */
+
+/*
+ * LTTNG_HIDDEN: set the hidden attribute for internal functions
+ * On Windows, symbols are local unless explicitly exported,
+ * see https://gcc.gnu.org/wiki/Visibility
+ */
+#if defined(_WIN32) || defined(__CYGWIN__)
+#define LTTNG_HIDDEN
+#else
+#define LTTNG_HIDDEN __attribute__((visibility("hidden")))
+#endif
+
+#endif /* _LTTNG_UST_HELPER_H */
--- /dev/null
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ */
+
+#ifndef _LTTNG_SHARE_H
+#define _LTTNG_SHARE_H
+
+#include <stdlib.h>
+#include <sys/uio.h>
+
+#include "ust-helper.h"
+
+/* Should be hidden but would break the ABI */
+ssize_t patient_write(int fd, const void *buf, size_t count);
+LTTNG_HIDDEN
+ssize_t patient_writev(int fd, struct iovec *iov, int iovcnt);
+/* Should be hidden but would break the ABI */
+ssize_t patient_send(int fd, const void *buf, size_t count, int flags);
+
+#endif /* _LTTNG_SHARE_H */
--- /dev/null
+/*
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ *
+ * Copyright (C) 2009 Pierre-Marc Fournier
+ */
+
+#ifndef UST_SNPRINTF
+#define UST_SNPRINTF
+
+#include <stdarg.h>
+#include <stddef.h>
+
+extern int ust_safe_vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
+extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...);
+
+#endif /* UST_SNPRINTF */
+++ /dev/null
-/*
- * SPDX-License-Identifier: LGPL-2.1-or-later
- *
- * Copyright (C) 2009 Pierre-Marc Fournier
- */
-
-#ifndef UST_SNPRINTF
-#define UST_SNPRINTF
-
-#include <stdarg.h>
-#include <stddef.h>
-
-extern int ust_safe_vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
-extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...);
-
-#endif /* UST_SNPRINTF */
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
-#include <share.h>
+#include <ust-share.h>
#include "ust-tid.h"
enum ust_loglevel {
#include <urcu/system.h>
#include <urcu/compiler.h>
#include <stdbool.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/align.h>
#include "smp.h"
#include "shm.h"
#include <stdint.h>
#include <lttng/ust-config.h>
#include "counter-types.h"
-#include "helper.h"
+#include "ust-helper.h"
/* max_nr_elem is for each dimension. */
LTTNG_HIDDEN
#include <numa.h>
#include <numaif.h>
#endif
-#include <helper.h>
+#include <ust-helper.h>
#include <ust-fd.h>
#include "../libringbuffer/mmap.h"
#include <usterr-signal-safe.h>
#include <urcu/compiler.h>
#include "shm_types.h"
-#include "helper.h"
+#include "ust-helper.h"
/* lttng_counter_handle_create - for UST. */
extern
#ifndef _LIBCOUNTER_SMP_H
#define _LIBCOUNTER_SMP_H
-#include "helper.h"
+#include "ust-helper.h"
/*
* 4kB of per-cpu data available.
#include <lttng/ust-ctl.h>
#include <ust-comm.h>
#include <ust-fd.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/ust-error.h>
#include <lttng/ust-events.h>
#include <ust-dynamic-type.h>
#include <urcu/system.h>
#include <ust-fd.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/ust-error.h>
#include <usterr-signal-safe.h>
#include <lttng/ust-endian.h>
#include <usterr-signal-safe.h>
#include <ust-comm.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "../libringbuffer/backend.h"
#include "../libringbuffer/frontend.h"
#include <ust-dlfcn.h>
#include <lttng/ust-elf.h>
#include <lttng/ust-events.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "usterr-signal-safe.h"
/* Include link.h last else it conflicts with ust-dlfcn. */
#include <ust-fd.h>
#include <dlfcn.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "usterr-signal-safe.h"
static int (*__lttng_ust_fd_plibc_close)(int fd);
#include <lttng/ringbuffer-config.h>
#include <ust-context-provider.h>
-#include "helper.h"
+#include "ust-helper.h"
#include "lttng_ust_context.h"
enum lttng_ust_jni_type {
#include <urcu/tls-compat.h>
#include <urcu/arch.h>
#include <lttng/align.h>
-#include <helper.h>
+#include <ust-helper.h>
#define TRACEPOINT_DEFINE
#define TRACEPOINT_CREATE_PROBES
* libc.
*/
#include <ust-dlfcn.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <pthread.h>
#define TRACEPOINT_DEFINE
#define _LTTNG_UST_CONTEXT_INTERNAL_H
#include <lttng/ust-events.h>
-#include "helper.h"
+#include "ust-helper.h"
LTTNG_HIDDEN
int lttng_context_init_all(struct lttng_ctx **ctx);
#include <stddef.h>
#include <lttng/ust-events.h>
-#include "helper.h"
+#include "ust-helper.h"
LTTNG_HIDDEN
void lttng_ust_context_set_event_notifier_group_provider(const char *name,
#include "../libmsgpack/msgpack.h"
#include "lttng-bytecode.h"
-#include "share.h"
+#include "ust-share.h"
/*
* We want this write to be atomic AND non-blocking, meaning that we
#include <time.h>
#include <sys/syscall.h>
-#include "helper.h"
+#include "ust-helper.h"
#ifdef __cplusplus
extern "C" {
#include <stddef.h>
#include <sys/types.h>
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "getenv.h"
enum lttng_env_secure {
#include <errno.h>
#include <stdio.h>
#include <stdbool.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/ust-events.h>
#include <ust-context-provider.h>
#include <stdint.h>
#include <urcu/system.h>
#include <urcu/arch.h>
#include <urcu/rculist.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <urcu/ref.h>
#include <usterr-signal-safe.h>
#include <signal.h>
#include "lttng-tracer-core.h"
#include "jhash.h"
#include "context-provider-internal.h"
-#include <helper.h>
+#include <ust-helper.h>
#define CONTEXT_PROVIDER_HT_BITS 12
#define CONTEXT_PROVIDER_HT_SIZE (1U << CONTEXT_PROVIDER_HT_BITS)
#include <ust-context-provider.h>
#include <lttng/urcu/pointer.h>
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include <lttng/ust-events.h>
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/ust-ctl.h>
#include <ust-comm.h>
#include <ust-fd.h>
#include <lttng/tracepoint.h>
#include "tracepoint-internal.h"
#include <assert.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <ctype.h>
#include "lttng-tracer-core.h"
#include <lttng/bug.h>
#include <lttng/ringbuffer-config.h>
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
/*
* The longuest possible namespace proc path is with the cgroup ns
#include <urcu/compiler.h>
#include <urcu/list.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/tracepoint.h>
#include <lttng/ust-abi.h>
#include <lttng/ust-error.h>
#include <ust-comm.h>
#include <ust-fd.h>
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "tracepoint-internal.h"
#include "lttng-tracer-core.h"
#include "compat.h"
#include <stddef.h>
#include <inttypes.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <ust-dynamic-type.h>
#define ctf_enum_value(_string, _value) \
#define _LGPL_SOURCE
#include <fcntl.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/align.h>
#include <lttng/ust-elf.h>
#include <stdbool.h>
#include <unistd.h>
#include <lttng/ust-elf.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "lttng-tracer-core.h"
#include "lttng-ust-statedump.h"
#include "jhash.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include "helper.h"
+#include "ust-helper.h"
#ifdef DEBUG
#define dbg_printf(fmt, args...) printf("[debug lttng-ust rculfhash] " fmt, ## args)
#include <stdint.h>
#include <pthread.h>
#include <urcu/compiler.h>
-#include "helper.h"
+#include "ust-helper.h"
#ifdef __cplusplus
extern "C" {
#define _LGPL_SOURCE
#include <stdio.h>
-#include <helper.h>
+#include <ust-helper.h>
#define TRACEPOINT_CREATE_PROBES
#define TRACEPOINT_DEFINE
#define _LGPL_SOURCE
#include <stdio.h>
-#include <helper.h>
+#include <ust-helper.h>
#define TRACEPOINT_CREATE_PROBES
#define TRACEPOINT_DEFINE
#include <lttng/ust-abi.h> /* for LTTNG_UST_SYM_NAME_LEN */
#include <usterr-signal-safe.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "tracepoint-internal.h"
#include "lttng-tracer-core.h"
#include <urcu/list.h>
#include <urcu/hlist.h>
-#include <helper.h>
+#include <ust-helper.h>
#include <lttng/ust-events.h>
struct lttng_event_enabler {
#include <linux/types.h>
#else /* __KERNEL__ */
#include <stdint.h>
-#include "helper.h"
+#include "ust-helper.h"
#endif /* __KERNEL__ */
struct lttng_msgpack_writer {
#include <urcu/ref.h>
#include <urcu/tls-compat.h>
#include <poll.h>
-#include <helper.h>
+#include <ust-helper.h>
#include "smp.h"
#include <lttng/ringbuffer-config.h>
#include <numa.h>
#include <numaif.h>
#endif
-#include <helper.h>
+#include <ust-helper.h>
#include <ust-fd.h>
#include "mmap.h"
#include <errno.h>
-#include <share.h>
+#include <ust-share.h>
/*
* This write is patient because it restarts if it was incomplete.
#include <string.h>
#include <stdarg.h>
#include "local.h"
-#include "ust_snprintf.h"
+#include "ust-snprintf.h"
#define DUMMY_LEN 1
#include <stdio.h>
#include <string.h>
-#include "ust_snprintf.h"
+#include "ust-snprintf.h"
#include "tap.h"