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