Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1028038ybf; Thu, 27 Feb 2020 03:50:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyF0snVQD0bfsgIo6cZ8qU+sqH+aCTPZpIxxhjrAv2oGYwZNEpGR/YKvsI2dwgIReThAm4z X-Received: by 2002:a05:6830:12d5:: with SMTP id a21mr3054023otq.296.1582804228719; Thu, 27 Feb 2020 03:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582804228; cv=none; d=google.com; s=arc-20160816; b=Q8ZmSah2U7I3XXxkTtlk8rnsw4JLvkg4ZUOrUEuOljxk3jtuT2dcxjxZgW/7IiK5D4 pwaDl5P/avgn7NHUrgNB+8mmNgGkzoumY8rLmmhH4A9zcN0LfDP1uoXPG0Z0jNYeji1O 869uE2FTd23DHogK2EYrpNNaGFXdcTkGqV1ocQ+0ve4VjfuSPTpGnG//GapcRQbcOeHC ShDaUZPbNtVeZ2TS5+91NpPMX5PTqYjD7ocz8O/u1BDSMrLyhgCE5OxA07/gdLE7HT5l 7UR+NAAd39J12G45pV1U61ksp6jsPQ7tygiBq6Cl7O7PDqdPbnj+g5kYQ8JgYKDXWTXl K7Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id :dkim-signature; bh=rrsZCfANWX796eZ+OKnGVHdYh/chmRnfp/laFf0GBPg=; b=wfJBIcQdNsUvLuQJ9ZqgA9lUqXhCLNbHhMJ10ndw4YsjRgMquhHsOtuaLKS4UpaeCZ GMZFuwR1DZ2PM4YwjSX5tYkGZ8wJPCeru+T8HuyHW5v67wH2upzlfQmSNHZK2FF/M1Ud RK5q0HKGriPC0oYysA27j5RrdOTeMyEFfal7IeZU52loUFymgH3Sp1dRINQ5XjwprRpG LqZ8zvep7oKEjOrI9fhPdy6EpdWvTCxVxFw3mOgZpq2wMth9hcFmLKY2ofGX63rqEX1z ON19qYTz4HWeuPnS1ckRzk9DZe6lBHGghWNROBcom+nqLFVYIsFVPt4QcnfajFZbw2Fj tvXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=AKgv1tmE; 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 n2si1316284otq.315.2020.02.27.03.50.16; Thu, 27 Feb 2020 03:50:28 -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=AKgv1tmE; 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 S1728941AbgB0Ls7 (ORCPT + 99 others); Thu, 27 Feb 2020 06:48:59 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:50396 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728904AbgB0Ls7 (ORCPT ); Thu, 27 Feb 2020 06:48:59 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48SrY35r9pz9tyhn; Thu, 27 Feb 2020 12:48:55 +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=AKgv1tmE; 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 nLUu1exPXEvr; Thu, 27 Feb 2020 12:48:55 +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 48SrY34Cgrz9tyhM; Thu, 27 Feb 2020 12:48:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1582804135; bh=rrsZCfANWX796eZ+OKnGVHdYh/chmRnfp/laFf0GBPg=; h=From:Subject:To:Cc:Date:From; b=AKgv1tmEwvKZ3OIRLYILWUal9y649ReaFOf/gJyPOdll405ihw+gaGhnzcEqgna8W Ld05PuCTIPI9ada8fk3zAxqi8sGl4p13kGkDVS/d4RFmz+yg1I0dq2YnF+vrcQdv4n ejy5WIAaC9JJxQcsvTazg8jgsL5XPVowSFAxHVBA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id C925C8B872; Thu, 27 Feb 2020 12:48:56 +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 Wi1TpPI9si8E; Thu, 27 Feb 2020 12:48:56 +0100 (CET) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 658008B799; Thu, 27 Feb 2020 12:48:56 +0100 (CET) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 2B3D565402; Thu, 27 Feb 2020 11:48:55 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v4 00/13] Reduce ifdef mess in ptrace To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , mikey@neuling.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 27 Feb 2020 11:48:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this series is to reduce the amount of #ifdefs in ptrace.c Link: https://github.com/linuxppc/issues/issues/128 Tentatively build checked on kisskb allthough kisskb seems overloaded and failing to complete the tests. See http://kisskb.ellerman.id.au/kisskb/branch/chleroy/head/ff12a199b21e80584096a72665023d212499accd/ v4: - Fixed a few header files inclusion, see details in relevant patchs (no marking on unchanged patches). v3: - Droped part of #ifdef removals iaw mpe's comments - Removed unneccesary includes v2: - Fixed several build failures. Now builts cleanly on kisskb, see http://kisskb.ellerman.id.au/kisskb/head/840e53cf913d6096dd60181a085f102c85d6e526/ - Droped last patch which is not related to ptrace and can be applies independently. Christophe Leroy (13): powerpc: move ptrace into a subdirectory. powerpc/ptrace: remove unused header includes powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64 powerpc/ptrace: drop PARAMETER_SAVE_AREA_OFFSET powerpc/ptrace: split out VSX related functions. powerpc/ptrace: split out ALTIVEC related functions. powerpc/ptrace: split out SPE related functions. powerpc/ptrace: split out TRANSACTIONAL_MEM related functions. powerpc/ptrace: move register viewing functions out of ptrace.c powerpc/ptrace: split out ADV_DEBUG_REGS related functions. powerpc/ptrace: create ptrace_get_debugreg() powerpc/ptrace: create ppc_gethwdinfo() powerpc/ptrace: move ptrace_triggered() into hw_breakpoint.c arch/powerpc/include/asm/ptrace.h | 2 + arch/powerpc/kernel/Makefile | 7 +- arch/powerpc/kernel/hw_breakpoint.c | 16 + arch/powerpc/kernel/ptrace.c | 3468 ------------------- arch/powerpc/kernel/ptrace/Makefile | 20 + arch/powerpc/kernel/ptrace/ptrace-adv.c | 492 +++ arch/powerpc/kernel/ptrace/ptrace-altivec.c | 128 + arch/powerpc/kernel/ptrace/ptrace-decl.h | 184 + arch/powerpc/kernel/ptrace/ptrace-noadv.c | 269 ++ arch/powerpc/kernel/ptrace/ptrace-novsx.c | 57 + arch/powerpc/kernel/ptrace/ptrace-spe.c | 66 + arch/powerpc/kernel/ptrace/ptrace-tm.c | 851 +++++ arch/powerpc/kernel/ptrace/ptrace-view.c | 904 +++++ arch/powerpc/kernel/ptrace/ptrace-vsx.c | 151 + arch/powerpc/kernel/ptrace/ptrace.c | 481 +++ arch/powerpc/kernel/{ => ptrace}/ptrace32.c | 11 - 16 files changed, 3624 insertions(+), 3483 deletions(-) delete mode 100644 arch/powerpc/kernel/ptrace.c create mode 100644 arch/powerpc/kernel/ptrace/Makefile create mode 100644 arch/powerpc/kernel/ptrace/ptrace-adv.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-altivec.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-decl.h create mode 100644 arch/powerpc/kernel/ptrace/ptrace-noadv.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-novsx.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-spe.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-tm.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-view.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace-vsx.c create mode 100644 arch/powerpc/kernel/ptrace/ptrace.c rename arch/powerpc/kernel/{ => ptrace}/ptrace32.c (96%) -- 2.25.0