BT_COMP_LOGT("Copying content of field: in-f-addr=%p, out-f-addr=%p",
in_field, out_field);
switch (in_fc_type) {
+ case BT_FIELD_CLASS_TYPE_BOOL:
+ bt_field_bool_set_value(out_field,
+ bt_field_bool_get_value(in_field));
+ break;
case BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER:
case BT_FIELD_CLASS_TYPE_UNSIGNED_ENUMERATION:
bt_field_integer_unsigned_set_value(out_field,
bt_field_class_integer_get_field_value_range(input_fc));
}
+static inline
+int field_class_bool_copy(
+ struct trace_ir_metadata_maps *md_maps,
+ const bt_field_class *in_field_class,
+ bt_field_class *out_field_class)
+{
+ BT_COMP_LOGD("Copying content of boolean field class: "
+ "in-fc-addr=%p, out-fc-addr=%p",
+ in_field_class, out_field_class);
+ BT_COMP_LOGD("Copied content of boolean field class: "
+ "in-fc-addr=%p, out-fc-addr=%p",
+ in_field_class, out_field_class);
+ return 0;
+}
+
static inline
int field_class_unsigned_integer_copy(
struct trace_ir_metadata_maps *md_maps,
in_field_class);
switch (fc_type) {
+ case BT_FIELD_CLASS_TYPE_BOOL:
+ out_field_class = bt_field_class_bool_create(
+ md_maps->output_trace_class);
+ break;
case BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER:
out_field_class = bt_field_class_integer_unsigned_create(
md_maps->output_trace_class);
{
int ret = 0;
switch(bt_field_class_get_type(in_field_class)) {
+ case BT_FIELD_CLASS_TYPE_BOOL:
+ ret = field_class_bool_copy(md_maps,
+ in_field_class, out_field_class);
+ break;
case BT_FIELD_CLASS_TYPE_UNSIGNED_INTEGER:
ret = field_class_unsigned_integer_copy(md_maps,
in_field_class, out_field_class);