Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp603802ybg; Thu, 19 Mar 2020 05:37:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu5985naIrrafaJga1pAO3kE6X5Je6BIst5SwHXqrV2iOOPu/cCMPOnKom7bVcYdkBgAJ2t X-Received: by 2002:a9d:60b:: with SMTP id 11mr2099178otn.126.1584621464069; Thu, 19 Mar 2020 05:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584621464; cv=none; d=google.com; s=arc-20160816; b=l+28kGCUNoX74LmKdvhmJvFUQnjRwV/hIj0tjum6YgIBUt08uuXONZ5LdDb34F9FzK xGxCbGERBgDgRwy06MajDSIZ5IKcNftNQvDQA3Iks5TjONujvYW3zAx5f1TBXc4jbZkH 96bZjZWSPWJK/iHygYzjp1/Gshsd+/CBawCGyvVgW6D4mlUIDPQg/g8pL4uGJjjBdOhP MGCGVe+Mjce2prObeUG9XwwVmsfyXeKNzzv1pVvPSuV3VkGuhWE6KqS0KEa1V1QZWgIJ eQMwMyvfjgbBmPepuBqJ/zxEi64NANXUgWy9UWmjP8Dvckh28d8/5M6C+OfJhb99jg6Z 105w== 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=1l8seTHHmExwEDOIcnw6yPPOnKc59tjApU1N0ParQfA=; b=wG/I89NyjbQ8t077RaZWubvjll2zVZYodvq2+SJ5skvdkLhss/LJwu8dk+PfDgwUfo 0Gsz6Foh3mpRJmc46rt8P0pXihH82V4J6JVz4PosegzzE6QGMV/sZPOvFd7BRo+FX/ZT 9mlA2P/vvzJvtnGSfwqYLkG3pRX8xLT83EbvHKM00wh1cFi3SRN4zTvIYSq1lE+x7nE2 W6u4VOUOTXKMBSsmJ9Vu67XgO80bhxrmKRrstQfD4yvdMSWfCax5+pQ2k+mR36qNt9NI C49HR6jnfRNt3SVeAJEoj1GsJVnMLLemBVaYTJrjlyJdmexwwDn5ZX8rPdrST41TAOBb tbQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=qPKgnd8p; 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 e19si1283313otp.40.2020.03.19.05.37.31; Thu, 19 Mar 2020 05:37:44 -0700 (PDT) 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=qPKgnd8p; 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 S1727091AbgCSMhJ (ORCPT + 99 others); Thu, 19 Mar 2020 08:37:09 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:36391 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726975AbgCSMhJ (ORCPT ); Thu, 19 Mar 2020 08:37:09 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48jmcx72fhz9txpt; Thu, 19 Mar 2020 13:37:05 +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=qPKgnd8p; 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 73Jdkf_Zz9r3; Thu, 19 Mar 2020 13:37:05 +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 48jmcx5r95z9txn7; Thu, 19 Mar 2020 13:37:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584621425; bh=1l8seTHHmExwEDOIcnw6yPPOnKc59tjApU1N0ParQfA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=qPKgnd8pWHAz0ALEh0DXg6kUaXlRtuCDj39r0To7+ErwNFGf2pV6MacAucHN+F7u2 A5AWzbgfYDKjjoOIk6Ym4cu/bJsjEvuJYH+NkkLsOi/fQuhkPlf7nH+YnPljevNc8P ZQfJ8SdwY7WktUk9WiQ8Nn8BN/SHGVmZxEU+hkXE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 255868B84E; Thu, 19 Mar 2020 13:37:07 +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 BHYaNWr09YCd; Thu, 19 Mar 2020 13:37:07 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 028D78B769; Thu, 19 Mar 2020 13:37:04 +0100 (CET) Subject: Re: [PATCH v11 0/8] Disable compat cruft on ppc64le v11 To: Michal Suchanek , linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexander Viro , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , Andy Shevchenko , Thomas Gleixner , Arnd Bergmann , Nayna Jain , Eric Richter , Claudio Carvalho , Nicholas Piggin , Hari Bathini , Masahiro Yamada , Thiago Jung Bauermann , Sebastian Andrzej Siewior , Valentin Schneider , Jordan Niethe , Michael Neuling , Gustavo Luiz Duarte , Allison Randal , "Eric W. Biederman" , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20200225173541.1549955-1-npiggin@gmail.com> From: Christophe Leroy Message-ID: Date: Thu, 19 Mar 2020 13:36:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: 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 You sent it twice ? Any difference between the two dispatch ? Christophe Le 19/03/2020 à 13:19, Michal Suchanek a écrit : > Less code means less bugs so add a knob to skip the compat stuff. > > Changes in v2: saner CONFIG_COMPAT ifdefs > Changes in v3: > - change llseek to 32bit instead of builing it unconditionally in fs > - clanup the makefile conditionals > - remove some ifdefs or convert to IS_DEFINED where possible > Changes in v4: > - cleanup is_32bit_task and current_is_64bit > - more makefile cleanup > Changes in v5: > - more current_is_64bit cleanup > - split off callchain.c 32bit and 64bit parts > Changes in v6: > - cleanup makefile after split > - consolidate read_user_stack_32 > - fix some checkpatch warnings > Changes in v7: > - add back __ARCH_WANT_SYS_LLSEEK to fix build with llseek > - remove leftover hunk > - add review tags > Changes in v8: > - consolidate valid_user_sp to fix it in the split callchain.c > - fix build errors/warnings with PPC64 !COMPAT and PPC32 > Changes in v9: > - remove current_is_64bit() > Chanegs in v10: > - rebase, sent together with the syscall cleanup > Changes in v11: > - rebase > - add MAINTAINERS pattern for ppc perf > > Michal Suchanek (8): > powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro > powerpc: move common register copy functions from signal_32.c to > signal.c > powerpc/perf: consolidate read_user_stack_32 > powerpc/perf: consolidate valid_user_sp > powerpc/64: make buildable without CONFIG_COMPAT > powerpc/64: Make COMPAT user-selectable disabled on littleendian by > default. > powerpc/perf: split callchain.c by bitness > MAINTAINERS: perf: Add pattern that matches ppc perf to the perf > entry. > > MAINTAINERS | 2 + > arch/powerpc/Kconfig | 5 +- > arch/powerpc/include/asm/thread_info.h | 4 +- > arch/powerpc/include/asm/unistd.h | 1 + > arch/powerpc/kernel/Makefile | 6 +- > arch/powerpc/kernel/entry_64.S | 2 + > arch/powerpc/kernel/signal.c | 144 +++++++++- > arch/powerpc/kernel/signal_32.c | 140 ---------- > arch/powerpc/kernel/syscall_64.c | 6 +- > arch/powerpc/kernel/vdso.c | 3 +- > arch/powerpc/perf/Makefile | 5 +- > arch/powerpc/perf/callchain.c | 356 +------------------------ > arch/powerpc/perf/callchain.h | 20 ++ > arch/powerpc/perf/callchain_32.c | 196 ++++++++++++++ > arch/powerpc/perf/callchain_64.c | 174 ++++++++++++ > fs/read_write.c | 3 +- > 16 files changed, 556 insertions(+), 511 deletions(-) > create mode 100644 arch/powerpc/perf/callchain.h > create mode 100644 arch/powerpc/perf/callchain_32.c > create mode 100644 arch/powerpc/perf/callchain_64.c >