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 */
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);
} 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;
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);
}
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)))
* 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)
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;
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)
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;
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);
}
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
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;
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;