Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3728949yba; Tue, 23 Apr 2019 08:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX/nhdS7AwCatUPfl2CWMTqYXz+ICW4NgH/+y3i7ZedFApSnrkJA7+wZmyuu1+H9bLDn0o X-Received: by 2002:aa7:8a92:: with SMTP id a18mr27836997pfc.218.1556034016226; Tue, 23 Apr 2019 08:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556034016; cv=none; d=google.com; s=arc-20160816; b=qSA7fS+EQy84RYlpYz9WgE+t4nmOkhHyzCae7tarXVAeh3YPXocw3draduHSX1/nSC BEEvclmeoDfv3e5jStgV5+Y4ukBh1G8ZhLuC8+enOCTKBlx4ZnAT3iUG1aPEGwvwJitk NBs/DZrPq+/U2n/bQjfAs0tr5uR45pR/9KiwP3/khUfjJU34mfPVaJ0OYm52DCwh2/UO NakKBdF2l2Db+x3zN7LHWzp/q4zmTM8A3cq952UUZ22pgrdeKmFuVuEof44QqPlbzirV kqDKdaSQuSW1d3aJRyZ8igcHezDvr/Krk5oOv/YGWnxSM7exExkRQuPcnJ2bhs7HbnuD OxSA== 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=vFwcJSh1/GqbCWfnNUfdIYbVJNXskPvViKXBLoaJwuo=; b=dejLyrYD21bl1fHKZPZlUmRhi3pZDjeHdfVNmoOXFD27AnS68nTI8VhfOxOfFQjB5r 5H0D/gbdoaq5HUp7gxMcg9q1oqW2ND5Tzr+qIohNdGpfHyaQOfiaoe1JjYggr5RLNOMa nm/tsomwJ8qNkzzGBMe1s9Mr9rVqJx5RgN4/EIUKC+w7E5WogVn4rE7MwRnNdxiuM08W hAWiLjr/HelADOb7wG0dHj8vdov6kwmrkopzPtjEIi6Vi0IsxpPcl5cgQCjUwbvjcWCx 9Vnu9v9u/wfOjTYlAjpgYsCkrQeqbLj8w567HAuihwC4eyx4iwiMYKLlRUM46fr+6udQ XIdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Pe+ODxdg; 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 126si1071419pgb.424.2019.04.23.08.40.00; Tue, 23 Apr 2019 08:40:16 -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=Pe+ODxdg; 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 S1728366AbfDWPhh (ORCPT + 99 others); Tue, 23 Apr 2019 11:37:37 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:46957 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbfDWPhg (ORCPT ); Tue, 23 Apr 2019 11:37:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 44pSHx3n3Nz9v03N; Tue, 23 Apr 2019 17:37:33 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=Pe+ODxdg; 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 TlVHJQFCEeQw; Tue, 23 Apr 2019 17:37:33 +0200 (CEST) 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 44pSHx2lN7z9v03M; Tue, 23 Apr 2019 17:37:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1556033853; bh=vFwcJSh1/GqbCWfnNUfdIYbVJNXskPvViKXBLoaJwuo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Pe+ODxdgXXBtKsq0/3OPcKwb2kMTzUP8AKbFPh9+bQaM6R9GeMbYUFca7mUHqF4AU z/xbGHumf0lZ+3zfXi58hxB6DISyiUM3NNA4kPRF8IqYU7gZbr0kH944qLe/8qBDOF rq5+vrqDN1X8t5RjXKRLp4fpKPml8v6RMNjNvrQ4= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F0D8E8B8E7; Tue, 23 Apr 2019 17:37:34 +0200 (CEST) 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 DwMiDEufZd-h; Tue, 23 Apr 2019 17:37:34 +0200 (CEST) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1050E8B8C4; Tue, 23 Apr 2019 17:37:33 +0200 (CEST) Subject: Re: [PATCH 10/10] powerpc: select DYNAMIC_DEBUG_RELATIVE_POINTERS for PPC64 To: Rasmus Villemoes , Andrew Morton , linuxppc-dev@lists.ozlabs.org Cc: Jason Baron , linux-kernel@vger.kernel.org References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> <20190409212517.7321-11-linux@rasmusvillemoes.dk> From: Christophe Leroy Message-ID: Date: Tue, 23 Apr 2019 17:37:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190409212517.7321-11-linux@rasmusvillemoes.dk> 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 09/04/2019 à 23:25, Rasmus Villemoes a écrit : > Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the > four const char* members of struct _ddebug, thus saving 16 bytes per > instance (one for each pr_debug(), dev_debug() etc. in a > CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to > work out-of-the-box, though this is only compile-tested. > > Signed-off-by: Rasmus Villemoes > --- > arch/powerpc/Kconfig | 1 + > arch/powerpc/include/asm/Kbuild | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 2d0be82c3061..6821c8ae1d62 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -155,6 +155,7 @@ config PPC > select BUILDTIME_EXTABLE_SORT > select CLONE_BACKWARDS > select DCACHE_WORD_ACCESS if PPC64 && CPU_LITTLE_ENDIAN > + select DYNAMIC_DEBUG_RELATIVE_POINTERS if PPC64 Why only PPC64 ? Won't it work with PPC32 ? Or would it be counter-performant on 32 bits ? Christophe > select DYNAMIC_FTRACE if FUNCTION_TRACER > select EDAC_ATOMIC_SCRUB > select EDAC_SUPPORT > diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild > index a0c132bedfae..f332e202192a 100644 > --- a/arch/powerpc/include/asm/Kbuild > +++ b/arch/powerpc/include/asm/Kbuild > @@ -3,6 +3,7 @@ generated-y += syscall_table_64.h > generated-y += syscall_table_c32.h > generated-y += syscall_table_spu.h > generic-y += div64.h > +generic-y += dynamic_debug.h > generic-y += export.h > generic-y += irq_regs.h > generic-y += local64.h >