Use the trace format type for ust metadata generation
[deliverable/lttng-tools.git] / src / bin / lttng-sessiond / ust-app.cpp
index 19884307a89141315f691c7130ad995b56cacca4..46832819b7603cb44ec9c20150bae054a5e2ad1f 100644 (file)
@@ -2551,7 +2551,7 @@ static int setup_buffer_reg_pid(struct ust_app_session *ua_sess,
                        reg_pid->shm_path,
                        lttng_credentials_get_uid(&ua_sess->effective_credentials),
                        lttng_credentials_get_gid(&ua_sess->effective_credentials),
-                       ua_sess->tracing_id);
+                       ua_sess->tracing_id, *ua_sess->trace_format);
        if (!reg_pid->registry->reg.ust) {
                /*
                 * reg_pid->registry->reg.ust is NULL upon error, so we need to
@@ -2614,7 +2614,8 @@ static int setup_buffer_reg_uid(struct ltt_ust_session *usess,
        /* Initialize registry. */
        reg_uid->registry->reg.ust = ust_registry_session_per_uid_create(app->abi,
                        app->version.major, app->version.minor, reg_uid->root_shm_path,
-                       reg_uid->shm_path, usess->uid, usess->gid, ua_sess->tracing_id, app->uid);
+                       reg_uid->shm_path, usess->uid, usess->gid, ua_sess->tracing_id, app->uid,
+                       *usess->trace_format);
        if (!reg_uid->registry->reg.ust) {
                /*
                 * reg_uid->registry->reg.ust is NULL upon error, so we need to
This page took 0.024933 seconds and 5 git commands to generate.