From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B60B3C0218A for ; Tue, 28 Jan 2025 16:17:41 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Yj9Rm19lRz3055; Wed, 29 Jan 2025 03:17:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=194.107.17.57 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1738081060; cv=none; b=UzefE5f3AejfzdSTqHKqfOEdsjYsBY6Sj/Go4qpSMQshOTbdbAUsfwEtfdWYNO5u9tQCB/use6OesivKzfOCZOV2JvxwMLReJYhLC6DXRe1lCIzJLXy2/QqkLibxlIqBaSAk/6BulOkNVmjD7/REU0Se8IyzkYmqxYSt/0hcBdbVNYprB2lMmwdis7Iz59oeTCRQO2ZXHf5h3C0wzRK88HMfefm4aM630VM4RBQYL2OPTAS7JdIgfm0mXVHzzg6k0ZWGUeI9yx7GmGB1DQ1qkAsF5v+AHnY1fxdAdgfwywtDsUqcLQzbXIxnTn8E4qkICjD1YPiAq2O7HhN7bxIrDQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1738081060; c=relaxed/relaxed; bh=08STJYfEXnSO2dRgpD+txqf8RQCLhu0SM8yhTx6WhqI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VkQwrKKaOS00KBW1CJfwZFTme78piWksYIvB22jBS+BgX/dSFXRrmYVRYXn5/C9wL6C+cdL+stm/q1gBEcgCluLybVEAbHwp7kZbriyx5R690i1HBcuw4PIobsiD1dkBsHfNbD9/dGBWNyvhNqm/nvAfk8mLOFFMjUzUpSNYiYqMzXmmI5D/hhO18xpPvOxl6/LChQE9Hw5/ueYzrZHpWErywrT9h3v6rZObZtO++K9UjsPwPuPW9Bglx5B9MiPx8RxQPQg408qjuG23V2V1+XimaX4YcdDK98s/JLWqSjyek0dXgxJc2VPiRwBHvABmshIbVbFpnw/qN8vaZ+cCxg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=strace.io; spf=pass (client-ip=194.107.17.57; helo=vmicros1.altlinux.org; envelope-from=ldv@altlinux.org; receiver=lists.ozlabs.org) smtp.mailfrom=altlinux.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=strace.io Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=altlinux.org (client-ip=194.107.17.57; helo=vmicros1.altlinux.org; envelope-from=ldv@altlinux.org; receiver=lists.ozlabs.org) Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by lists.ozlabs.org (Postfix) with ESMTP id 4Yj9Rl33fsz2xMQ for ; Wed, 29 Jan 2025 03:17:39 +1100 (AEDT) Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id CC0E572C90D; Tue, 28 Jan 2025 19:17:37 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id B9EE97CCB3A; Tue, 28 Jan 2025 18:17:37 +0200 (IST) Date: Tue, 28 Jan 2025 18:17:37 +0200 From: "Dmitry V. Levin" To: Christophe Leroy Cc: Oleg Nesterov , linux-snps-arc@lists.infradead.org, Rich Felker , Thomas Gleixner , Andreas Larsson , John Paul Adrian Glaubitz , x86@kernel.org, Arnd Bergmann , linux-mips@vger.kernel.org, "James E.J. Bottomley" , Guo Ren , "H. Peter Anvin" , sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, WANG Xuerui , Will Deacon , Eugene Syromyatnikov , Anton Ivanov , Jonas Bonn , linux-s390@vger.kernel.org, Alexander Gordeev , Madhavan Srinivasan , Vasily Gorbik , Yoshinori Sato , linux-sh@vger.kernel.org, Michael Ellerman , Helge Deller , Huacai Chen , Russell King , linux-csky@vger.kernel.org, Dave Hansen , Ingo Molnar , Vineet Gupta , Christian Borntraeger , strace-devel@lists.strace.io, linux-arch@vger.kernel.org, Albert Ou , Mike Frysinger , Davide Berardi , Renzo Davoli , linux-um@lists.infradead.org, Heiko Carstens , Charlie Jenkins , Naveen N Rao , Nicholas Piggin , Stefan Kristiansson , Borislav Petkov , loongarch@lists.linux.dev, Paul Walmsley , Stafford Horne , linux-arm-kernel@lists.infradead.org, Brian Cain , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, linux-openrisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Dinh Nguyen , linux-riscv@lists.infradead.org, Palmer Dabbelt , Sven Schnelle , Richard Weinberger , Johannes Berg , Alexey Gladkov , "David S. Miller" Subject: Re: [PATCH v3 2/6] syscall.h: add syscall_set_arguments() and syscall_set_return_value() Message-ID: <20250128161737.GD11869@strace.io> References: <20250128091626.GB8601@strace.io> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Jan 28, 2025 at 04:04:34PM +0100, Christophe Leroy wrote: > Le 28/01/2025 à 10:16, Dmitry V. Levin a écrit : > > These functions are going to be needed on all HAVE_ARCH_TRACEHOOK > > architectures to implement PTRACE_SET_SYSCALL_INFO API. > > The subject is misleading. syscall_set_return_value() already exists on > most architectures and was not addressed by commit 7962c2eddbfe. > > Maybe it would be better to handle syscall_set_return_value() in a > separate commit. syscall_set_return_value() is being added only on hexagon. I didn't think it worth a separate commit, but it's certainly possible to split this commit into two. -- ldv