#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <assert.h>
#include <urcu/list.h>
+#include <lttng/domain-internal.h>
#include <common/mi-lttng.h>
#include "../command.h"
CONTEXT_VGID = 38,
CONTEXT_VEGID = 39,
CONTEXT_VSGID = 40,
+ CONTEXT_TIME_NS = 41,
};
/*
{ (char *) "mnt_ns", CONTEXT_MNT_NS },
{ (char *) "net_ns", CONTEXT_NET_NS },
{ (char *) "pid_ns", CONTEXT_PID_NS },
+ { (char *) "time_ns", CONTEXT_TIME_NS },
{ (char *) "user_ns", CONTEXT_USER_NS },
{ (char *) "uts_ns", CONTEXT_UTS_NS },
{ (char *) "uid", CONTEXT_UID },
} else if (opt_log4j) {
return LTTNG_DOMAIN_LOG4J;
} else {
- assert(0);
+ abort();
}
}
} else {
if (opt_channel_name) {
MSG("%s context %s added to channel %s",
- get_domain_str(dom.type), type->opt->symbol,
+ lttng_domain_type_str(dom.type),
+ type->opt->symbol,
opt_channel_name);
} else {
MSG("%s context %s added to all channels",
- get_domain_str(dom.type), type->opt->symbol);
+ lttng_domain_type_str(dom.type),
+ type->opt->symbol);
}
success = 1;
}
goto end;
}
- ret = print_missing_or_multiple_domains(opt_kernel + opt_userspace +
- opt_jul + opt_log4j);
+ ret = print_missing_or_multiple_domains(
+ opt_kernel + opt_userspace + opt_jul + opt_log4j, true);
if (ret) {
ret = CMD_ERROR;
goto end;