2 * Copyright (C) 2014 David Goulet <dgoulet@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_CONSTANT_H
9 #define LTTNG_CONSTANT_H
11 #ifndef LTTNG_DEPRECATED
12 #if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5) || __GNUC__ >= 5)
13 #define LTTNG_DEPRECATED(msg) __attribute__((deprecated(msg)))
15 #define LTTNG_DEPRECATED(msg) __attribute__((deprecated))
16 #endif /* defined __GNUC__ */
17 #endif /* LTTNG_DEPRECATED */
21 * Necessary to include the fixed width type limits on glibc versions older
22 * than 2.18 when building with a C++ compiler.
24 #ifndef __STDC_LIMIT_MACROS
25 #define __STDC_LIMIT_MACROS
27 #undef __STDC_LIMIT_MACROS
28 #else /* #ifndef __STDC_LIMIT_MACROS */
30 #endif /* #else #ifndef __STDC_LIMIT_MACROS */
31 #include <sys/types.h>
34 * Event symbol length. Copied from LTTng kernel ABI.
39 Maximum symbol length.
43 #define LTTNG_SYMBOL_NAME_LEN 256
46 * PROC(5) mentions that PID_MAX_LIMIT may not exceed 2^22 on 64-bit HW.
47 * We prefer to use 32-bits for simplicity's sake.
49 #define LTTNG_MAX_PID INT32_MAX
50 #define LTTNG_MAX_PID_STR "2147483647"
58 #define LTTNG_NAME_MAX 255
61 * POSIX guarantees that a host name will not exceed 255 characters.
62 * Moreover, RFC 1035 limits the length of a fully qualified domain name (FQDN)
65 * 256 is used to include a trailing NULL character.
67 #define LTTNG_HOST_NAME_MAX 256
69 #define LTTNG_PATH_MAX 4096
71 #endif /* LTTNG_CONSTANT_H */
This page took 0.031075 seconds and 5 git commands to generate.