X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fust-app.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fust-app.cpp;h=9690115d66c56ca83b06f6adb6e92e888249ec00;hb=eda1aa02582ba8af1f30d40f131f4a32d2b372ab;hp=3f39b02e4d9ee3d0e6faf65fa1d243ddf242f2e0;hpb=0267b5278de7bf4ee1ec11f2270dec4b44e80f36;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/ust-app.cpp b/src/bin/lttng-sessiond/ust-app.cpp index 3f39b02e4..9690115d6 100644 --- a/src/bin/lttng-sessiond/ust-app.cpp +++ b/src/bin/lttng-sessiond/ust-app.cpp @@ -6429,7 +6429,8 @@ static int handle_app_register_channel_notification(int sock, try { auto app_context_fields = lsu::create_trace_fields_from_ust_ctl_fields( *locked_registry_session, ust_ctl_context_fields.get(), - context_field_count); + context_field_count, + lst::field_location::root::EVENT_RECORD_COMMON_CONTEXT); if (!ust_reg_chan.is_registered()) { lst::type::cuptr event_context = app_context_fields.size() ? @@ -6563,12 +6564,14 @@ static int add_event_ust_registry(int sock, int sobjd, int cobjd, const char *na channel.add_event(sobjd, cobjd, name, signature.get(), lsu::create_trace_fields_from_ust_ctl_fields( *locked_registry, fields.get(), - nr_fields), + nr_fields, + lst::field_location::root:: + EVENT_RECORD_PAYLOAD), loglevel_value, model_emf_uri.get() ? nonstd::optional( model_emf_uri.get()) : - nonstd::nullopt, + nonstd::nullopt, ua_sess->buffer_type, *app, event_id); ret_code = 0; } catch (const std::exception& ex) {