projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.gitignore: add missing `/tests/param-validation/test_param_validation`
[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 c79e0d943f5dc715f9b0bd15a71a3eb39de62299..1ac7aac311737f47db692275da19ec3ec867e954 100644
(file)
--- a/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
+++ b/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
@@
-16,6
+16,7
@@
#include "common/macros.h"
#include "common/assert.h"
#include <glib.h>
#include "common/macros.h"
#include "common/assert.h"
#include <glib.h>
+#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
@@
-115,11
+116,11
@@
bt_field_class *ctf_field_class_enum_to_ir(struct ctx *ctx,
if (fc->base.is_signed) {
ret = bt_field_class_enumeration_signed_add_mapping(
ir_fc, mapping->label->str, range_set);
if (fc->base.is_signed) {
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);
+ BT_
INTEGER_
RANGE_SET_SIGNED_PUT_REF_AND_RESET(range_set);
} else {
ret = bt_field_class_enumeration_unsigned_add_mapping(
ir_fc, mapping->label->str, range_set);
} else {
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);
+ BT_
INTEGER_
RANGE_SET_UNSIGNED_PUT_REF_AND_RESET(range_set);
}
BT_ASSERT(ret == 0);
}
BT_ASSERT(ret == 0);
@@
-134,13
+135,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;
}
@@
-303,7
+303,7
@@
bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
bt_field_class_enumeration_signed_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
bt_field_class_enumeration_signed_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
- ret = bt_field_class_variant_with_selector_signed_append_option(
+ ret = bt_field_class_variant_with_selector_
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 {
@@
-319,7
+319,7
@@
bt_field_class *ctf_field_class_variant_to_ir(struct ctx *ctx,
bt_field_class_enumeration_unsigned_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
bt_field_class_enumeration_unsigned_mapping_borrow_ranges_const(
mapping);
BT_ASSERT(range_set);
- ret = bt_field_class_variant_with_selector_unsigned_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);
}
@@
-543,7
+543,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.024996 seconds
and
4
git commands to generate.