Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4388005yba; Tue, 7 May 2019 17:46:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3SM/my87xuQ2Kcb6FxNaXrSuUeH+oOA7jZMCH5L+3plK2PzQjswhRDjxKI1B0+U6DP/7v X-Received: by 2002:a17:902:5983:: with SMTP id p3mr11773605pli.224.1557276391463; Tue, 07 May 2019 17:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557276391; cv=none; d=google.com; s=arc-20160816; b=pkl3YuU46ESaGZ1wExnAanUf+HbV5OjOHvkhpOUTThlDx1YdsBPNtfS62K9HHGb0d0 qD0zpDTD98g32xmsYpznkHaoSyeaQaJK4bZ8L4JbeMXsp0ZfG7hhVaScAGjiQFbzZe3j 7gDq8xa6HQbkgS0LsT1VgN3eq0viCJup5k/zycBXugJSRuH+GZC8dKtMV0JmssYWjg1W GdcQsYGFLLq/WPbjXmnH8/MQ5WGr1IqLuDn/qK3Nlfi6BYDuwQeJjCvCu/fjxmYN9ojM y/Q/bhuKRGcU5VlqT6lmBUtzI+dNr1yxg9Ux12vmKzByFp+3i/8ySN7OPCNyYG2RfdON kzHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=6EDuWSu8muwlSOJop1XWURTOr16VpBIYoXdtsCu/m70=; b=vMoJw/auDp1z+eEY//P+1GcIFQ6m+RJSo1SJaJngDKEF2a8lfTXXKjkyOiMWs+rHmD SdCCPnpM3WZJkeb66gZ/4gFwWJeJQgarNm98CAnxBABTA5QGVAKvoYYZeNs99Gf4nSAm kzjc0TRyuEFqsZgLWBz4uUYAg1PcBTsaCesHAcFu8sRCH3mkOjOh9kUEnjXypLwvfcJW oFx30QIYbdUIsAeuIW/fc/ZOKxyL8j1zYgSV6sLBSXXp9jZ2N0Z+6006i6eF6nAvADzi +87tV54VpYaqKIjI6jR5dsEgbqFpKvgwaYTOeVK6PxuuvgzPh6itRuP3iO+RAP6PkBQT UkLQ== ARC-Authentication-Results: i=1; mx.google.com; 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 ca10si9304126plb.172.2019.05.07.17.46.15; Tue, 07 May 2019 17:46:31 -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; 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 S1726403AbfEHApP (ORCPT + 99 others); Tue, 7 May 2019 20:45:15 -0400 Received: from ozlabs.org ([203.11.71.1]:32875 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfEHApO (ORCPT ); Tue, 7 May 2019 20:45:14 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 44zHnN3NLtz9s00; Wed, 8 May 2019 10:45:12 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/ftrace: Enable C Version of recordmcount In-Reply-To: <4464516c0b6835b42acc65e088b6d7f88fe886f2.1557235811.git.christophe.leroy@c-s.fr> References: <4464516c0b6835b42acc65e088b6d7f88fe886f2.1557235811.git.christophe.leroy@c-s.fr> Date: Wed, 08 May 2019 10:45:12 +1000 Message-ID: <87ef59wz8n.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christophe Leroy writes: > Selects HAVE_C_RECORDMCOUNT to use the C version of the recordmcount > intead of the old Perl Version of recordmcount. > > This should improve build time. It also seems like the old Perl Version > misses some calls to _mcount that the C version finds. That would make this a bug fix possibly for stable even. Any more details on what the difference is, is it just some random subset of functions or some pattern? cheers > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 2711aac24621..d87de4f9da61 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -180,6 +180,7 @@ config PPC > select HAVE_ARCH_NVRAM_OPS > select HAVE_ARCH_SECCOMP_FILTER > select HAVE_ARCH_TRACEHOOK > + select HAVE_C_RECORDMCOUNT > select HAVE_CBPF_JIT if !PPC64 > select HAVE_STACKPROTECTOR if PPC64 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r13) > select HAVE_STACKPROTECTOR if PPC32 && $(cc-option,-mstack-protector-guard=tls -mstack-protector-guard-reg=r2) > -- > 2.13.3