From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935324AbdGTItw (ORCPT ); Thu, 20 Jul 2017 04:49:52 -0400 Received: from terminus.zytor.com ([65.50.211.136]:36953 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934375AbdGTItq (ORCPT ); Thu, 20 Jul 2017 04:49:46 -0400 Date: Thu, 20 Jul 2017 01:47:26 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: dsahern@gmail.com, kjlx@templeofstupid.com, tglx@linutronix.de, namhyung@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, wangnan0@huawei.com, acme@redhat.com, adrian.hunter@intel.com Reply-To: wangnan0@huawei.com, mingo@kernel.org, hpa@zytor.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, namhyung@kernel.org, tglx@linutronix.de, adrian.hunter@intel.com, acme@redhat.com, dsahern@gmail.com, kjlx@templeofstupid.com To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools include uapi x86: Add __NR_setns, if missing Git-Commit-ID: 59291f19824200b5a9046b79d37f02fb415335b0 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 59291f19824200b5a9046b79d37f02fb415335b0 Gitweb: http://git.kernel.org/tip/59291f19824200b5a9046b79d37f02fb415335b0 Author: Arnaldo Carvalho de Melo AuthorDate: Tue, 18 Jul 2017 17:13:40 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Jul 2017 23:14:07 -0300 tools include uapi x86: Add __NR_setns, if missing To help us provide a simple setns() in older distros. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Krister Johansen Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-o10a85kf6j7ig87ep6crab2k@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/arch/x86/include/asm/unistd_32.h | 3 +++ tools/arch/x86/include/asm/unistd_64.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/arch/x86/include/asm/unistd_32.h b/tools/arch/x86/include/asm/unistd_32.h index 88b3f8c..0e4312ff 100644 --- a/tools/arch/x86/include/asm/unistd_32.h +++ b/tools/arch/x86/include/asm/unistd_32.h @@ -10,3 +10,6 @@ #ifndef __NR_getcpu # define __NR_getcpu 318 #endif +#ifndef __NR_setns +# define __NR_setns 346 +#endif diff --git a/tools/arch/x86/include/asm/unistd_64.h b/tools/arch/x86/include/asm/unistd_64.h index fbdb70e..dd56bb3 100644 --- a/tools/arch/x86/include/asm/unistd_64.h +++ b/tools/arch/x86/include/asm/unistd_64.h @@ -10,3 +10,6 @@ #ifndef __NR_getcpu # define __NR_getcpu 309 #endif +#ifndef __NR_setns +#define __NR_setns 308 +#endif