SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / src / common / domain.c
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
11 LTTNG_HIDDEN
12 const char *lttng_domain_type_str(enum lttng_domain_type domain_type)
13 {
14 switch (domain_type) {
15 case LTTNG_DOMAIN_NONE:
16 return "none";
17 case LTTNG_DOMAIN_KERNEL:
18 return "kernel";
19 case LTTNG_DOMAIN_UST:
20 return "ust";
21 case LTTNG_DOMAIN_JUL:
22 return "jul";
23 case LTTNG_DOMAIN_LOG4J:
24 return "log4j";
25 case LTTNG_DOMAIN_PYTHON:
26 return "python";
27 default:
28 return "???";
29 }
30 }
This page took 0.041711 seconds and 5 git commands to generate.