Commit | Line | Data |
---|---|---|
5024c2ac JR |
1 | /* |
2 | * Copyright (C) 2020 - EfficiOS, inc. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify it | |
5 | * under the terms of the GNU General Public License, version 2 only, as | |
6 | * published by the Free Software Foundation. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
11 | * more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License along with | |
14 | * this program; if not, write to the Free Software Foundation, Inc., 51 | |
15 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
16 | */ | |
17 | ||
18 | #include "lttng/domain-internal.h" | |
19 | #include "common/macros.h" | |
20 | ||
21 | LTTNG_HIDDEN | |
22 | const char *lttng_domain_type_str(enum lttng_domain_type domain_type) | |
23 | { | |
24 | switch (domain_type) { | |
25 | case LTTNG_DOMAIN_NONE: | |
26 | return "none"; | |
27 | ||
28 | case LTTNG_DOMAIN_KERNEL: | |
29 | return "kernel"; | |
30 | ||
31 | case LTTNG_DOMAIN_UST: | |
32 | return "ust"; | |
33 | ||
34 | case LTTNG_DOMAIN_JUL: | |
35 | return "jul"; | |
36 | ||
37 | case LTTNG_DOMAIN_LOG4J: | |
38 | return "log4j"; | |
39 | ||
40 | case LTTNG_DOMAIN_PYTHON: | |
41 | return "python"; | |
42 | ||
43 | default: | |
44 | return "???"; | |
45 | } | |
46 | } |