From b246453617a1665c64289c33a10dc3f31b1a1158 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 23 Feb 2021 15:40:42 -0500 Subject: [PATCH] Cleanup: Remove deprecated symbols following soname major version bump Signed-off-by: Mathieu Desnoyers Change-Id: I7a468395c11c1c5dfb83ef4bd16e9c38413415c5 --- include/lttng/ust-events.h | 25 ------------------------- liblttng-ust/lttng-bytecode.c | 5 ----- liblttng-ust/lttng-context.c | 16 ---------------- liblttng-ust/lttng-probes.c | 12 ------------ 4 files changed, 58 deletions(-) diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 98513891..9dc5c9e7 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -890,31 +890,6 @@ struct lttng_enum *lttng_ust_enum_get_from_desc(struct lttng_session *session, void lttng_ust_dl_update(void *ip); void lttng_ust_fixup_fd_tracker_tls(void); -/* For backward compatibility. Leave those exported symbols in place. */ -extern struct lttng_ctx *lttng_static_ctx; -struct lttng_ust_filter_bytecode_node; -struct lttng_ust_excluder_node; -void lttng_context_init(void); -void lttng_context_exit(void); -void lttng_filter_event_link_bytecode(struct lttng_event *event); -struct lttng_enabler *lttng_enabler_create( - enum lttng_enabler_format_type format_type, - struct lttng_ust_event *event_param, - struct lttng_channel *chan); -int lttng_enabler_enable(struct lttng_enabler *enabler); -int lttng_enabler_disable(struct lttng_enabler *enabler); -int lttng_enabler_attach_bytecode(struct lttng_enabler *enabler, - struct lttng_ust_filter_bytecode_node *bytecode); -int lttng_enabler_attach_context(struct lttng_enabler *enabler, - struct lttng_ust_context *ctx); -int lttng_enabler_attach_exclusion(struct lttng_enabler *enabler, - struct lttng_ust_excluder_node *excluder); -void lttng_enabler_event_link_bytecode(struct lttng_event *event, - struct lttng_enabler *enabler); -void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime); -int lttng_session_context_init(struct lttng_ctx **ctx); - - #ifdef __cplusplus } #endif diff --git a/liblttng-ust/lttng-bytecode.c b/liblttng-ust/lttng-bytecode.c index a30dd182..ca8914ed 100644 --- a/liblttng-ust/lttng-bytecode.c +++ b/liblttng-ust/lttng-bytecode.c @@ -632,8 +632,3 @@ void lttng_free_event_notifier_filter_runtime( { free_filter_runtime(&event_notifier->filter_bytecode_runtime_head); } - -/* For backward compatibility. Leave those exported symbols in place. */ -void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime) -{ -} diff --git a/liblttng-ust/lttng-context.c b/liblttng-ust/lttng-context.c index fde3607d..e441d4ae 100644 --- a/liblttng-ust/lttng-context.c +++ b/liblttng-ust/lttng-context.c @@ -509,19 +509,3 @@ error: lttng_destroy_context(*ctx); return ret; } - -/* For backward compatibility. Leave those exported symbols in place. */ -struct lttng_ctx *lttng_static_ctx; - -void lttng_context_init(void) -{ -} - -void lttng_context_exit(void) -{ -} - -int lttng_session_context_init(struct lttng_ctx **ctx) -{ - return 0; -} diff --git a/liblttng-ust/lttng-probes.c b/liblttng-ust/lttng-probes.c index e328e2c0..8fba8adf 100644 --- a/liblttng-ust/lttng-probes.c +++ b/liblttng-ust/lttng-probes.c @@ -211,12 +211,6 @@ int lttng_probe_register(struct lttng_probe_desc *desc) return ret; } -/* Backward compatibility with UST 2.0 */ -int ltt_probe_register(struct lttng_probe_desc *desc) -{ - return lttng_probe_register(desc); -} - void lttng_probe_unregister(struct lttng_probe_desc *desc) { lttng_ust_fixup_tls(); @@ -236,12 +230,6 @@ void lttng_probe_unregister(struct lttng_probe_desc *desc) ust_unlock(); } -/* Backward compatibility with UST 2.0 */ -void ltt_probe_unregister(struct lttng_probe_desc *desc) -{ - lttng_probe_unregister(desc); -} - void lttng_probes_prune_event_list(struct lttng_ust_tracepoint_list *list) { struct tp_list_entry *list_entry, *tmp; -- 2.34.1