For naming consistency of public headers.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: If01b2157c4e150b5bd7740348c9f7372ebf5ac97
lttng/ust-compiler.h \
lttng/ust-fork.h \
lttng/ust-endian.h \
- lttng/ringbuffer-context.h \
+ lttng/ust-ringbuffer-context.h \
lttng/ust-utils.h \
lttng/ust-error.h \
lttng/tracef.h \
+++ /dev/null
-/*
- * SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2010-2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * Ring buffer context header.
- */
-
-#ifndef _LTTNG_RING_BUFFER_CONTEXT_H
-#define _LTTNG_RING_BUFFER_CONTEXT_H
-
-#include <errno.h>
-#include <stdint.h>
-#include <stddef.h>
-#include <urcu/arch.h>
-#include <string.h>
-
-#include <lttng/ust-tracer.h>
-#include <lttng/ust-utils.h>
-#include <lttng/ust-compiler.h>
-
-struct lttng_ust_ring_buffer;
-struct lttng_ust_ring_buffer_channel;
-struct lttng_ust_ring_buffer_ctx;
-struct lttng_ust_ring_buffer_ctx_private;
-
-/*
- * ring buffer context
- *
- * IMPORTANT: this structure is part of the ABI between the probe and
- * UST. Fields need to be only added at the end, never reordered, never
- * removed.
- *
- * The field @struct_size should be used to determine the size of the
- * structure. It should be queried before using additional fields added
- * at the end of the structure.
- */
-struct lttng_ust_ring_buffer_ctx {
- uint32_t struct_size; /* Size of this structure. */
-
- void *client_priv; /* Ring buffer client private data */
- size_t data_size; /* size of payload */
- int largest_align; /*
- * alignment of the largest element
- * in the payload
- */
- void *ip; /* caller ip address */
-
- /* Private ring buffer context, set by reserve callback. */
- struct lttng_ust_ring_buffer_ctx_private *priv;
-
- /* End of base ABI. Fields below should be used after checking struct_size. */
-};
-
-/**
- * lttng_ust_ring_buffer_ctx_init - initialize ring buffer context
- * @ctx: ring buffer context to initialize
- * @client_priv: client private data
- * @data_size: size of record data payload
- * @largest_align: largest alignment within data payload types
- * @ip: caller ip address
- */
-static inline
-void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
- void *client_priv, size_t data_size, int largest_align,
- void *ip)
- lttng_ust_notrace;
-static inline
-void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
- void *client_priv, size_t data_size, int largest_align,
- void *ip)
-{
- ctx->struct_size = sizeof(struct lttng_ust_ring_buffer_ctx);
- ctx->client_priv = client_priv;
- ctx->data_size = data_size;
- ctx->largest_align = largest_align;
- ctx->ip = ip;
- ctx->priv = NULL;
-}
-
-/*
- * We need to define LTTNG_UST_RING_BUFFER_ALIGN_ATTR so it is known early at
- * compile-time. We have to duplicate the "config->align" information and the
- * definition here because config->align is used both in the slow and fast
- * paths, but LTTNG_UST_RING_BUFFER_ALIGN_ATTR is only available for the client
- * code.
- */
-#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
-
-# define LTTNG_UST_RING_BUFFER_ALIGN_ATTR /* Default arch alignment */
-
-/*
- * lttng_ust_ring_buffer_align - Calculate the offset needed to align the type.
- * @align_drift: object offset from an "alignment"-aligned address.
- * @size_of_type: Must be non-zero, power of 2.
- */
-static inline
-unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
- lttng_ust_notrace;
-static inline
-unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
-{
- return lttng_ust_offset_align(align_drift, size_of_type);
-}
-
-#else
-
-# define LTTNG_UST_RING_BUFFER_ALIGN_ATTR __attribute__((packed))
-
-/*
- * lttng_ust_ring_buffer_align - Calculate the offset needed to align the type.
- * @align_drift: object offset from an "alignment"-aligned address.
- * @size_of_type: Must be non-zero, power of 2.
- */
-static inline
-unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
- lttng_ust_notrace;
-static inline
-unsigned int lttng_ust_ring_buffer_align(size_t align_drift __attribute__((unused)),
- size_t size_of_type __attribute__((unused)))
-{
- /*
- * On architectures with efficient unaligned memory access, the content
- * of the ringbuffer is packed and so the offset is always zero.
- */
- return 0;
-}
-
-#endif
-
-#endif /* _LTTNG_RING_BUFFER_CONTEXT_H */
--- /dev/null
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright (C) 2010-2021 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * Ring buffer context header.
+ */
+
+#ifndef _LTTNG_UST_RING_BUFFER_CONTEXT_H
+#define _LTTNG_UST_RING_BUFFER_CONTEXT_H
+
+#include <errno.h>
+#include <stdint.h>
+#include <stddef.h>
+#include <urcu/arch.h>
+#include <string.h>
+
+#include <lttng/ust-tracer.h>
+#include <lttng/ust-utils.h>
+#include <lttng/ust-compiler.h>
+
+struct lttng_ust_ring_buffer;
+struct lttng_ust_ring_buffer_channel;
+struct lttng_ust_ring_buffer_ctx;
+struct lttng_ust_ring_buffer_ctx_private;
+
+/*
+ * ring buffer context
+ *
+ * IMPORTANT: this structure is part of the ABI between the probe and
+ * UST. Fields need to be only added at the end, never reordered, never
+ * removed.
+ *
+ * The field @struct_size should be used to determine the size of the
+ * structure. It should be queried before using additional fields added
+ * at the end of the structure.
+ */
+struct lttng_ust_ring_buffer_ctx {
+ uint32_t struct_size; /* Size of this structure. */
+
+ void *client_priv; /* Ring buffer client private data */
+ size_t data_size; /* size of payload */
+ int largest_align; /*
+ * alignment of the largest element
+ * in the payload
+ */
+ void *ip; /* caller ip address */
+
+ /* Private ring buffer context, set by reserve callback. */
+ struct lttng_ust_ring_buffer_ctx_private *priv;
+
+ /* End of base ABI. Fields below should be used after checking struct_size. */
+};
+
+/**
+ * lttng_ust_ring_buffer_ctx_init - initialize ring buffer context
+ * @ctx: ring buffer context to initialize
+ * @client_priv: client private data
+ * @data_size: size of record data payload
+ * @largest_align: largest alignment within data payload types
+ * @ip: caller ip address
+ */
+static inline
+void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
+ void *client_priv, size_t data_size, int largest_align,
+ void *ip)
+ lttng_ust_notrace;
+static inline
+void lttng_ust_ring_buffer_ctx_init(struct lttng_ust_ring_buffer_ctx *ctx,
+ void *client_priv, size_t data_size, int largest_align,
+ void *ip)
+{
+ ctx->struct_size = sizeof(struct lttng_ust_ring_buffer_ctx);
+ ctx->client_priv = client_priv;
+ ctx->data_size = data_size;
+ ctx->largest_align = largest_align;
+ ctx->ip = ip;
+ ctx->priv = NULL;
+}
+
+/*
+ * We need to define LTTNG_UST_RING_BUFFER_ALIGN_ATTR so it is known early at
+ * compile-time. We have to duplicate the "config->align" information and the
+ * definition here because config->align is used both in the slow and fast
+ * paths, but LTTNG_UST_RING_BUFFER_ALIGN_ATTR is only available for the client
+ * code.
+ */
+#ifdef LTTNG_UST_RING_BUFFER_NATURAL_ALIGN
+
+# define LTTNG_UST_RING_BUFFER_ALIGN_ATTR /* Default arch alignment */
+
+/*
+ * lttng_ust_ring_buffer_align - Calculate the offset needed to align the type.
+ * @align_drift: object offset from an "alignment"-aligned address.
+ * @size_of_type: Must be non-zero, power of 2.
+ */
+static inline
+unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
+ lttng_ust_notrace;
+static inline
+unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
+{
+ return lttng_ust_offset_align(align_drift, size_of_type);
+}
+
+#else
+
+# define LTTNG_UST_RING_BUFFER_ALIGN_ATTR __attribute__((packed))
+
+/*
+ * lttng_ust_ring_buffer_align - Calculate the offset needed to align the type.
+ * @align_drift: object offset from an "alignment"-aligned address.
+ * @size_of_type: Must be non-zero, power of 2.
+ */
+static inline
+unsigned int lttng_ust_ring_buffer_align(size_t align_drift, size_t size_of_type)
+ lttng_ust_notrace;
+static inline
+unsigned int lttng_ust_ring_buffer_align(size_t align_drift __attribute__((unused)),
+ size_t size_of_type __attribute__((unused)))
+{
+ /*
+ * On architectures with efficient unaligned memory access, the content
+ * of the ringbuffer is packed and so the offset is always zero.
+ */
+ return 0;
+}
+
+#endif
+
+#endif /* _LTTNG_UST_RING_BUFFER_CONTEXT_H */
#include <urcu/compiler.h>
#include <urcu/rculist.h>
#include <lttng/ust-events.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include <lttng/ust-arch.h>
#include <lttng/ust-compiler.h>
#include <lttng/tracepoint.h>
#include <unistd.h>
#include <urcu/compiler.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "ringbuffer-config.h"
#include "backend_types.h"
#include "frontend_types.h"
#include <stdint.h>
#include <pthread.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "ringbuffer-config.h"
#include "backend_types.h"
#include "backend_internal.h"
#include <urcu/list.h>
#include <urcu/uatomic.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "ringbuffer-config.h"
#include "common/logging.h"
#include "backend_types.h"
#include <limits.h>
#include <lttng/ust-utils.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "ringbuffer-config.h"
#include "vatomic.h"
#include "common/macros.h"
#include <lttng/ust-utils.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "smp.h"
#include "ringbuffer-config.h"
#include <string.h>
#include <inttypes.h>
#include <lttng/ust-events.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include <common/ust-context-provider.h>
#include "common/macros.h"
#include <lttng/ust-tracer.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "lttng-tracer-core.h"
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
#include "lib/lttng-ust/getcpu.h"
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include <lttng/ust-tracer.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "lttng-tracer-core.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/ns.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
#include <lttng/ust-arch.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include <urcu/system.h>
#include <urcu/arch.h>
#include <urcu/rculist.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/ns.h"
#include <stddef.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include <urcu/tls-compat.h>
#include <assert.h>
#include "common/compat/pthread.h"
#include <pthread.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
#include "lttng-tracer-core.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/ns.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "common/compat/tid.h"
#include <urcu/tls-compat.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "context-internal.h"
#include "common/creds.h"
#include <urcu/arch.h>
#include <urcu/list.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
#include "common/logging.h"
struct lttng_ust_session;
#include "ust_tests_hello.h"
#include <lttng/ust-events.h>
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
/* Internal header. */
#include <common/ust-context-provider.h>