X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdomain.c;fp=src%2Fcommon%2Fdomain.c;h=5d6e7a078020820368e72db96de52c4805eb7d61;hp=0000000000000000000000000000000000000000;hb=1831ae68b70dece8e9b847081526495adbbf05e5;hpb=25357057de5ae4dd2a572e8f9b893c1b90cbd60a diff --git a/src/common/domain.c b/src/common/domain.c new file mode 100644 index 000000000..5d6e7a078 --- /dev/null +++ b/src/common/domain.c @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2020 - EfficiOS, inc. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License, version 2 only, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include "lttng/domain-internal.h" +#include "common/macros.h" + +LTTNG_HIDDEN +const char *lttng_domain_type_str(enum lttng_domain_type domain_type) +{ + switch (domain_type) { + case LTTNG_DOMAIN_NONE: + return "none"; + + case LTTNG_DOMAIN_KERNEL: + return "kernel"; + + case LTTNG_DOMAIN_UST: + return "ust"; + + case LTTNG_DOMAIN_JUL: + return "jul"; + + case LTTNG_DOMAIN_LOG4J: + return "log4j"; + + case LTTNG_DOMAIN_PYTHON: + return "python"; + + default: + return "???"; + } +}