From: Mathieu Desnoyers Date: Thu, 9 May 2024 17:46:07 +0000 (-0400) Subject: lttng-bytecode: Remove dead code X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=539d4a7cf688ed179eb97a6de481fa10e77616ba;p=lttng-modules.git lttng-bytecode: Remove dead code Functions lttng_filter_enabler_attach_bytecode and lttng_free_enabler_filter_bytecode are unused since the refactoring of lttng 2.13. Remove them. Signed-off-by: Mathieu Desnoyers Change-Id: I2abbb3906cdb5c1b7fa9c27c7871a51af7697832 --- diff --git a/src/lttng-bytecode.c b/src/lttng-bytecode.c index 7708293e..3d283268 100644 --- a/src/lttng-bytecode.c +++ b/src/lttng-bytecode.c @@ -596,26 +596,6 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des } } -/* - * We own the filter_bytecode if we return success. - */ -int lttng_filter_enabler_attach_bytecode(struct lttng_event_enabler_common *enabler, - struct lttng_kernel_bytecode_node *filter_bytecode) -{ - list_add(&filter_bytecode->node, &enabler->filter_bytecode_head); - return 0; -} - -void lttng_free_enabler_filter_bytecode(struct lttng_event_enabler_common *enabler) -{ - struct lttng_kernel_bytecode_node *filter_bytecode, *tmp; - - list_for_each_entry_safe(filter_bytecode, tmp, - &enabler->filter_bytecode_head, node) { - kfree(filter_bytecode); - } -} - void lttng_free_event_filter_runtime(struct lttng_kernel_event_common *event) { struct bytecode_runtime *runtime, *tmp;