Cleanup: Move instrumentation/ headers to include/instrumentation/
[lttng-modules.git] / wrapper / namespace.h
CommitLineData
b7cdc182 1/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
a6cf40a4
MJ
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
1965e6b4
MJ
21#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
22#define lttng_user_ns_parent parent
23#else
24#define lttng_user_ns_parent creator->user_ns
25#endif
26
a6cf40a4 27#endif /* _LTTNG_WRAPPER_NAMESPACE_H */
This page took 0.024609 seconds and 4 git commands to generate.