X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbytecode%2Fbytecode.h;h=d7ef4aeddd27b8d581a691a5f842179f2ca16374;hb=f895927f329180ca1e6f4426e9d3c6250ae698ba;hp=151ca8a0fb00d0d0273d5304b415984b9f84759f;hpb=2b00d46244cab86f1186a7b00cdc660f24a26f72;p=lttng-tools.git diff --git a/src/common/bytecode/bytecode.h b/src/common/bytecode/bytecode.h index 151ca8a0f..d7ef4aedd 100644 --- a/src/common/bytecode/bytecode.h +++ b/src/common/bytecode/bytecode.h @@ -234,17 +234,28 @@ struct lttng_bytecode_alloc { struct lttng_bytecode b; }; -LTTNG_HIDDEN int bytecode_init(struct lttng_bytecode_alloc **fb); -LTTNG_HIDDEN int32_t bytecode_reserve(struct lttng_bytecode_alloc **fb, - uint32_t align, uint32_t len); -LTTNG_HIDDEN int bytecode_push(struct lttng_bytecode_alloc **fb, +int bytecode_init(struct lttng_bytecode_alloc **fb); +int bytecode_push(struct lttng_bytecode_alloc **fb, const void *data, uint32_t align, uint32_t len); -LTTNG_HIDDEN int bytecode_push_logical(struct lttng_bytecode_alloc **fb, +int bytecode_push_logical(struct lttng_bytecode_alloc **fb, struct logical_op *data, uint32_t align, uint32_t len, uint16_t *skip_offset); -LTTNG_HIDDEN struct lttng_bytecode *lttng_bytecode_copy( +struct lttng_bytecode *lttng_bytecode_copy( const struct lttng_bytecode *orig_f); +int bytecode_push_get_payload_root( + struct lttng_bytecode_alloc **bytecode); +int bytecode_push_get_context_root( + struct lttng_bytecode_alloc **bytecode); +int bytecode_push_get_app_context_root( + struct lttng_bytecode_alloc **bytecode); +int bytecode_push_get_index_u64( + struct lttng_bytecode_alloc **bytecode, uint64_t index); +int bytecode_push_get_symbol( + struct lttng_bytecode_alloc **bytecode, + struct lttng_bytecode_alloc **bytecode_reloc, + const char *symbol); + static inline unsigned int bytecode_get_len(struct lttng_bytecode *bytecode) {