bytecode: rename `lttng_filter_sync_state()` -> `lttng_bytecode_filter_sync_state()`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Mon, 27 Apr 2020 21:31:50 +0000 (17:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 26 Nov 2020 18:35:53 +0000 (13:35 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I8d6386a087d5df1844bd157af571c08f41d54a9b

include/lttng/ust-events.h
liblttng-ust/lttng-bytecode.c
liblttng-ust/lttng-bytecode.h
liblttng-ust/lttng-events.c

index 356fa3b045f995e7d7e6eeade11a744b38e05fc5..ae5ce5f636b9a5f91e56069e5166ce80bc029b35 100644 (file)
@@ -812,7 +812,6 @@ struct lttng_ust_field_iter *
        lttng_ust_field_list_get_iter_next(struct lttng_ust_field_list *list);
 
 void lttng_free_event_filter_runtime(struct lttng_event *event);
-void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime);
 
 struct cds_list_head *lttng_get_probe_list_head(void);
 int lttng_session_active(void);
@@ -848,6 +847,7 @@ 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);
 
 #ifdef __cplusplus
 }
index 9153674d81f268b032dcfdc273ba22ff37bfc819..47efdecafd25be983b0e4622f300cf0e6a9d3509 100644 (file)
@@ -493,7 +493,7 @@ alloc_error:
        return ret;
 }
 
-void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime)
+void lttng_bytecode_filter_sync_state(struct lttng_bytecode_runtime *runtime)
 {
        struct lttng_ust_bytecode_node *bc = runtime->bc;
 
@@ -590,3 +590,8 @@ 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)
+{
+}
index 4f1b88f1aa92a21ccda3d337eaebf631aebef14a..5742f7f5c34eae8cad45294494f73818add7f942 100644 (file)
@@ -331,6 +331,8 @@ struct lttng_interpreter_output {
 
 const char *print_op(enum bytecode_op op);
 
+void lttng_bytecode_filter_sync_state(struct lttng_bytecode_runtime *runtime);
+
 int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
 int lttng_bytecode_specialize(const struct lttng_event_desc *event_desc,
                struct bytecode_runtime *bytecode);
index 716a764e85ac0bcda00e6470e0fd55ffd9c3e150..d6d0642d8535c8867026326b339f08119648d1e1 100644 (file)
@@ -59,6 +59,7 @@
 
 #include "tracepoint-internal.h"
 #include "string-utils.h"
+#include "lttng-bytecode.h"
 #include "lttng-tracer.h"
 #include "lttng-tracer-core.h"
 #include "lttng-ust-statedump.h"
@@ -1635,7 +1636,7 @@ void lttng_session_sync_event_enablers(struct lttng_session *session)
                /* Enable filters */
                cds_list_for_each_entry(runtime,
                                &event->filter_bytecode_runtime_head, node) {
-                       lttng_filter_sync_state(runtime);
+                       lttng_bytecode_filter_sync_state(runtime);
                }
        }
        __tracepoint_probe_prune_release_queue();
@@ -1816,7 +1817,7 @@ void lttng_event_notifier_group_sync_enablers(struct lttng_event_notifier_group
                /* Enable filters */
                cds_list_for_each_entry(runtime,
                                &event_notifier->filter_bytecode_runtime_head, node) {
-                       lttng_filter_sync_state(runtime);
+                       lttng_bytecode_filter_sync_state(runtime);
                }
        }
        __tracepoint_probe_prune_release_queue();
This page took 0.030473 seconds and 4 git commands to generate.