From patchwork Thu Feb 28 18:32:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 159428 Delivered-To: patch@linaro.org Received: by 2002:ac9:18c7:0:0:0:0:0 with SMTP id i7csp987956oce; Thu, 28 Feb 2019 10:32:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZAcvtjNxjHDps+Ufk8SUKP8Q/h+OqMkgdEHs0ZBj0Y8r/SKoGsH41LmaPhALDunUbP0M6K X-Received: by 2002:a62:b608:: with SMTP id j8mr979261pff.183.1551378769645; Thu, 28 Feb 2019 10:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551378769; cv=none; d=google.com; s=arc-20160816; b=zTddwaHlixec3CCNglofwz67FOmyEtJ6rPBN4FMVdAuIuFS+Yo9Koi6MDRuPh1xf1d Y/q7tdz4lrqKT7mImJsjO+uQlfKfufTec7L18n+QUQVV8vxt7IHrTvWUFD9+fSLlIDNU BMnN4YT0lnIM3swkT4h55+Oa1SZypAu3FuX/FjLjsONnEyXtAxK/x0OXpV4OH7QbqDfc n3e2/E/fh2Mevx3HjRQLrn7vBXHXKctT2sman8c0nfJbosi/45rzyvCBDorR8k5Wp5zQ JaUmzHhJdTbO8Ym+wmb52OHAvCTblxdU2RTDZykO7fXN0g2ZSGroSF4V+p4sAgcO/+/i EUxw== 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; bh=fEwyPH2L04a9LEFGWv0TdqamdChltjwM0W5NtFoCA4Q=; b=IYlaZ+A2udCLk9mD4794lPn5EkoCnytIpZaDONz4W0wSm6ZuvcubGyygHVQSUpgq2a hqqGFXQ5ejiSQ2FicqVbMspCqilzALoe6SUmyJAZJiSxH1X6x0StfdKCykfJN8pPDZV1 jB6SCu06bYkrr6MoX6hag7obRXVmLWT8mEA9i1IYbQfAn3T/pEumPlbJ+wqTVNCNNTWt vCiriZ9vEIL2akQAS3fyrlEHlbzzJJeVr1+fRgH1jGhgWlxbpHTwuKtF5U5KCwQCOJ02 bxuD+Ef0A9ne5L/KinirOlmWMI7qfB//ZPtj1zE5HSOe9P4m6IzOGbUMa4XxWXmZKLee Jcyg== 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 11si18065511pfh.90.2019.02.28.10.32.49; Thu, 28 Feb 2019 10:32:49 -0800 (PST) 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 S2388721AbfB1Scr (ORCPT + 31 others); Thu, 28 Feb 2019 13:32:47 -0500 Received: from foss.arm.com ([217.140.101.70]:52978 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732645AbfB1Sco (ORCPT ); Thu, 28 Feb 2019 13:32:44 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4BDBF19BF; Thu, 28 Feb 2019 10:32:44 -0800 (PST) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 72C713F5C1; Thu, 28 Feb 2019 10:32:41 -0800 (PST) From: Sudeep Holla To: x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Sudeep Holla , Catalin Marinas , Will Deacon , Oleg Nesterov , Paul Mackerras , Michael Ellerman , Thomas Gleixner , Ingo Molnar , Richard Weinberger , jdike@addtoit.com, Steve Capper , Haibo Xu , Bin Lu Subject: [PATCH 5/6] arm64: add PTRACE_SYSEMU{, SINGLESTEP} definations to uapi headers Date: Thu, 28 Feb 2019 18:32:19 +0000 Message-Id: <20190228183220.15626-6-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190228183220.15626-1-sudeep.holla@arm.com> References: <20190228183220.15626-1-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org x86 and um use 31 and 32 for PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP while powerpc uses different value maybe for legacy reasons. Though handling of PTRACE_SYSEMU can be made architecture independent, it's hard to make these definations generic. To add to this existing mess few architectures like arm, c6x and sh use 31 for PTRACE_GETFDPIC (get the ELF fdpic loadmap address). It's not possible to move the definations to generic headers. So we unfortunately have to duplicate the same defination to ARM64 if we need to support PTRACE_SYSEMU. Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Sudeep Holla --- arch/arm64/include/uapi/asm/ptrace.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h index 28d77c9ed531..8478b9007f9e 100644 --- a/arch/arm64/include/uapi/asm/ptrace.h +++ b/arch/arm64/include/uapi/asm/ptrace.h @@ -62,6 +62,9 @@ #define PSR_x 0x0000ff00 /* Extension */ #define PSR_c 0x000000ff /* Control */ +/* syscall emulation path in ptrace */ +#define PTRACE_SYSEMU 31 +#define PTRACE_SYSEMU_SINGLESTEP 32 #ifndef __ASSEMBLY__