Move bytecode structures to internal header
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 May 2021 14:33:55 +0000 (10:33 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 May 2021 14:38:33 +0000 (10:38 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ic7931b3fd6d8f4674f7e0a020a4501db4f3ae509

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

index b7fb2833916611e87e44314127a27eb1d6369ad0..df70273a5eaaa70ae3b2e988b64f060284f55722 100644 (file)
@@ -78,6 +78,38 @@ struct lttng_kernel_bytecode_filter_ctx {
        enum lttng_kernel_bytecode_filter_result result;
 };
 
+struct lttng_interpreter_output;
+
+enum lttng_kernel_bytecode_type {
+       LTTNG_KERNEL_BYTECODE_TYPE_FILTER,
+       LTTNG_KERNEL_BYTECODE_TYPE_CAPTURE,
+};
+
+struct lttng_kernel_bytecode_node {
+       enum lttng_kernel_bytecode_type type;
+       struct list_head node;
+       struct lttng_enabler *enabler;
+       struct {
+               uint32_t len;
+               uint32_t reloc_offset;
+               uint64_t seqnum;
+               char data[];
+       } bc;
+};
+
+struct lttng_kernel_bytecode_runtime {
+       /* Associated bytecode */
+       enum lttng_kernel_bytecode_type type;
+       struct lttng_kernel_bytecode_node *bc;
+       int (*interpreter_func)(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
+                               const char *interpreter_stack_data,
+                               struct lttng_kernel_probe_ctx *lttng_probe_ctx,
+                               void *caller_ctx);
+       int link_failed;
+       struct list_head node;  /* list of bytecode runtime in event */
+       struct lttng_kernel_ctx *ctx;
+};
+
 /*
  * Enabler field, within whatever object is enabling an event. Target of
  * backward reference.
index eafdf5cf1992b829a0135c696a3a9e8fb0ca701e..74e5f1bcbfa9c5413326e4aeadac65da340eb445 100644 (file)
@@ -318,38 +318,6 @@ struct lttng_kernel_probe_desc {
 
 struct lttng_krp;                              /* Kretprobe handling */
 
-enum lttng_kernel_bytecode_type {
-       LTTNG_KERNEL_BYTECODE_TYPE_FILTER,
-       LTTNG_KERNEL_BYTECODE_TYPE_CAPTURE,
-};
-
-struct lttng_kernel_bytecode_node {
-       enum lttng_kernel_bytecode_type type;
-       struct list_head node;
-       struct lttng_enabler *enabler;
-       struct {
-               uint32_t len;
-               uint32_t reloc_offset;
-               uint64_t seqnum;
-               char data[];
-       } bc;
-};
-
-struct lttng_interpreter_output;
-
-struct lttng_kernel_bytecode_runtime {
-       /* Associated bytecode */
-       enum lttng_kernel_bytecode_type type;
-       struct lttng_kernel_bytecode_node *bc;
-       int (*interpreter_func)(struct lttng_kernel_bytecode_runtime *kernel_bytecode,
-                               const char *interpreter_stack_data,
-                               struct lttng_kernel_probe_ctx *lttng_probe_ctx,
-                               void *caller_ctx);
-       int link_failed;
-       struct list_head node;  /* list of bytecode runtime in event */
-       struct lttng_kernel_ctx *ctx;
-};
-
 /*
  * Objects in a linked-list of enablers, owned by an event.
  */
index 87a0c13d95c4631f2ffcf1752553970cf9bec12e..cd0d8fbedc81542b55004e04826fbc29aaf5cda0 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/kernel.h>
 
 #include <lttng/events.h>
+#include <lttng/events-internal.h>
 #include <lttng/bytecode.h>
 
 /* Interpreter stack length, in number of entries */
This page took 0.027291 seconds and 4 git commands to generate.