2 * Copyright (C) 2014 - David Goulet <dgoulet@efficios.com>
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, version 2.1 only,
6 * as published by the Free Software Foundation.
8 * This library 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 Lesser General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef LTTNG_CONSTANT_H
19 #define LTTNG_CONSTANT_H
21 #ifndef LTTNG_DEPRECATED
22 #if defined (__GNUC__) \
23 && ((__GNUC_MAJOR__ == 4) && (__GNUC_MINOR__ >= 5) \
24 || __GNUC_MAJOR__ >= 5)
25 #define LTTNG_DEPRECATED(msg) __attribute__((deprecated(msg)))
27 #define LTTNG_DEPRECATED(msg) __attribute__((deprecated))
28 #endif /* defined __GNUC__ */
29 #endif /* LTTNG_DEPRECATED */
33 * Necessary to include the fixed width type limits on glibc versions older
34 * than 2.18 when building with a C++ compiler.
36 #ifndef __STDC_LIMIT_MACROS
37 #define __STDC_LIMIT_MACROS
39 #undef __STDC_LIMIT_MACROS
40 #else /* #ifndef __STDC_LIMIT_MACROS */
42 #endif /* #else #ifndef __STDC_LIMIT_MACROS */
43 #include <sys/types.h>
46 * Event symbol length. Copied from LTTng kernel ABI.
48 #define LTTNG_SYMBOL_NAME_LEN 256
51 * PROC(5) mentions that PID_MAX_LIMIT may not exceed 2^22 on 64-bit HW.
52 * We prefer to use 32-bits for simplicity's sake.
54 #define LTTNG_MAX_PID INT32_MAX
55 #define LTTNG_MAX_PID_STR "2147483647"
57 #endif /* LTTNG_CONSTANT_H */
This page took 0.031074 seconds and 4 git commands to generate.