Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2067036ybv; Sun, 23 Feb 2020 21:59:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyD683AHp1lMfP6/ZCFWugP9EkxGT8AxI6rmHUH32ZOzFjGs72Ogvnjz+YQERqmUSnIBq5s X-Received: by 2002:aca:ec46:: with SMTP id k67mr10651970oih.43.1582523960047; Sun, 23 Feb 2020 21:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582523960; cv=none; d=google.com; s=arc-20160816; b=VpEpGeOqbx9b5EQV6n7QPORoMCU2avBtpPFsQyB6/s4Dha/hW+AY35AYaf+9Bd4OKc P9rimIRRMeC4bEVOgLOXzwriHo+nQR9QIslrOEho9nGRRtjYwMQ5AhGaz4KIETZ5Uumr h0XCbrskfMoBnSyZcgfq++h3pDTAcfN1GL8SgJxGdJHK2Q5jR0WWblqLEVBuvrkKOnDI zLzItfm+tLnHKv3hQS+xJ8/yuhQpl+peS1vxBpYbTzHMHA9CHTvnk4rRi5aMKOykR7Hc QBHhIdWfmSRmgdeEOl5VHqkaGn/j/bHNb/zmQQUfF0VF8QSiSYNGvtARw1iMurj563ce 5JXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=sd6P6bDbrqs7ItBGISUvE6aNCKAodgqE4OhJmXsYN/s=; b=sVhWJsSTDcCmYho0AMeJ1ns6aD5zGwH1/C3F5pnClATsahKy4xmkLdWl57Cdk7qaX1 91V01IRnPgBPnz5GrBKBEl49GWPQXZiQuQ27tuhnxOlR8eLSylAbjyMaVwYJn7lqinES Tq+X7BasRWdrraamht0sM+A0jrxmbTa3czr35i9I17PDB8R5ivbz0GrywnTcL8edAwVA uIgHTBtu4EjbUUJdN6FJXNfJsNwcpctm4di9PyMvrHSMINVMDjfgiTmmEp36BROKNtMX WHRnSyr4ovVE48ohgrIvNj5YsIUUHpXIN5k+zX9O+/wnMgXmP21qfT3ZveXkTIIZ0B5U 2a0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=n91SSWp0; 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 y6si4286993oih.217.2020.02.23.21.59.08; Sun, 23 Feb 2020 21:59:20 -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; dkim=pass header.i=@c-s.fr header.s=mail header.b=n91SSWp0; 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 S1727193AbgBXF6n (ORCPT + 99 others); Mon, 24 Feb 2020 00:58:43 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:13281 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgBXF6n (ORCPT ); Mon, 24 Feb 2020 00:58:43 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48QrwF3cMyz9v149; Mon, 24 Feb 2020 06:58:37 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=n91SSWp0; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id dq2_HUFjfmjT; Mon, 24 Feb 2020 06:58:37 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48QrwF2XX7z9v148; Mon, 24 Feb 2020 06:58:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1582523917; bh=sd6P6bDbrqs7ItBGISUvE6aNCKAodgqE4OhJmXsYN/s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=n91SSWp0Fk79XdHMBCPUz91F9BSjx8IX9iTLBp/jdL8N6edFvXfYdUniDMdghh9cS IyEDCBOwXlzC89PWRlZUFRcpjcssR85wKq2CRP9hna+sY9zbFM2Xgvh7YRLXlSZCTm lPNro+Y6qls1TdSaQRId3A+ZsUo0sMUvv1S/DHJ0= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C50A48B790; Mon, 24 Feb 2020 06:58:41 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id hr3bcgBgeQo0; Mon, 24 Feb 2020 06:58:41 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 57E938B752; Mon, 24 Feb 2020 06:58:41 +0100 (CET) Subject: Re: [RFC PATCH v2 00/12] Reduce ifdef mess in ptrace To: Michael Neuling Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <7b86733f81c7e15d81ab14b98c8998011ed54880.camel@neuling.org> From: Christophe Leroy Message-ID: <5b5d8f61-c9aa-1afd-6001-44a17f00c1a6@c-s.fr> Date: Mon, 24 Feb 2020 06:58:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <7b86733f81c7e15d81ab14b98c8998011ed54880.camel@neuling.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 24/02/2020 à 03:15, Michael Neuling a écrit : > Christophe, > >> Le 28/06/2019 à 17:47, Christophe Leroy a écrit : >>> The purpose of this series is to reduce the amount of #ifdefs >>> in ptrace.c >>> >> >> Any feedback on this series which aims at fixing the issue you opened at >> https://github.com/linuxppc/issues/issues/128 ? > > Yeah, sorry my bad. You did all the hard work and I ignored it. > > I like the approach and is a long the lines I was thinking. Putting it in a > ptrace subdir, splitting out adv_debug_regs, TM, SPE, Alitivec, VSX. > ppc_gethwdinfo() looks a lot nicer now too (that was some of the worst of it). > > I've not gone through it with a fine tooth comb though. There is (rightly) a lot > of code moved around which could have introduced some issues. > > It applies on v5.2 but are you planning on updating it to a newer base? > As you noticed there is a lot of code moved around, and rebasing produces a lot of conflicts. So I didn't want to spend hours to rebase and rebase without being sure it was the right approach. Now that I got a positive feedback I'll consider rebasing it, hopping that Michael will pick it up. Christophe