Commit | Line | Data |
---|---|---|
c0374092 JR |
1 | /* |
2 | * Copyright (C) 2020 Simon Marchi <simon.marchi@efficios.com> | |
3 | * | |
4 | * SPDX-License-Identifier: LGPL-2.1-only | |
5 | * | |
6 | */ | |
7 | ||
8 | #include "lttng/domain-internal.h" | |
9 | #include "common/macros.h" | |
10 | ||
c0374092 JR |
11 | const char *lttng_domain_type_str(enum lttng_domain_type domain_type) |
12 | { | |
13 | switch (domain_type) { | |
14 | case LTTNG_DOMAIN_NONE: | |
15 | return "none"; | |
16 | case LTTNG_DOMAIN_KERNEL: | |
17 | return "kernel"; | |
18 | case LTTNG_DOMAIN_UST: | |
19 | return "ust"; | |
20 | case LTTNG_DOMAIN_JUL: | |
21 | return "jul"; | |
22 | case LTTNG_DOMAIN_LOG4J: | |
23 | return "log4j"; | |
24 | case LTTNG_DOMAIN_PYTHON: | |
25 | return "python"; | |
26 | default: | |
27 | return "???"; | |
28 | } | |
29 | } |