projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update from upstream for ht macros
[lttng-tools.git]
/
lttng
/
commands
/
enable_channels.c
diff --git
a/lttng/commands/enable_channels.c
b/lttng/commands/enable_channels.c
index c5887d07bf17ac10688e3dbb3b74bc6d57564ddc..715552b5b706a811a853028cfa9953db31e6c9b8 100644
(file)
--- a/
lttng/commands/enable_channels.c
+++ b/
lttng/commands/enable_channels.c
@@
-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);
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;
} else {
ERR("Please specify a tracer (--kernel or --userspace)");
ret = CMD_NOT_IMPLEMENTED;
This page took
0.024225 seconds
and
4
git commands to generate.