- lst::structure_type::fields extended_fields;
- extended_fields.emplace_back(lttng::make_unique<lst::field>("id",
- lttng::make_unique<lst::integer_type>(trace_abi.uint32_t_alignment,
- trace_abi.byte_order, 32,
- lst::integer_type::signedness::UNSIGNED,
- lst::integer_type::base::DECIMAL,
- std::initializer_list<lst::integer_type::
- role>({lst::integer_type::role::
- EVENT_RECORD_CLASS_ID}))));
- extended_fields.emplace_back(lttng::make_unique<lst::field>("timestamp",
- lttng::make_unique<lst::integer_type>(trace_abi.uint64_t_alignment,
- trace_abi.byte_order, 64,
- lst::integer_type::signedness::UNSIGNED,
- lst::integer_type::base::DECIMAL,
- std::initializer_list<lst::integer_type::
- role>({lst::integer_type::role::
- DEFAULT_CLOCK_TIMESTAMP}))));
-
- lst::type::cuptr extended = lttng::make_unique<lst::structure_type>(0, std::move(extended_fields));
- variant_choices.emplace_back(lttng::make_unique<lst::field>("extended", std::move(extended)));
-
- lst::type::cuptr variant = lttng::make_unique<lst::variant_type>(0,
- lst::field_location(lst::field_location::root::EVENT_RECORD_HEADER,
- {"id"}),
- std::move(variant_choices));
-
- event_header_fields.emplace_back(lttng::make_unique<lst::field>("id", std::move(choice_enum)));