| 1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
| 2 | * |
| 3 | * wrapper/namespace.h |
| 4 | * |
| 5 | * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 6 | * 2019 Michael Jeanson <mjeanson@efficios.com> |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | #ifndef _LTTNG_WRAPPER_NAMESPACE_H |
| 11 | #define _LTTNG_WRAPPER_NAMESPACE_H |
| 12 | |
| 13 | #include <linux/version.h> |
| 14 | |
| 15 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)) |
| 16 | #define lttng_ns_inum ns.inum |
| 17 | #else |
| 18 | #define lttng_ns_inum proc_inum |
| 19 | #endif |
| 20 | |
| 21 | #endif /* _LTTNG_WRAPPER_NAMESPACE_H */ |