X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Flttng-bytecode.h;h=f104b0ebfdf0ff4043eb82496d4cf216f5052565;hb=93e9f463b4cc4af01a007499de4d61222668b6b7;hp=37c0e8a04fd9700cf881c2bd566c47bb966e2611;hpb=4a9f390a966ad856b454b2046ab2cabea3e9bba7;p=lttng-modules.git diff --git a/include/lttng/lttng-bytecode.h b/include/lttng/lttng-bytecode.h index 37c0e8a0..f104b0eb 100644 --- a/include/lttng/lttng-bytecode.h +++ b/include/lttng/lttng-bytecode.h @@ -42,7 +42,7 @@ struct bytecode_runtime { size_t data_alloc_len; char *data; uint16_t len; - char code[0]; + char code[]; }; enum entry_type { @@ -292,6 +292,7 @@ const char *lttng_bytecode_print_op(enum bytecode_op op); void lttng_bytecode_sync_state(struct lttng_kernel_bytecode_runtime *runtime); int lttng_bytecode_validate(struct bytecode_runtime *bytecode); +int lttng_bytecode_validate_load(struct bytecode_runtime *bytecode); int lttng_bytecode_specialize(const struct lttng_kernel_event_desc *event_desc, struct bytecode_runtime *bytecode);