Rename struct lttng_bytecode_node to struct lttng_kernel_bytecode_node
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 14:18:58 +0000 (10:18 -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: Ic00142968c7132d3a2b8292d426948dfbe1b0d88

include/lttng/events-internal.h
include/lttng/events.h
src/lttng-bytecode.c
src/lttng-events.c

index 5c1d356bf2f2bae07d0e9d3883286ec89f65c8c8..fa9cc35a1e84a73faddff507a4ed092e709948e5 100644 (file)
@@ -85,7 +85,7 @@ struct lttng_kernel_bytecode_filter_ctx {
 struct lttng_enabler {
        enum lttng_enabler_format_type format_type;
 
-       /* head list of struct lttng_bytecode_node */
+       /* head list of struct lttng_kernel_bytecode_node */
        struct list_head filter_bytecode_head;
 
        struct lttng_kernel_abi_event event_param;
@@ -106,7 +106,7 @@ struct lttng_event_notifier_enabler {
        struct list_head node;  /* List of event_notifier enablers */
        struct lttng_event_notifier_group *group;
 
-       /* head list of struct lttng_bytecode_node */
+       /* head list of struct lttng_kernel_bytecode_node */
        struct list_head capture_bytecode_head;
        uint64_t num_captures;
 };
index 122ebc9608e082baaeb08d5efe75e8fc4b965f79..40f95dcf91b40b00e29b731da3b40b30bc473a4a 100644 (file)
@@ -323,7 +323,7 @@ enum lttng_kernel_bytecode_type {
        LTTNG_KERNEL_BYTECODE_TYPE_CAPTURE,
 };
 
-struct lttng_bytecode_node {
+struct lttng_kernel_bytecode_node {
        enum lttng_kernel_bytecode_type type;
        struct list_head node;
        struct lttng_enabler *enabler;
@@ -340,7 +340,7 @@ struct lttng_interpreter_output;
 struct lttng_bytecode_runtime {
        /* Associated bytecode */
        enum lttng_kernel_bytecode_type type;
-       struct lttng_bytecode_node *bc;
+       struct lttng_kernel_bytecode_node *bc;
        int (*interpreter_func)(struct lttng_bytecode_runtime *kernel_bytecode,
                                const char *interpreter_stack_data,
                                struct lttng_probe_ctx *lttng_probe_ctx,
index e1d0afe6c4884076e0ec0d3f84e0d0815a468e7b..6ccd72c7cc8c664318f66fcb78b420f107af99d0 100644 (file)
@@ -408,7 +408,7 @@ int apply_reloc(const struct lttng_kernel_event_desc *event_desc,
 }
 
 static
-int bytecode_is_linked(struct lttng_bytecode_node *bytecode,
+int bytecode_is_linked(struct lttng_kernel_bytecode_node *bytecode,
                struct list_head *bytecode_runtime_head)
 {
        struct lttng_bytecode_runtime *bc_runtime;
@@ -427,7 +427,7 @@ int bytecode_is_linked(struct lttng_bytecode_node *bytecode,
 static
 int link_bytecode(const struct lttng_kernel_event_desc *event_desc,
                struct lttng_kernel_ctx *ctx,
-               struct lttng_bytecode_node *bytecode,
+               struct lttng_kernel_bytecode_node *bytecode,
                struct list_head *bytecode_runtime_head,
                struct list_head *insert_loc)
 {
@@ -502,7 +502,7 @@ alloc_error:
 
 void lttng_bytecode_sync_state(struct lttng_bytecode_runtime *runtime)
 {
-       struct lttng_bytecode_node *bc = runtime->bc;
+       struct lttng_kernel_bytecode_node *bc = runtime->bc;
 
        if (!bc->enabler->enabled || runtime->link_failed)
                runtime->interpreter_func = lttng_bytecode_interpret_error;
@@ -523,7 +523,7 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des
                struct list_head *instance_bytecode_head,
                struct list_head *enabler_bytecode_head)
 {
-       struct lttng_bytecode_node *enabler_bc;
+       struct lttng_kernel_bytecode_node *enabler_bc;
        struct lttng_bytecode_runtime *runtime;
 
        WARN_ON_ONCE(!event_desc);
@@ -579,7 +579,7 @@ 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_enabler *enabler,
-               struct lttng_bytecode_node *filter_bytecode)
+               struct lttng_kernel_bytecode_node *filter_bytecode)
 {
        list_add(&filter_bytecode->node, &enabler->filter_bytecode_head);
        return 0;
@@ -587,7 +587,7 @@ int lttng_filter_enabler_attach_bytecode(struct lttng_enabler *enabler,
 
 void lttng_free_enabler_filter_bytecode(struct lttng_enabler *enabler)
 {
-       struct lttng_bytecode_node *filter_bytecode, *tmp;
+       struct lttng_kernel_bytecode_node *filter_bytecode, *tmp;
 
        list_for_each_entry_safe(filter_bytecode, tmp,
                        &enabler->filter_bytecode_head, node) {
index 30b514a8414007eb49446a7570c733d69d450d52..354a2bc3dfdebd623360902c3c3cb120e9d13085 100644 (file)
@@ -2449,7 +2449,7 @@ static
 int lttng_enabler_attach_filter_bytecode(struct lttng_enabler *enabler,
                struct lttng_kernel_abi_filter_bytecode __user *bytecode)
 {
-       struct lttng_bytecode_node *bytecode_node;
+       struct lttng_kernel_bytecode_node *bytecode_node;
        uint32_t bytecode_len;
        int ret;
 
@@ -2509,7 +2509,7 @@ int lttng_event_add_callsite(struct lttng_kernel_event_common *event,
 static
 void lttng_enabler_destroy(struct lttng_enabler *enabler)
 {
-       struct lttng_bytecode_node *filter_node, *tmp_filter_node;
+       struct lttng_kernel_bytecode_node *filter_node, *tmp_filter_node;
 
        /* Destroy filter bytecode */
        list_for_each_entry_safe(filter_node, tmp_filter_node,
@@ -2604,7 +2604,7 @@ int lttng_event_notifier_enabler_attach_capture_bytecode(
                struct lttng_event_notifier_enabler *event_notifier_enabler,
                struct lttng_kernel_abi_capture_bytecode __user *bytecode)
 {
-       struct lttng_bytecode_node *bytecode_node;
+       struct lttng_kernel_bytecode_node *bytecode_node;
        struct lttng_enabler *enabler =
                        lttng_event_notifier_enabler_as_enabler(event_notifier_enabler);
        uint32_t bytecode_len;
This page took 0.029303 seconds and 4 git commands to generate.