From: Francis Deslauriers Date: Wed, 13 May 2020 14:36:00 +0000 (-0400) Subject: bytecode: rename `lttng_filter_sync_state()` -> `lttng_bytecode_filter_sync_state()` X-Git-Tag: v2.13.0-rc1~95 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0b365677b4b159fa9aa2b98eb19f10f4a762fbe8;p=lttng-modules.git bytecode: rename `lttng_filter_sync_state()` -> `lttng_bytecode_filter_sync_state()` Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I2d63001ed633236a98eba6398ad06fccf83fde2c --- diff --git a/include/lttng/events.h b/include/lttng/events.h index 20c08cf8..5393f196 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -893,7 +893,6 @@ static inline int lttng_syscall_filter_disable_event_notifier( #endif -void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime); int lttng_event_enabler_attach_filter_bytecode(struct lttng_event_enabler *event_enabler, struct lttng_kernel_filter_bytecode __user *bytecode); int lttng_event_notifier_enabler_attach_filter_bytecode( diff --git a/include/lttng/lttng-bytecode.h b/include/lttng/lttng-bytecode.h index 3cbb7b10..79a562bf 100644 --- a/include/lttng/lttng-bytecode.h +++ b/include/lttng/lttng-bytecode.h @@ -281,6 +281,7 @@ struct lttng_interpreter_output { const char *lttng_bytecode_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); diff --git a/src/lttng-bytecode.c b/src/lttng-bytecode.c index 79c581c8..664a6aee 100644 --- a/src/lttng-bytecode.c +++ b/src/lttng-bytecode.c @@ -467,7 +467,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_bytecode_node *bc = runtime->bc; diff --git a/src/lttng-events.c b/src/lttng-events.c index c8cf7621..54d7a0d0 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -2480,7 +2481,7 @@ void lttng_session_sync_event_enablers(struct lttng_session *session) /* Enable filters */ list_for_each_entry(runtime, &event->filter_bytecode_runtime_head, node) - lttng_filter_sync_state(runtime); + lttng_bytecode_filter_sync_state(runtime); } } @@ -2563,7 +2564,7 @@ void lttng_event_notifier_group_sync_enablers(struct lttng_event_notifier_group /* Enable filters */ list_for_each_entry(runtime, &event_notifier->filter_bytecode_runtime_head, node) - lttng_filter_sync_state(runtime); + lttng_bytecode_filter_sync_state(runtime); } }