X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Flttng-bytecode.c;h=6cc3179d3df19aa9e468e976eb8fed629ca58d07;hb=8c3470eaadb6e01fe65e1b852907467c0527ba05;hp=c52c79bb6ee35a3893e33e5b4607baae217b7312;hpb=bd640d74f149ce079f81103221a8aaafca02ce04;p=lttng-ust.git diff --git a/liblttng-ust/lttng-bytecode.c b/liblttng-ust/lttng-bytecode.c index c52c79bb..6cc3179d 100644 --- a/liblttng-ust/lttng-bytecode.c +++ b/liblttng-ust/lttng-bytecode.c @@ -203,13 +203,10 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc, /* compute field offset */ switch (fields[i].type.atype) { case atype_integer: - case atype_enum: case atype_enum_nestable: field_offset += sizeof(int64_t); break; - case atype_array: case atype_array_nestable: - case atype_sequence: case atype_sequence_nestable: field_offset += sizeof(unsigned long); field_offset += sizeof(void *); @@ -242,13 +239,10 @@ int apply_field_reloc(const struct lttng_event_desc *event_desc, field_ref = (struct field_ref *) op->data; switch (field->type.atype) { case atype_integer: - case atype_enum: case atype_enum_nestable: op->op = BYTECODE_OP_LOAD_FIELD_REF_S64; break; - case atype_array: case atype_array_nestable: - case atype_sequence: case atype_sequence_nestable: op->op = BYTECODE_OP_LOAD_FIELD_REF_SEQUENCE; break; @@ -318,15 +312,12 @@ int apply_context_reloc(struct bytecode_runtime *runtime, field_ref = (struct field_ref *) op->data; switch (ctx_field->event_field.type.atype) { case atype_integer: - case atype_enum: case atype_enum_nestable: op->op = BYTECODE_OP_GET_CONTEXT_REF_S64; break; /* Sequence and array supported as string */ case atype_string: - case atype_array: case atype_array_nestable: - case atype_sequence: case atype_sequence_nestable: op->op = BYTECODE_OP_GET_CONTEXT_REF_STRING; break;