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.
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.
*/
#include <linux/kernel.h>
#include <lttng/events.h>
+#include <lttng/events-internal.h>
#include <lttng/bytecode.h>
/* Interpreter stack length, in number of entries */