Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp973410iob; Thu, 28 Apr 2022 15:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwpCa8YVqMTsh+Fb8JwheqMtVoLHLzXLDGllR72FpHvwqt6QsA+ll8MUnO+ziMaWybhiG2 X-Received: by 2002:a63:5219:0:b0:39d:7212:4b3f with SMTP id g25-20020a635219000000b0039d72124b3fmr29802482pgb.255.1651184433420; Thu, 28 Apr 2022 15:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651184433; cv=none; d=google.com; s=arc-20160816; b=MBI4mqGC9dMxaRDVO+RBMbpy2p9cH8h0iU1qRm/hYGp7XS27Xf/6v7CGe/eMvI/yql 6Z+tCoC5WD+kr5k733hjfUS1Mtxm9v+1qqKykXdA5HnqpkK9rED7py5jonZ3AS5aoDuq /Ab+jbkPqsKb0328nqsHNSPp/dW1EQPetdyOBq+K6zuzBz9SFkKMT5gfg/MsMUg84fR2 7ZQo2DvDLPftnYLI+0H5wnyjCSB6HZlrnqCKORdvh+rVsra9qGAUJnylIwD0CRe29iVc NYRP0CCWGJqW6ZXzBd40c+Yss9ZP0FYTdmYZD4yzbfARmCDD4UKxj8GZJfr9A4nlm1nf ENOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=uSwQIHRIiwhAO3MWMtPEQIyFeai8otwA3g0TJnXvjlg=; b=zjunYSpoEwtVV0sGuT0R2ixKxEQNF8YmIQcgNPDmd4TvHjED3OkeDVgzuPLJogKbBh EaY4OemY+J/fXkMUbphLrfFxPlCOGpL1q+Kw8Uv5Fw3FO2DvJ9GNXHHxkqIKgIP+FFcn wEtkzGxIwuNXFr/rupThNC+NB6V0CEGlUGWQ/yYp5w5Xwu5Azx6UOLKIvR0FOOSNa9EK F2yr+c2QPXRYeXlmRq+0u+SKhRfQuaf2ithejSkZJ1BRdqn+sla+i1L5o0zLB+zgc8QL fg0eiKunJJ5LlBbMrHkwXFY4VXLEmvm8zr4gqc6B3Xhb9TIaxl1BuRBpASlb+Mo+KEOq rKzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HPsWK9We; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056a000a8f00b0050a8eece442si5921496pfl.15.2022.04.28.15.20.14; Thu, 28 Apr 2022 15:20:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HPsWK9We; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348341AbiD1R2L (ORCPT + 99 others); Thu, 28 Apr 2022 13:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239066AbiD1R2J (ORCPT ); Thu, 28 Apr 2022 13:28:09 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01FBC5BD2C for ; Thu, 28 Apr 2022 10:24:54 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23SGwoFh036587; Thu, 28 Apr 2022 17:24:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : subject : to : cc : references : in-reply-to : mime-version : message-id : content-type : content-transfer-encoding; s=pp1; bh=uSwQIHRIiwhAO3MWMtPEQIyFeai8otwA3g0TJnXvjlg=; b=HPsWK9We42Hwd5zTyKM15HWb4J/lLE/DpPKQXnLwguHzR4L8LHCYFg6b5bNdbdpGo1M6 EgapZNqCuzOPywKBw6KpPT3bXWnqS3qR6dLRSPHLf+S5jyd2rWz1UCE35s4cUQ8zYQ1m 6BS/03X+BI1kq/CzB/EdApBqnE1X+TCcZ8sfFFjgNDPGrwtbQxf302lNKi+XH0FvrAQO o57IlmGgrriCZ3KbYuRBJltTzr+fIOheBRe04PClgjJkJ1vlKh/TGfXcDominjJ1Jft9 htfWty7IYg4gIxFp+LTK4ILB93FDt+Pa74P6hwfdC5FYq4oW3z5KrIqPe+lc6Kf8q2n6 mA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqvapd1xn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 17:24:46 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 23SHHuTB022416; Thu, 28 Apr 2022 17:24:46 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fqvapd1w5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 17:24:46 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23SHCiW5015440; Thu, 28 Apr 2022 17:24:43 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 3fm938yu3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 17:24:43 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23SHOfh850725256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Apr 2022 17:24:41 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 284ECA4060; Thu, 28 Apr 2022 17:24:41 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 84672A405C; Thu, 28 Apr 2022 17:24:40 +0000 (GMT) Received: from localhost (unknown [9.43.8.21]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 28 Apr 2022 17:24:40 +0000 (GMT) Date: Thu, 28 Apr 2022 22:54:38 +0530 From: "Naveen N. Rao" Subject: Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, llvm@lists.linux.dev, Michael Ellerman , Nathan Chancellor , Nick Desaulniers References: <1b9566f0e7185fb8fd8ef2535add7a081501ccc8.1651047542.git.naveen.n.rao@linux.vnet.ibm.com> <20220427095415.594e5120@gandalf.local.home> <1651129169.fpixr00hgx.naveen@linux.ibm.com> <20220428100602.7b215e52@gandalf.local.home> In-Reply-To: <20220428100602.7b215e52@gandalf.local.home> MIME-Version: 1.0 User-Agent: astroid/4d6b06ad (https://github.com/astroidmail/astroid) Message-Id: <1651166416.afl3n7tts7.naveen@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: V_3oPaqbt0Lmd6t9nEDoUpTU-Us_FpBk X-Proofpoint-GUID: px6PpEwvTf_aBfqjrNlCpkEXQo8w50Kq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-28_02,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 phishscore=0 spamscore=0 mlxlogscore=495 clxscore=1015 impostorscore=0 priorityscore=1501 suspectscore=0 mlxscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204280103 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Steven Rostedt wrote: > On Thu, 28 Apr 2022 13:15:22 +0530 > "Naveen N. Rao" wrote: >=20 >> Indeed, plain old -pg will be a problem. I'm not sure there is a generic= =20 >> way to address this. I suppose architectures will have to validate the=20 >> mcount locations, something like this? >=20 > Perhaps another solution is to make the mcount locations after the linkin= g > is done. The main downside to that is that it takes time to go over the > entire vmlinux, and will slow down a compile that only modified a couple = of > files. Yes, and I think that is also very useful with LTO. So, that would be a=20 good one to consider in the longer term. For now, I have posted a v2 of this series with your comments addressed. =20 It is working well in my tests on powerpc in the different=20 configurations, including the older elf abi v1 that uses -pg. If it=20 looks ok to you, we can use this approach for now. Thanks, Naveen