X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=90a54f7eef87eae4a884737a9d8a8bba67d3d98f;hb=81663f073dbfb4b61c06a0ceb8ca33c4fc41b1c5;hp=de54721cb5a2c3571a02cf93163d6c99b8e83490;hpb=3533d06b152292235b1ab28364804754339e62f5;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index de54721cb..90a54f7ee 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -15,10 +15,10 @@ #include #include #include -#include #include +#include #include #include "../command.h" @@ -95,6 +95,7 @@ enum context_type { CONTEXT_VGID = 38, CONTEXT_VEGID = 39, CONTEXT_VSGID = 40, + CONTEXT_TIME_NS = 41, }; /* @@ -264,6 +265,7 @@ const struct ctx_opts { { (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 }, @@ -556,7 +558,7 @@ enum lttng_domain_type get_domain(void) } else if (opt_log4j) { return LTTNG_DOMAIN_LOG4J; } else { - assert(0); + abort(); } } @@ -808,11 +810,13 @@ static int add_context(char *session_name) } 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; }