Rename struct lttng_bytecode_runtime to struct lttng_kernel_bytecode_runtime
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 14:24:48 +0000 (10:24 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 May 2021 14:38:39 +0000 (10:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I14051998b44fde8aa94f72c227b89786d40ca4ff

include/lttng/events-internal.h
include/lttng/events.h
include/lttng/lttng-bytecode.h
src/lttng-bytecode-interpreter.c
src/lttng-bytecode.c
src/lttng-event-notifier-notification.c
src/lttng-events.c

index fa9cc35a1e84a73faddff507a4ed092e709948e5..2d5c4b12e47961a73e29a5139d9c3a920edeae65 100644 (file)
@@ -20,7 +20,7 @@ struct lttng_kernel_event_common_private {
        uint64_t user_token;
 
        int has_enablers_without_filter_bytecode;
-       /* list of struct lttng_bytecode_runtime, sorted by seqnum */
+       /* list of struct lttng_kernel_bytecode_runtime, sorted by seqnum */
        struct list_head filter_bytecode_runtime_head;
        enum lttng_kernel_abi_instrumentation instrumentation;
        /* Selected by instrumentation */
index 40f95dcf91b40b00e29b731da3b40b30bc473a4a..5b312d144c3ef7e492ffcdf5b47ae0d24cd26c51 100644 (file)
@@ -337,11 +337,11 @@ struct lttng_kernel_bytecode_node {
 
 struct lttng_interpreter_output;
 
-struct lttng_bytecode_runtime {
+struct lttng_kernel_bytecode_runtime {
        /* Associated bytecode */
        enum lttng_kernel_bytecode_type type;
        struct lttng_kernel_bytecode_node *bc;
-       int (*interpreter_func)(struct lttng_bytecode_runtime *kernel_bytecode,
+       int (*interpreter_func)(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
                                const char *interpreter_stack_data,
                                struct lttng_probe_ctx *lttng_probe_ctx,
                                void *caller_ctx);
index 6313b2cc179d973092a95ebb31605a06325782ab..1ffb115e82e21fa7c301b693ff9baae8dda9f19f 100644 (file)
@@ -34,9 +34,9 @@ do {                                                          \
 } while (0)
 #endif
 
-/* Linked bytecode. Child of struct lttng_bytecode_runtime. */
+/* Linked bytecode. Child of struct lttng_kernel_bytecode_runtime. */
 struct bytecode_runtime {
-       struct lttng_bytecode_runtime p;
+       struct lttng_kernel_bytecode_runtime p;
        size_t data_len;
        size_t data_alloc_len;
        char *data;
@@ -284,17 +284,17 @@ struct lttng_interpreter_output {
 
 const char *lttng_bytecode_print_op(enum bytecode_op op);
 
-void lttng_bytecode_sync_state(struct lttng_bytecode_runtime *runtime);
+void lttng_bytecode_sync_state(struct lttng_kernel_bytecode_runtime *runtime);
 int lttng_bytecode_validate(struct bytecode_runtime *bytecode);
 int lttng_bytecode_specialize(const struct lttng_kernel_event_desc *event_desc,
                struct bytecode_runtime *bytecode);
 
-int lttng_bytecode_interpret_error(struct lttng_bytecode_runtime *bytecode_runtime,
+int lttng_bytecode_interpret_error(struct lttng_kernel_bytecode_runtime *bytecode_runtime,
                const char *stack_data,
                struct lttng_probe_ctx *probe_ctx,
                void *ctx);
 
-int lttng_bytecode_interpret(struct lttng_bytecode_runtime *kernel_bytecode,
+int lttng_bytecode_interpret(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
                const char *interpreter_stack_data,
                struct lttng_probe_ctx *lttng_probe_ctx,
                void *caller_ctx);
index 8ffe2f41d14156aa9b2050b563519ce4a7f985f8..be0a32489e8c0bc725b75455eb5e6ab6a96a8a25 100644 (file)
@@ -209,7 +209,7 @@ int stack_strcmp(struct estack *stack, int top, const char *cmp_type)
 }
 
 int lttng_bytecode_interpret_error(
-       struct lttng_bytecode_runtime *bytecode_runtime __attribute__((unused)),
+       struct lttng_kernel_bytecode_runtime *bytecode_runtime __attribute__((unused)),
        const char *stack_data __attribute__((unused)),
        struct lttng_probe_ctx *probe_ctx __attribute__((unused)),
        void *ctx __attribute__((unused)))
@@ -756,7 +756,7 @@ void dbg_load_ref_user_str_printk(const struct estack_entry *user_str_reg)
  * For CAPTURE bytecode: expect a struct lttng_interpreter_output *
  * as @ctx argument.
  */
-int lttng_bytecode_interpret(struct lttng_bytecode_runtime *kernel_bytecode,
+int lttng_bytecode_interpret(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
                const char *interpreter_stack_data,
                struct lttng_probe_ctx *lttng_probe_ctx,
                void *caller_ctx)
@@ -1852,7 +1852,7 @@ int lttng_kernel_interpret_event_filter(const struct lttng_kernel_event_common *
                struct lttng_probe_ctx *probe_ctx,
                void *event_filter_ctx __attribute__((unused)))
 {
-       struct lttng_bytecode_runtime *filter_bc_runtime;
+       struct lttng_kernel_bytecode_runtime *filter_bc_runtime;
        struct list_head *filter_bytecode_runtime_head = &event->priv->filter_bytecode_runtime_head;
        struct lttng_kernel_bytecode_filter_ctx bytecode_filter_ctx;
        bool filter_record = false;
index 6ccd72c7cc8c664318f66fcb78b420f107af99d0..fbd9147f33031bcfe7abaabf79b0f87120dca956 100644 (file)
@@ -411,7 +411,7 @@ static
 int bytecode_is_linked(struct lttng_kernel_bytecode_node *bytecode,
                struct list_head *bytecode_runtime_head)
 {
-       struct lttng_bytecode_runtime *bc_runtime;
+       struct lttng_kernel_bytecode_runtime *bc_runtime;
 
        list_for_each_entry(bc_runtime, bytecode_runtime_head, node) {
                if (bc_runtime->bc == bytecode)
@@ -500,7 +500,7 @@ alloc_error:
        return ret;
 }
 
-void lttng_bytecode_sync_state(struct lttng_bytecode_runtime *runtime)
+void lttng_bytecode_sync_state(struct lttng_kernel_bytecode_runtime *runtime)
 {
        struct lttng_kernel_bytecode_node *bc = runtime->bc;
 
@@ -524,7 +524,7 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des
                struct list_head *enabler_bytecode_head)
 {
        struct lttng_kernel_bytecode_node *enabler_bc;
-       struct lttng_bytecode_runtime *runtime;
+       struct lttng_kernel_bytecode_runtime *runtime;
 
        WARN_ON_ONCE(!event_desc);
 
index 99ca8a292e72207563b3c3ae3b27d0f057c7316c..0ba566ba9c6810fc79f3d8126121b310dd03a580 100644 (file)
@@ -443,7 +443,7 @@ void lttng_event_notifier_notification_send(struct lttng_kernel_event_notifier *
        }
 
        if (unlikely(notif_ctx->eval_capture)) {
-               struct lttng_bytecode_runtime *capture_bc_runtime;
+               struct lttng_kernel_bytecode_runtime *capture_bc_runtime;
 
                /*
                 * Iterate over all the capture bytecodes. If the interpreter
index 354a2bc3dfdebd623360902c3c3cb120e9d13085..4cb0f037e174e8aea12dfca0d2cb6a47368d2a1e 100644 (file)
@@ -2677,7 +2677,7 @@ void lttng_session_sync_event_enablers(struct lttng_session *session)
        list_for_each_entry(event_recorder_priv, &session->events, node) {
                struct lttng_kernel_event_recorder *event_recorder = event_recorder_priv->pub;
                struct lttng_enabler_ref *enabler_ref;
-               struct lttng_bytecode_runtime *runtime;
+               struct lttng_kernel_bytecode_runtime *runtime;
                int enabled = 0, has_enablers_without_filter_bytecode = 0;
                int nr_filters = 0;
 
@@ -2771,7 +2771,7 @@ void lttng_event_notifier_group_sync_enablers(struct lttng_event_notifier_group
        list_for_each_entry(event_notifier_priv, &event_notifier_group->event_notifiers_head, node) {
                struct lttng_kernel_event_notifier *event_notifier = event_notifier_priv->pub;
                struct lttng_enabler_ref *enabler_ref;
-               struct lttng_bytecode_runtime *runtime;
+               struct lttng_kernel_bytecode_runtime *runtime;
                int enabled = 0, has_enablers_without_filter_bytecode = 0;
                int nr_filters = 0, nr_captures = 0;
 
This page took 0.030747 seconds and 4 git commands to generate.