From: Mathieu Desnoyers Date: Mon, 8 Mar 2021 17:51:06 +0000 (-0500) Subject: Remove unused ring buffer client callbacks symbols X-Git-Tag: v2.13.0-rc1~343 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=36305169cda8bb2758f9a03003481bc3ac842d93;p=lttng-ust.git Remove unused ring buffer client callbacks symbols This is an API change but the major SONAME bump to '1' gives us the opportunity to remove symbols which are unused. Signed-off-by: Mathieu Desnoyers Change-Id: Ifa147982cc520a3ef3c5fd6f09857ece27e769a3 --- diff --git a/liblttng-ust/lttng-ring-buffer-client-discard-rt.c b/liblttng-ust/lttng-ring-buffer-client-discard-rt.c index c895e185..425515b6 100644 --- a/liblttng-ust/lttng-ring-buffer-client-discard-rt.c +++ b/liblttng-ust/lttng-ring-buffer-client-discard-rt.c @@ -16,6 +16,5 @@ #define RING_BUFFER_MODE_TEMPLATE_EXIT \ lttng_ring_buffer_client_discard_rt_exit #define LTTNG_CLIENT_TYPE LTTNG_CLIENT_DISCARD_RT -#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_discard_rt #define LTTNG_CLIENT_WAKEUP RING_BUFFER_WAKEUP_BY_TIMER #include "lttng-ring-buffer-client.h" diff --git a/liblttng-ust/lttng-ring-buffer-client-discard.c b/liblttng-ust/lttng-ring-buffer-client-discard.c index 28d9d34f..954303a8 100644 --- a/liblttng-ust/lttng-ring-buffer-client-discard.c +++ b/liblttng-ust/lttng-ring-buffer-client-discard.c @@ -16,6 +16,5 @@ #define RING_BUFFER_MODE_TEMPLATE_EXIT \ lttng_ring_buffer_client_discard_exit #define LTTNG_CLIENT_TYPE LTTNG_CLIENT_DISCARD -#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_discard #define LTTNG_CLIENT_WAKEUP RING_BUFFER_WAKEUP_BY_WRITER #include "lttng-ring-buffer-client.h" diff --git a/liblttng-ust/lttng-ring-buffer-client-overwrite-rt.c b/liblttng-ust/lttng-ring-buffer-client-overwrite-rt.c index 7a6ffe75..da568ee5 100644 --- a/liblttng-ust/lttng-ring-buffer-client-overwrite-rt.c +++ b/liblttng-ust/lttng-ring-buffer-client-overwrite-rt.c @@ -16,6 +16,5 @@ #define RING_BUFFER_MODE_TEMPLATE_EXIT \ lttng_ring_buffer_client_overwrite_rt_exit #define LTTNG_CLIENT_TYPE LTTNG_CLIENT_OVERWRITE_RT -#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_overwrite_rt #define LTTNG_CLIENT_WAKEUP RING_BUFFER_WAKEUP_BY_TIMER #include "lttng-ring-buffer-client.h" diff --git a/liblttng-ust/lttng-ring-buffer-client-overwrite.c b/liblttng-ust/lttng-ring-buffer-client-overwrite.c index daf27833..712e882c 100644 --- a/liblttng-ust/lttng-ring-buffer-client-overwrite.c +++ b/liblttng-ust/lttng-ring-buffer-client-overwrite.c @@ -16,6 +16,5 @@ #define RING_BUFFER_MODE_TEMPLATE_EXIT \ lttng_ring_buffer_client_overwrite_exit #define LTTNG_CLIENT_TYPE LTTNG_CLIENT_OVERWRITE -#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_overwrite #define LTTNG_CLIENT_WAKEUP RING_BUFFER_WAKEUP_BY_WRITER #include "lttng-ring-buffer-client.h" diff --git a/liblttng-ust/lttng-ring-buffer-client.h b/liblttng-ust/lttng-ring-buffer-client.h index 79786af2..40153663 100644 --- a/liblttng-ust/lttng-ring-buffer-client.h +++ b/liblttng-ust/lttng-ring-buffer-client.h @@ -659,8 +659,6 @@ static const struct lttng_ust_lib_ring_buffer_config client_config = { .cb_ptr = &client_cb.parent, }; -const struct lttng_ust_client_lib_ring_buffer_client_cb *LTTNG_CLIENT_CALLBACKS = &client_cb; - static struct lttng_channel *_channel_create(const char *name, void *buf_addr, diff --git a/liblttng-ust/lttng-ring-buffer-metadata-client.c b/liblttng-ust/lttng-ring-buffer-metadata-client.c index 271a6ee5..46c5dbd3 100644 --- a/liblttng-ust/lttng-ring-buffer-metadata-client.c +++ b/liblttng-ust/lttng-ring-buffer-metadata-client.c @@ -16,5 +16,4 @@ #define RING_BUFFER_MODE_TEMPLATE_EXIT \ lttng_ring_buffer_metadata_client_exit #define LTTNG_CLIENT_TYPE LTTNG_CLIENT_METADATA -#define LTTNG_CLIENT_CALLBACKS lttng_client_callbacks_metadata #include "lttng-ring-buffer-metadata-client.h" diff --git a/liblttng-ust/lttng-ring-buffer-metadata-client.h b/liblttng-ust/lttng-ring-buffer-metadata-client.h index 98af8993..b3f0ac44 100644 --- a/liblttng-ust/lttng-ring-buffer-metadata-client.h +++ b/liblttng-ust/lttng-ring-buffer-metadata-client.h @@ -186,8 +186,6 @@ static const struct lttng_ust_lib_ring_buffer_config client_config = { .cb_ptr = &client_cb.parent, }; -const struct lttng_ust_client_lib_ring_buffer_client_cb *LTTNG_CLIENT_CALLBACKS = &client_cb; - static struct lttng_channel *_channel_create(const char *name, void *buf_addr,