X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=inline;f=liblttng-ust%2Flttng-bytecode.h;h=180dfbda0934bf845d9e2f2259d0bcf7914c0996;hb=fa194c4157f029404fe2ea10098d1bbcebcf6aa9;hp=8caf15ecd43d2eb1e2c7d470e49029b6b9f45fba;hpb=dc11f93f7d30cd383e35be41483cc024da59c7b8;p=lttng-ust.git diff --git a/liblttng-ust/lttng-bytecode.h b/liblttng-ust/lttng-bytecode.h index 8caf15ec..180dfbda 100644 --- a/liblttng-ust/lttng-bytecode.h +++ b/liblttng-ust/lttng-bytecode.h @@ -59,7 +59,7 @@ do { \ /* Linked bytecode. Child of struct lttng_bytecode_runtime. */ struct bytecode_runtime { - struct lttng_bytecode_runtime p; + struct lttng_ust_bytecode_runtime p; size_t data_len; size_t data_alloc_len; char *data; @@ -119,7 +119,7 @@ struct bytecode_get_index_data { * interpreter needs to find it from the event fields and types to * support variants. */ - const struct lttng_event_field *field; + const struct lttng_ust_event_field *field; struct { size_t len; enum object_type type; @@ -131,7 +131,7 @@ struct bytecode_get_index_data { struct vstack_load { enum load_type type; enum object_type object_type; - const struct lttng_event_field *field; + const struct lttng_ust_event_field *field; bool rev_bo; /* reverse byte order */ }; @@ -208,7 +208,7 @@ struct load_ptr { uint64_t u64; double d; } u; - const struct lttng_event_field *field; + const struct lttng_ust_event_field *field; }; struct estack_entry { @@ -314,32 +314,36 @@ struct lttng_interpreter_output { } u; }; -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) const char *lttng_bytecode_print_op(enum bytecode_op op); -LTTNG_HIDDEN -void lttng_bytecode_filter_sync_state(struct lttng_bytecode_runtime *runtime); -LTTNG_HIDDEN -void lttng_bytecode_capture_sync_state(struct lttng_bytecode_runtime *runtime); +__attribute__((visibility("hidden"))) +void lttng_bytecode_filter_sync_state(struct lttng_ust_bytecode_runtime *runtime); -LTTNG_HIDDEN +__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); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) int lttng_bytecode_specialize(const struct lttng_ust_event_desc *event_desc, struct bytecode_runtime *bytecode); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) uint64_t lttng_bytecode_filter_interpret_false(void *filter_data, const char *filter_stack_data); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) uint64_t lttng_bytecode_filter_interpret(void *filter_data, const char *filter_stack_data); -LTTNG_HIDDEN +__attribute__((visibility("hidden"))) uint64_t lttng_bytecode_capture_interpret_false(void *capture_data, const char *capture_stack_data, struct lttng_interpreter_output *output); -LTTNG_HIDDEN + +__attribute__((visibility("hidden"))) uint64_t lttng_bytecode_capture_interpret(void *capture_data, const char *capture_stack_data, struct lttng_interpreter_output *output);