Add procname context
[lttng-ust.git] / tests / ust-basic-tracing / ust-basic-tracing.c
index d0ba4137d9899ed760194e749b94626fc8d022b1..e97552a13ba1d4f00643e12fa1d4c79c5d81d8fa 100644 (file)
@@ -565,11 +565,14 @@ int send_app_msgs(int sock, const char *outputpath,
                printf("received event handle %u\n", event_handle[k]);
        }
 
-       /* Attach pthread_id context */
+       /* Attach vtid context */
        memset(&lum, 0, sizeof(lum));
        lum.handle = channel_data.handle;
        lum.cmd = LTTNG_UST_CONTEXT;
-       lum.u.context.ctx = LTTNG_UST_CONTEXT_PTHREAD_ID;
+       lum.u.context.ctx = LTTNG_UST_CONTEXT_VTID;
+       //lum.u.context.ctx = LTTNG_UST_CONTEXT_PTHREAD_ID;
+       //lum.u.context.ctx = LTTNG_UST_CONTEXT_VPID;
+       //lum.u.context.ctx = LTTNG_UST_CONTEXT_PROCNAME;
        ret = send_app_cmd(sock, &lum, &lur);
        if (ret)
                return ret;
This page took 0.026316 seconds and 4 git commands to generate.