#include "../liblttng-ust/clock.h"
#include "../liblttng-ust/getenv.h"
#include "../liblttng-ust/lttng-tracer-core.h"
+#include "../liblttng-ust/lttng-counter-client.h"
#include "../libcounter/shm.h"
#include "../libcounter/smp.h"
extern void lttng_ring_buffer_client_discard_rt_exit(void);
extern void lttng_ring_buffer_metadata_client_exit(void);
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_32_modular_init(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_32_modular_exit(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_64_modular_init(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_64_modular_exit(void);
-
int ustctl_release_handle(int sock, int handle)
{
struct ustcomm_ust_msg lum;
lttng-ring-buffer-client-overwrite-rt.c \
lttng-ring-buffer-metadata-client.h \
lttng-ring-buffer-metadata-client.c \
+ lttng-counter-client.h \
lttng-counter-client-percpu-32-modular.c \
lttng-counter-client-percpu-64-modular.c \
lttng-clock.c lttng-getcpu.c
#include "../libcounter/counter.h"
#include "../libcounter/counter-api.h"
#include "lttng-tracer-core.h"
+#include "lttng-counter-client.h"
static const struct lib_counter_config client_config = {
.alloc = COUNTER_ALLOC_PER_CPU,
#include "../libcounter/counter.h"
#include "../libcounter/counter-api.h"
#include "lttng-tracer-core.h"
+#include "lttng-counter-client.h"
static const struct lib_counter_config client_config = {
.alloc = COUNTER_ALLOC_PER_CPU,
--- /dev/null
+/*
+ * SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
+ *
+ * Copyright (C) 2020 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * LTTng lib counter client.
+ */
+
+#ifndef _LTTNG_UST_COUNTER_CLIENT_H
+#define _LTTNG_UST_COUNTER_CLIENT_H
+
+/*
+ * These symbol are part of the private ABI between liblttng-ust and
+ * liblttng-ust-ctl.
+ */
+void lttng_counter_client_percpu_32_modular_init(void);
+void lttng_counter_client_percpu_32_modular_exit(void);
+void lttng_counter_client_percpu_64_modular_init(void);
+void lttng_counter_client_percpu_64_modular_exit(void);
+
+#endif
#include "ust-events-internal.h"
#include "context-internal.h"
#include "ust-compat.h"
+#include "lttng-counter-client.h"
/*
* Has lttng ust comm constructor been called ?
extern void lttng_ring_buffer_client_discard_rt_exit(void);
extern void lttng_ring_buffer_metadata_client_exit(void);
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_32_modular_init(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_32_modular_exit(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_64_modular_init(void);
-
-__attribute__((visibility("hidden")))
-extern void lttng_counter_client_percpu_64_modular_exit(void);
-
static char *get_map_shm(struct sock_info *sock_info);
ssize_t lttng_ust_read(int fd, void *buf, size_t len)
#include <stddef.h>
#include <stdlib.h>
+#include "context-internal.h"
#include "ust-events-internal.h"
#include <usterr-signal-safe.h>
#include "lttng-tracer-core.h"