From 4cf84528f9620f27677bda5b2e486144913a2414 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 22 Feb 2022 17:59:16 -0500 Subject: [PATCH] Fix: liblttng-ctl: missing index allocator symbols MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit abidiff reports that 5 functions were erroneously removed by the 2.13.4 release. Those functions were initially erroneously exposed, but the symbols must be maintained to preserve the ABI of liblttng-ctl. abidiff report: 5 Removed functions: [D] 'function lttng_index_allocator_status lttng_index_allocator_alloc(lttng_index_allocator*, uint64_t*)' {lttng_index_allocator_alloc} [D] 'function lttng_index_allocator* lttng_index_allocator_create(uint64_t)' {lttng_index_allocator_create} [D] 'function void lttng_index_allocator_destroy(lttng_index_allocator*)' {lttng_index_allocator_destroy} [D] 'function uint64_t lttng_index_allocator_get_index_count(lttng_index_allocator*)' {lttng_index_allocator_get_index_count} [D] 'function lttng_index_allocator_status lttng_index_allocator_release(lttng_index_allocator*, uint64_t)' {lttng_index_allocator_release} Signed-off-by: Jérémie Galarneau Change-Id: I7d69a0526ccb9ba69ddfbad6955c81146bb83698 --- src/lib/lttng-ctl/deprecated-symbols.c | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/lib/lttng-ctl/deprecated-symbols.c b/src/lib/lttng-ctl/deprecated-symbols.c index 0ea802c5e..8b1a8e7a9 100644 --- a/src/lib/lttng-ctl/deprecated-symbols.c +++ b/src/lib/lttng-ctl/deprecated-symbols.c @@ -6,6 +6,7 @@ */ #include +#include /* * These are symbols that were erroneously exposed and have since been removed. @@ -21,3 +22,30 @@ const char * const config_element_pid_tracker; const char * const config_element_target_pid; const char * const config_element_targets; const char * const config_element_trackers; + +enum lttng_index_allocator_status lttng_index_allocator_alloc( + struct lttng_index_allocator*, uint64_t*) +{ + return LTTNG_INDEX_ALLOCATOR_STATUS_ERROR; +} + +struct lttng_index_allocator* lttng_index_allocator_create(uint64_t) +{ + return NULL; +} + +void lttng_index_allocator_destroy(struct lttng_index_allocator*) +{ +} + +uint64_t lttng_index_allocator_get_index_count( + struct lttng_index_allocator*) +{ + return -1ULL; +} + +enum lttng_index_allocator_status lttng_index_allocator_release( + struct lttng_index_allocator*, uint64_t) +{ + return LTTNG_INDEX_ALLOCATOR_STATUS_ERROR; +} -- 2.34.1