X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-bytecode.h;h=ffbaf18772e46faa9474265c46a0e33800709d0c;hb=6ba6fd60507f8e045bdc4f1be14e9d99c6a15f7f;hp=04dd2520205e47c8e570b3c8b08e55bd286b9d72;hpb=a084756d092167324ee09d3f819cc45407b58233;p=lttng-ust.git diff --git a/liblttng-ust/lttng-bytecode.h b/liblttng-ust/lttng-bytecode.h index 04dd2520..ffbaf187 100644 --- a/liblttng-ust/lttng-bytecode.h +++ b/liblttng-ust/lttng-bytecode.h @@ -23,6 +23,7 @@ #include #include #include "bytecode.h" +#include "ust-events-internal.h" /* Interpreter stack length, in number of entries */ #define INTERPRETER_STACK_LEN 10 /* includes 2 dummy */ @@ -119,7 +120,7 @@ struct bytecode_get_index_data { * interpreter needs to find it from the event fields and types to * support variants. */ - struct lttng_ust_event_field *field; + const struct lttng_ust_event_field *field; struct { size_t len; enum object_type type; @@ -131,7 +132,7 @@ struct bytecode_get_index_data { struct vstack_load { enum load_type type; enum object_type object_type; - struct lttng_ust_event_field *field; + const struct lttng_ust_event_field *field; bool rev_bo; /* reverse byte order */ }; @@ -309,43 +310,32 @@ struct lttng_interpreter_output { size_t nr_elem; /* Inner type. */ - struct lttng_ust_type_common *nested_type; + const struct lttng_ust_type_common *nested_type; } sequence; } u; }; -__attribute__((visibility("hidden"))) -const char *lttng_bytecode_print_op(enum bytecode_op op); - -__attribute__((visibility("hidden"))) -void lttng_bytecode_filter_sync_state(struct lttng_ust_bytecode_runtime *runtime); - -__attribute__((visibility("hidden"))) -void lttng_bytecode_capture_sync_state(struct lttng_ust_bytecode_runtime *runtime); - -__attribute__((visibility("hidden"))) -int lttng_bytecode_validate(struct bytecode_runtime *bytecode); +const char *lttng_bytecode_print_op(enum bytecode_op op) + __attribute__((visibility("hidden"))); -__attribute__((visibility("hidden"))) -int lttng_bytecode_specialize(struct lttng_ust_event_desc *event_desc, - struct bytecode_runtime *bytecode); +void lttng_bytecode_sync_state(struct lttng_ust_bytecode_runtime *runtime) + __attribute__((visibility("hidden"))); -__attribute__((visibility("hidden"))) -uint64_t lttng_bytecode_filter_interpret_false(void *filter_data, - const char *filter_stack_data); +int lttng_bytecode_validate(struct bytecode_runtime *bytecode) + __attribute__((visibility("hidden"))); -__attribute__((visibility("hidden"))) -uint64_t lttng_bytecode_filter_interpret(void *filter_data, - const char *filter_stack_data); +int lttng_bytecode_specialize(const struct lttng_ust_event_desc *event_desc, + struct bytecode_runtime *bytecode) + __attribute__((visibility("hidden"))); -__attribute__((visibility("hidden"))) -uint64_t lttng_bytecode_capture_interpret_false(void *capture_data, - const char *capture_stack_data, - struct lttng_interpreter_output *output); +int lttng_bytecode_interpret_error(struct lttng_ust_bytecode_runtime *bytecode_runtime, + const char *stack_data, + void *ctx) + __attribute__((visibility("hidden"))); -__attribute__((visibility("hidden"))) -uint64_t lttng_bytecode_capture_interpret(void *capture_data, - const char *capture_stack_data, - struct lttng_interpreter_output *output); +int lttng_bytecode_interpret(struct lttng_ust_bytecode_runtime *bytecode_runtime, + const char *stack_data, + void *ctx) + __attribute__((visibility("hidden"))); #endif /* _LTTNG_BYTECODE_H */