projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: remove `BT_GRAPH_RUN_STATUS_END`
[babeltrace.git]
/
src
/
plugins
/
ctf
/
common
/
metadata
/
ctf-meta-translate.c
diff --git
a/src/plugins/ctf/common/metadata/ctf-meta-translate.c
b/src/plugins/ctf/common/metadata/ctf-meta-translate.c
index c53fc17a597717d56795ce781275f3cba18465a5..5c09e85af8270dc26b922f809921b24004c8104a 100644
(file)
--- a/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
+++ b/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
@@
-53,9
+53,9
@@
bt_field_class *ctf_field_class_int_to_ir(struct ctx *ctx,
bt_field_class *ir_fc;
if (fc->is_signed) {
bt_field_class *ir_fc;
if (fc->is_signed) {
- ir_fc = bt_field_class_
signed_integer
_create(ctx->ir_tc);
+ ir_fc = bt_field_class_
integer_signed
_create(ctx->ir_tc);
} else {
} else {
- ir_fc = bt_field_class_
unsigned_integer
_create(ctx->ir_tc);
+ ir_fc = bt_field_class_
integer_unsigned
_create(ctx->ir_tc);
}
BT_ASSERT(ir_fc);
}
BT_ASSERT(ir_fc);
@@
-72,9
+72,9
@@
bt_field_class *ctf_field_class_enum_to_ir(struct ctx *ctx,
uint64_t i;
if (fc->base.is_signed) {
uint64_t i;
if (fc->base.is_signed) {
- ir_fc = bt_field_class_
signed_enumeration
_create(ctx->ir_tc);
+ ir_fc = bt_field_class_
enumeration_signed
_create(ctx->ir_tc);
} else {
} else {
- ir_fc = bt_field_class_
unsigned_enumeration
_create(ctx->ir_tc);
+ ir_fc = bt_field_class_
enumeration_unsigned
_create(ctx->ir_tc);
}
BT_ASSERT(ir_fc);
}
BT_ASSERT(ir_fc);
@@
-113,11
+113,11
@@
bt_field_class *ctf_field_class_enum_to_ir(struct ctx *ctx,
}
if (fc->base.is_signed) {
}
if (fc->base.is_signed) {
- ret = bt_field_class_
signed_enumeration
_add_mapping(
+ ret = bt_field_class_
enumeration_signed
_add_mapping(
ir_fc, mapping->label->str, range_set);
BT_RANGE_SET_SIGNED_PUT_REF_AND_RESET(range_set);
} else {
ir_fc, mapping->label->str, range_set);
BT_RANGE_SET_SIGNED_PUT_REF_AND_RESET(range_set);
} else {
- ret = bt_field_class_
unsigned_enumeration
_add_mapping(
+ ret = bt_field_class_
enumeration_unsigned
_add_mapping(
ir_fc, mapping->label->str, range_set);
BT_RANGE_SET_UNSIGNED_PUT_REF_AND_RESET(range_set);
}
ir_fc, mapping->label->str, range_set);
BT_RANGE_SET_UNSIGNED_PUT_REF_AND_RESET(range_set);
}
@@
-134,13
+134,12
@@
bt_field_class *ctf_field_class_float_to_ir(struct ctx *ctx,
{
bt_field_class *ir_fc;
{
bt_field_class *ir_fc;
- ir_fc = bt_field_class_real_create(ctx->ir_tc);
- BT_ASSERT(ir_fc);
-
if (fc->base.size == 32) {
if (fc->base.size == 32) {
- bt_field_class_real_set_is_single_precision(ir_fc,
- BT_TRUE);
+ ir_fc = bt_field_class_real_single_precision_create(ctx->ir_tc);
+ } else {
+ ir_fc = bt_field_class_real_double_precision_create(ctx->ir_tc);
}
}
+ BT_ASSERT(ir_fc);
return ir_fc;
}
return ir_fc;
}
@@
-224,17
+223,17
@@
const void *find_ir_enum_field_class_mapping_by_label(const bt_field_class *fc,
if (is_signed) {
spec_this_mapping =
if (is_signed) {
spec_this_mapping =
- bt_field_class_
signed_enumeration
_borrow_mapping_by_index_const(
+ bt_field_class_
enumeration_signed
_borrow_mapping_by_index_const(
fc, i);
this_mapping =
fc, i);
this_mapping =
- bt_field_class_
signed_enumeration
_mapping_as_mapping_const(
+ bt_field_class_
enumeration_signed
_mapping_as_mapping_const(
spec_this_mapping);
} else {
spec_this_mapping =
spec_this_mapping);
} else {
spec_this_mapping =
- bt_field_class_
unsigned_enumeration
_borrow_mapping_by_index_const(
+ bt_field_class_
enumeration_unsigned
_borrow_mapping_by_index_const(
fc, i);
this_mapping =
fc, i);
this_mapping =
- bt_field_class_
unsigned_enumeration
_mapping_as_mapping_const(
+ bt_field_class_
enumeration_unsigned
_mapping_as_mapping_const(
spec_this_mapping);
}
spec_this_mapping);
}
@@
-292,7
+291,7
@@
bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
* mapping name.
*/
if (fc->tag_fc->base.is_signed) {
* mapping name.
*/
if (fc->tag_fc->base.is_signed) {
- const bt_field_class_
signed_enumeration
_mapping *mapping =
+ const bt_field_class_
enumeration_signed
_mapping *mapping =
find_ir_enum_field_class_mapping_by_label(
ir_tag_fc,
named_fc->orig_name->str, true);
find_ir_enum_field_class_mapping_by_label(
ir_tag_fc,
named_fc->orig_name->str, true);
@@
-300,14
+299,14
@@
bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
BT_ASSERT(mapping);
range_set =
BT_ASSERT(mapping);
range_set =
- bt_field_class_
signed_enumeration
_mapping_borrow_ranges_const(
+ bt_field_class_
enumeration_signed
_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
mapping);
BT_ASSERT(range_set);
- ret = bt_field_class_variant_with_s
igned_selector
_append_option(
+ ret = bt_field_class_variant_with_s
elector_field_integer_signed
_append_option(
ir_fc, named_fc->name->str,
option_ir_fc, range_set);
} else {
ir_fc, named_fc->name->str,
option_ir_fc, range_set);
} else {
- const bt_field_class_
unsigned_enumeration
_mapping *mapping =
+ const bt_field_class_
enumeration_unsigned
_mapping *mapping =
find_ir_enum_field_class_mapping_by_label(
ir_tag_fc,
named_fc->orig_name->str,
find_ir_enum_field_class_mapping_by_label(
ir_tag_fc,
named_fc->orig_name->str,
@@
-316,10
+315,10
@@
bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
BT_ASSERT(mapping);
range_set =
BT_ASSERT(mapping);
range_set =
- bt_field_class_
unsigned_enumeration
_mapping_borrow_ranges_const(
+ bt_field_class_
enumeration_unsigned
_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
mapping);
BT_ASSERT(range_set);
- ret = bt_field_class_variant_with_
unsigned_selector
_append_option(
+ ret = bt_field_class_variant_with_
selector_field_integer_unsigned
_append_option(
ir_fc, named_fc->name->str,
option_ir_fc, range_set);
}
ir_fc, named_fc->name->str,
option_ir_fc, range_set);
}
@@
-350,7
+349,7
@@
bt_field_class *ctf_field_class_array_to_ir(struct ctx *ctx,
elem_ir_fc = ctf_field_class_to_ir(ctx, fc->base.elem_fc);
BT_ASSERT(elem_ir_fc);
elem_ir_fc = ctf_field_class_to_ir(ctx, fc->base.elem_fc);
BT_ASSERT(elem_ir_fc);
- ir_fc = bt_field_class_
static_array
_create(ctx->ir_tc, elem_ir_fc,
+ ir_fc = bt_field_class_
array_static
_create(ctx->ir_tc, elem_ir_fc,
fc->length);
BT_ASSERT(ir_fc);
bt_field_class_put_ref(elem_ir_fc);
fc->length);
BT_ASSERT(ir_fc);
bt_field_class_put_ref(elem_ir_fc);
@@
-382,7
+381,7
@@
bt_field_class *ctf_field_class_sequence_to_ir(struct ctx *ctx,
BT_ASSERT(length_fc);
}
BT_ASSERT(length_fc);
}
- ir_fc = bt_field_class_
dynamic_array
_create(ctx->ir_tc, elem_ir_fc,
+ ir_fc = bt_field_class_
array_dynamic
_create(ctx->ir_tc, elem_ir_fc,
length_fc);
BT_ASSERT(ir_fc);
bt_field_class_put_ref(elem_ir_fc);
length_fc);
BT_ASSERT(ir_fc);
bt_field_class_put_ref(elem_ir_fc);
@@
-543,7
+542,7
@@
void ctf_event_class_to_ir(struct ctx *ctx)
BT_ASSERT(ret == 0);
}
BT_ASSERT(ret == 0);
}
- if (ctx->ec->
log_level != -1
) {
+ if (ctx->ec->
is_log_level_set
) {
bt_event_class_set_log_level(ir_ec, ctx->ec->log_level);
}
bt_event_class_set_log_level(ir_ec, ctx->ec->log_level);
}
This page took
0.027425 seconds
and
4
git commands to generate.