} \
}),
-struct lttng_probe_ctx {
+struct lttng_kernel_probe_ctx {
struct lttng_kernel_event_common *event;
uint8_t interruptible;
};
struct lttng_krp; /* Kretprobe handling */
-enum lttng_kernel_bytecode_type {
- LTTNG_KERNEL_BYTECODE_TYPE_FILTER,
- LTTNG_KERNEL_BYTECODE_TYPE_CAPTURE,
-};
-
-struct lttng_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_bytecode_runtime {
- /* Associated bytecode */
- enum lttng_kernel_bytecode_type type;
- struct lttng_bytecode_node *bc;
- int (*interpreter_func)(struct lttng_bytecode_runtime *kernel_bytecode,
- const char *interpreter_stack_data,
- struct lttng_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.
*/
int eval_filter; /* Need to evaluate filters */
int (*run_filter)(const struct lttng_kernel_event_common *event,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
void *filter_ctx);
};
int eval_capture; /* Need to evaluate capture */
void (*notification_send)(struct lttng_kernel_event_notifier *event_notifier,
const char *stack_data,
- struct lttng_probe_ctx *probe_ctx,
+ struct lttng_kernel_probe_ctx *probe_ctx,
struct lttng_kernel_notification_ctx *notif_ctx);
};