Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1272067imu; Fri, 9 Nov 2018 13:45:07 -0800 (PST) X-Google-Smtp-Source: AJdET5f6LYqW1wK7/mtQUk2cUeGO4TfuvovXBURTKo1+XdBwOWDQmvO5iHFbSvW3x+JvGf7U4P4o X-Received: by 2002:a63:e943:: with SMTP id q3-v6mr8953942pgj.42.1541799907869; Fri, 09 Nov 2018 13:45:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541799907; cv=none; d=google.com; s=arc-20160816; b=LXRDbFfS59tuHXxt7KIWbLwE3nerTz/MzQrjLyS99SuRqdO2ZLx6gkw0b9AEWOwDzt 7lGJLPwWl3AIS+tbvi8JAlFZTR3fZw5rP0xV2ayGEr0zg0s8KzzRkQBZ+EDl7+tk7Ss/ sgJkFdEeYIlm9+DtvggzbdStHvH6omBEqynbX/Q4ngjWwzNj+3SbzGaHk3fmckcygTic 3GyUPEwyJ0jhVmT0LFvJJL+pP8p/+tDp3DNdm12FD5I8oCULIR78NDKCaUhEiyvx+KPB uyXpIcvA8Yo3h7iEKpvx1ov09pBAQ3ugjMNRBeGpNYcgA0KtID7ve33e1q7CTgumMbmg Oesw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=hqJ7pcO5NYDfYXcE0OO3/3ZwHjLAdN6UiWAsLpGWfII=; b=APeV559ln1S4Ax83hoQ7/eww5QhrmAEH6doF+7JJvhMPuYWaV/yyuPksG6F/NvNnlr a+N0Yul+R3ldAKn0gv0HRkeBWVTxiTYGFz/zFgQNov9bBH4rVpSZjvp5yAcNsSQJdPVE gCLKwnsZgJ1/YLzym9Jyazdi5H308wEqrUF84hl/8cuSsXejpIVdzo9fEzCA6tLHiLHH ikRznHBVg/Tc/i7RgJGb0scZdVrhc8OQDcHPiMwttj2fCmuXI9EMWIr3XEl3UN8aC3cg LJ5BdMJQXl9pZrMTrdP9aDeXHA832x2QZ8+iLbWNxy0kB7Onpgp7djTSF2yupHFBz6f4 SOvw== 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 p18si7915445pgb.469.2018.11.09.13.44.52; Fri, 09 Nov 2018 13:45:07 -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 S1728267AbeKJH0v (ORCPT + 99 others); Sat, 10 Nov 2018 02:26:51 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:48644 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726110AbeKJH0v (ORCPT ); Sat, 10 Nov 2018 02:26:51 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 0E49B72CBF9; Sat, 10 Nov 2018 00:44:23 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id 02CEF7CD1FF; Sat, 10 Nov 2018 00:44:22 +0300 (MSK) Date: Sat, 10 Nov 2018 00:44:22 +0300 From: "Dmitry V. Levin" To: Vineet Gupta Cc: Andy Lutomirski , Elvira Khabirova , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/13] elf-em.h: add EM_ARC Message-ID: <20181109214422.GB1907@altlinux.org> Mail-Followup-To: Vineet Gupta , Andy Lutomirski , Elvira Khabirova , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181109031536.GB21511@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 09, 2018 at 04:41:36PM +0000, Vineet Gupta wrote: > On 11/8/18 7:15 PM, Dmitry V. Levin wrote: > > The uapi/linux/audit.h header is going to use EM_ARC in order > > to define AUDIT_ARCH_ARC which is needed to implement > > syscall_get_arch() which in turn is required to extend > > the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. > > > > The value for EM_ARC has been taken from > > https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__www.sco.com_devel= opers_gabi_2012-2D12-2D31_ch4.eheader.html&d=3DDwIBAg&c=3DDPL6_X_6JkXFx7AXW= qB0tg&r=3Dc14YS-cH-kdhTOW89KozFhBtBJgs1zXscZojEZQ0THs&m=3DUCr-dDO1BWV4K-CXh= pcDRnN4Urr4_UgSKBeEaczUAmE&s=3DXmSWUKeqq324aU46NSTbHc12dH-1vVnA4G3Rm-01WD4&= e=3D > > > > Signed-off-by: Dmitry V. Levin > > --- > > include/uapi/linux/elf-em.h | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h > > index ba3696e3d694..56ff3f9d9633 100644 > > --- a/include/uapi/linux/elf-em.h > > +++ b/include/uapi/linux/elf-em.h > > @@ -26,6 +26,7 @@ > > #define EM_ARM 40 /* ARM 32 bit */ > > #define EM_SH 42 /* SuperH */ > > #define EM_SPARCV9 43 /* SPARC v9 64-bit */ > > +#define EM_ARC 45 /* Argonaut RISC Core */ >=20 > Please use EM_ARCOMPACT (for original ARC ISA) and EM_ARCV2 - both define= d in > arch/arc/include/asm/elf.h OK, but we would have to move both EM_ARCOMPACT and EM_ARCV2 to include/uapi/linux/elf-em.h file first, so they could be used to define AUDIT_ARCH_* constants in include/uapi/linux/audit.h file. --=20 ldv --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJb5f+2AAoJEAVFT+BVnCUINs8QAK8S8CIiVI5h33SFSEr42QKV HTACxj8d18EPr0iAXn/DQWqQH6e1hUhaJJpdrKVw2RyKNrw94sg59z9lmFH94hYp 6EdleM370/XxSStIV/gUGX8PtUl6b9Li0MckxkZVmJttpXhyyxp6dVQ7NEpjLrML cChbO7krmDDWLL56RH11xNX0ULITidAMIWXQy+9s42O227tyxPK6i5f376RwP02d 2ZPBC8tRrb9DUzReRjRw3F6FnCeXuRCaYZTWDjLOfJy6ufkHg9mejbII3ikeF6yY XYEWKxLLU5myk6LSm+ayu82Neak+y37rpnTneGvm2XSlV28/nvk+aMARpTNqjPhL 8tGZZcfj6yVyKibVZTGGMn5xsegxtkDSJgex2Gg+1r1j2k2WM3T5FbpF4L4ccvWN yIiZZsOJgKJ3GR5rxQrlVjLZDm6AWLySETHhnimxDkDZRH67j/okH02AKAB7lZ6c RCjuZ4IaxvQAsNtcHtcNgUS0Q/tFdRxFYJWl3XQg4A9anraQ82fn5S9gCgGLVuc7 jIKBZZWD2s+tIpNnBQSz294rdAukS5y14FzCEaBfgc9kSXxMQXiFhnP5fOQ3OOgt u0OOwAStHlxhwb1VmzMOfeaxOa6lB6YNi42ycT5sV26gjHVGfMsM4IArfCF5/ZYW Gm+7HRaq8bxSptAjU0BX =v5LH -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--