[{"id":1794844,"web_url":"http://patchwork.ozlabs.org/comment/1794844/","msgid":"<20171027130411.qc2ee2z5ywocnvnw@armageddon.cambridge.arm.com>","list_archive_url":null,"date":"2017-10-27T13:04:11","subject":"Re: [PATCH v4 19/28] arm64/sve: ptrace and ELF coredump support","submitter":{"id":938,"url":"http://patchwork.ozlabs.org/api/people/938/","name":"Catalin Marinas","email":"catalin.marinas@arm.com"},"content":"On Fri, Oct 27, 2017 at 11:51:01AM +0100, Dave P Martin wrote:\n> This patch defines and implements a new regset NT_ARM_SVE, which\n> describes a thread's SVE register state.  This allows a debugger to\n> manipulate the SVE state, as well as being included in ELF\n> coredumps for post-mortem debugging.\n> \n> Because the regset size and layout are dependent on the thread's\n> current vector length, it is not possible to define a C struct to\n> describe the regset contents as is done for existing regsets.\n> Instead, and for the same reasons, NT_ARM_SVE is based on the\n> freeform variable-layout approach used for the SVE signal frame.\n> \n> Additionally, to reduce debug overhead when debugging threads that\n> might or might not have live SVE register state, NT_ARM_SVE may be\n> presented in one of two different formats: the old struct\n> user_fpsimd_state format is embedded for describing the state of a\n> thread with no live SVE state, whereas a new variable-layout\n> structure is embedded for describing live SVE state.  This avoids a\n> debugger needing to poll NT_PRFPREG in addition to NT_ARM_SVE, and\n> allows existing userspace code to handle the non-SVE case without\n> too much modification.\n> \n> For this to work, NT_ARM_SVE is defined with a fixed-format header\n> of type struct user_sve_header, which the recipient can use to\n> figure out the content, size and layout of the reset of the regset.\n> Accessor macros are defined to allow the vector-length-dependent\n> parts of the regset to be manipulated.\n> \n> Signed-off-by: Alan Hayward <alan.hayward@arm.com>\n> Signed-off-by: Dave Martin <Dave.Martin@arm.com>\n> Cc: Alex Bennée <alex.bennee@linaro.org>\n> Cc: Okamoto Takayuki <tokamoto@jp.fujitsu.com>\n\nReviewed-by: Catalin Marinas <catalin.marinas@arm.com>","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"AAs9nj6L\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yNkcg5yZpz9t2Q\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat, 28 Oct 2017 00:05:07 +1100 (AEDT)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e84Jn-00017R-95; Fri, 27 Oct 2017 13:04:59 +0000","from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]\n\thelo=foss.arm.com)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1e84JS-0000yJ-35 for linux-arm-kernel@lists.infradead.org;\n\tFri, 27 Oct 2017 13:04:39 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 90D1C1596;\n\tFri, 27 Oct 2017 06:04:16 -0700 (PDT)","from armageddon.cambridge.arm.com (armageddon.cambridge.arm.com\n\t[10.1.206.84])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id\n\t72ECE3F246; Fri, 27 Oct 2017 06:04:14 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=PqEYUAEppLAH8voUENpFJUzNFvI5BQ2Mb7jhjAc8+NY=;\n\tb=AAs9nj6LB2IY7B\n\th6UMk2MDsWPl+OGYsqRU87mGd5ralGmxoT+aaBgxDjuR5Zifk6UMfAFoL0j1IrHx+uOeraepuccd4\n\t/8qpifkRnCrjfqtrQWUyYZcGp2w7kfbtDcGA4aLeucdgR3l0SGKJQnTdmazqBNKH+zTvF5K/8w7M1\n\tgeKJ+4rTJs0ZCrRz9/smtIX0LRu774RJVBc/qVCOvaMU2Nm3Ui36JkhhewvHEejAiKHDnG95837gQ\n\thzQjMKEQJ3yyOT8ReCXyss+y6O+lvDELyxNyOXdm3FNPmzeZBUWBmQNcaW/fO6r9sBZ9KT6vzwe0u\n\tNEUYIdU5GEzVcsjL0Lgg==;","Date":"Fri, 27 Oct 2017 14:04:11 +0100","From":"Catalin Marinas <catalin.marinas@arm.com>","To":"Dave Martin <Dave.Martin@arm.com>","Subject":"Re: [PATCH v4 19/28] arm64/sve: ptrace and ELF coredump support","Message-ID":"<20171027130411.qc2ee2z5ywocnvnw@armageddon.cambridge.arm.com>","References":"<1509101470-7881-1-git-send-email-Dave.Martin@arm.com>\n\t<1509101470-7881-20-git-send-email-Dave.Martin@arm.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<1509101470-7881-20-git-send-email-Dave.Martin@arm.com>","User-Agent":"NeoMutt/20170113 (1.7.2)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20171027_060438_170884_8A93C5E7 ","X-CRM114-Status":"GOOD (  12.99  )","X-Spam-Score":"-6.9 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-arch@vger.kernel.org, Okamoto Takayuki <tokamoto@jp.fujitsu.com>,\n\tlibc-alpha@sourceware.org, Ard Biesheuvel <ard.biesheuvel@linaro.org>, \n\tSzabolcs Nagy\n\t<szabolcs.nagy@arm.com>, Will Deacon <will.deacon@arm.com>, Alan Hayward\n\t<alan.hayward@arm.com>, Alex =?iso-8859-1?q?Benn=E9e?=\n\t<alex.bennee@linaro.org>, kvmarm@lists.cs.columbia.edu,\n\tlinux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"iso-8859-1\"","Content-Transfer-Encoding":"quoted-printable","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]