Basic hashtable support for UST
[lttng-tools.git] / lttng / commands / enable_channels.c
index c5887d07bf17ac10688e3dbb3b74bc6d57564ddc..715552b5b706a811a853028cfa9953db31e6c9b8 100644 (file)
@@ -118,6 +118,11 @@ static int enable_channel(char *session_name)
                dom.type = LTTNG_DOMAIN_UST_PID;
                dom.attr.pid = opt_pid;
                DBG("PID %d set to lttng handle", opt_pid);
+       } else if (opt_userspace && opt_cmd_name == NULL) {
+               dom.type = LTTNG_DOMAIN_UST;
+       } else if (opt_userspace && opt_cmd_name != NULL) {
+               dom.type = LTTNG_DOMAIN_UST_EXEC_NAME;
+               strncpy(dom.attr.exec_name, opt_cmd_name, NAME_MAX);
        } else {
                ERR("Please specify a tracer (--kernel or --userspace)");
                ret = CMD_NOT_IMPLEMENTED;
This page took 0.022886 seconds and 4 git commands to generate.