tools include uapi x86: Add __NR_setns, if missing
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Jul 2017 20:13:40 +0000 (17:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:14:07 +0000 (23:14 -0300)
To help us provide a simple setns() in older distros.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Krister Johansen <kjlx@templeofstupid.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-o10a85kf6j7ig87ep6crab2k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/asm/unistd_32.h
tools/arch/x86/include/asm/unistd_64.h

index 88b3f8c8920cac566838d1443e40d49b52e612df..0e4312ffc945e3d23e3f2c161cc7ca3e0d55185b 100644 (file)
@@ -10,3 +10,6 @@
 #ifndef __NR_getcpu
 # define __NR_getcpu 318
 #endif
+#ifndef __NR_setns
+# define __NR_setns 346
+#endif
index fbdb70ee8837ef1ec34b9aff174faf9efe87de07..dd56bb36132a58f72ccc025db500a1523d703f5c 100644 (file)
@@ -10,3 +10,6 @@
 #ifndef __NR_getcpu
 # define __NR_getcpu 309
 #endif
+#ifndef __NR_setns
+#define __NR_setns 308
+#endif