X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-registry-channel.cpp;h=b039d3c2fd274c02624e86a873a0877086b100d5;hp=ed8a60daf2509fd191ec273fc3b0be866df6a4f4;hb=eda1aa02582ba8af1f30d40f131f4a32d2b372ab;hpb=0267b5278de7bf4ee1ec11f2270dec4b44e80f36 diff --git a/src/bin/lttng-sessiond/ust-registry-channel.cpp b/src/bin/lttng-sessiond/ust-registry-channel.cpp index ed8a60daf..b039d3c2f 100644 --- a/src/bin/lttng-sessiond/ust-registry-channel.cpp +++ b/src/bin/lttng-sessiond/ust-registry-channel.cpp @@ -131,8 +131,10 @@ lst::type::cuptr create_event_header(const lst::abi& trace_abi, lst::stream_clas lst::type::cuptr extended = lttng::make_unique(0, std::move(extended_fields)); variant_choices.emplace_back(lttng::make_unique("extended", std::move(extended))); - lst::type::cuptr variant = lttng::make_unique( - 0, "id", std::move(variant_choices)); + lst::type::cuptr variant = lttng::make_unique(0, + lst::field_location(lst::field_location::root::EVENT_RECORD_HEADER, + {"id"}), + std::move(variant_choices)); event_header_fields.emplace_back(lttng::make_unique("id", std::move(choice_enum))); event_header_fields.emplace_back( @@ -187,8 +189,10 @@ lst::type::cuptr create_event_header(const lst::abi& trace_abi, lst::stream_clas lst::type::cuptr extended = lttng::make_unique(0, std::move(extended_fields)); variant_choices.emplace_back(lttng::make_unique("extended", std::move(extended))); - lst::type::cuptr variant = lttng::make_unique( - 0, "id", std::move(variant_choices)); + lst::type::cuptr variant = lttng::make_unique(0, + lst::field_location(lst::field_location::root::EVENT_RECORD_HEADER, + {"id"}), + std::move(variant_choices)); event_header_fields.emplace_back(lttng::make_unique("id", std::move(choice_enum))); event_header_fields.emplace_back(