Received: by 10.192.165.148 with SMTP id m20csp4296306imm; Mon, 30 Apr 2018 15:49:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqgM/mHSC0a5fCgOdHY1eP4MF7G3CBa4qetkPnmHXycWB8Mx+QnEHh4Wq4aPoPjWPk+AAY X-Received: by 2002:a65:4189:: with SMTP id a9-v6mr11237966pgq.118.1525128592714; Mon, 30 Apr 2018 15:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525128592; cv=none; d=google.com; s=arc-20160816; b=EeEQknQXkcubkZ9mhpa5ydS57YNXqtS8c1NxMQVqZVQGYPDOCfjV0GpaFdA7+TsGVP SIeYZx186WKYDCIjHSoaQFU/dsfiDcWYtFjEmS1xv9B6CL3SVjFe3JswFnM2shSFo+hT +r+Gvd8hqq1UzfPP0vyheblT7JV9HGG0H8WaQd/Sjaz2SCYDGggYih9y9tniaUz5ZhuB fnExG8VvePwQJJ3wZ6iUEdqNsuOS2g0z4ILHHq+zVcBkee23TKXjJWaoeh5+8U3Y3rr0 NnoNDc8+fpZ4VKiJlAT3YKJdXkQN3G3WpPYoYCaYSSJAWaI4IZlwe3r/07XKYwd1E98w AtUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dRci3XSCak4hKxGrsOfeP+z7zAhc3GHXPYq8mcRTII4=; b=HTGNRSl1ez70442SkjbIhT05ROJgLTumep9t2yVUiFrzdGwIfB7d7TUMraq//2QA7+ p3R79sA8FC/ow0Y1+fqWHNT2eVzysrK2rDdmukoLMqt76J3ofpLtAVGP6Z+T/Kd2wPwh rripCTd7kfE62hAbD8WNymaxojmSiNT+Mmp+DBNJibaocisnXZrMl2CYVA30HVUfxAhD YpTLpwYM/1j6ycKzl/wOoaLNNuO3nmXEHML1bmp/tHOS6RgL/HUSMr0rR0ZBQrmByES7 2iwcEFaoJtaQJ0ViwCccL6AHnXDeOuesoZODcIooMiAkHnbCiuzj0nxr0flCBySmbYby b38w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si6875346pgr.362.2018.04.30.15.49.38; Mon, 30 Apr 2018 15:49:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755475AbeD3WsI (ORCPT + 99 others); Mon, 30 Apr 2018 18:48:08 -0400 Received: from mail.efficios.com ([167.114.142.138]:52936 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755329AbeD3Wop (ORCPT ); Mon, 30 Apr 2018 18:44:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 655781A62B8; Mon, 30 Apr 2018 18:44:44 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id J41vDVOYLvA2; Mon, 30 Apr 2018 18:44:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 112D31A6294; Mon, 30 Apr 2018 18:44:44 -0400 (EDT) X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1ThDmjs9_Cnw; Mon, 30 Apr 2018 18:44:44 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 674E31A626B; Mon, 30 Apr 2018 18:44:43 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Mathieu Desnoyers Subject: [PATCH 04/14] arm: Wire up restartable sequences system call Date: Mon, 30 Apr 2018 18:44:23 -0400 Message-Id: <20180430224433.17407-5-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wire up the rseq system call on 32-bit ARM. This provides an ABI improving the speed of a user-space getcpu operation on ARM by skipping the getcpu system call on the fast path, as well as improving the speed of user-space operations on per-cpu data compared to using load-linked/store-conditional. TODO: wire up rseq_syscall() on return from system call. It is used with CONFIG_DEBUG_RSEQ=y to ensure system calls are not issued within rseq critical section Signed-off-by: Mathieu Desnoyers CC: Russell King CC: Catalin Marinas CC: Will Deacon CC: Thomas Gleixner CC: Paul Turner CC: Andrew Hunter CC: Peter Zijlstra CC: Andy Lutomirski CC: Andi Kleen CC: Dave Watson CC: Chris Lameter CC: Ingo Molnar CC: Ben Maurer CC: Steven Rostedt CC: "Paul E. McKenney" CC: Josh Triplett CC: Linus Torvalds CC: Andrew Morton CC: Boqun Feng CC: linux-api@vger.kernel.org --- arch/arm/tools/syscall.tbl | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl index 0bb0e9c6376c..fbc74b5fa3ed 100644 --- a/arch/arm/tools/syscall.tbl +++ b/arch/arm/tools/syscall.tbl @@ -412,3 +412,4 @@ 395 common pkey_alloc sys_pkey_alloc 396 common pkey_free sys_pkey_free 397 common statx sys_statx +398 common rseq sys_rseq -- 2.11.0