Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3058733ioo; Tue, 24 May 2022 12:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZQP/BesKir5qwSVYCVciEy96U5azvzmW0FTsyITwa6ucTQLBz+K5lZbZLvKJe7/jqoJ0i X-Received: by 2002:a17:907:9715:b0:6fe:d943:3116 with SMTP id jg21-20020a170907971500b006fed9433116mr11297596ejc.257.1653419006445; Tue, 24 May 2022 12:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653419006; cv=none; d=google.com; s=arc-20160816; b=Dxifp5iR1AZDWztpH5w1SvycDGHReyueZVWyiCdaLNECdBRAYnhKqt3VVt+pchiysN yBSXB1oGRhXNOjy1p5qBbVip+T6LtdqCc4Ea0ti4lBMW7gilIR4BtCRI6PTXa3re5ab2 hUxy5uBPbTQJ3mZSIKrKG0ZdcP+LSDl1IQW8aCnSUpZC4vECJ6JumoqA8CV37YwyeMVK tKFt9AoA1EAdhZxlKLZy3Thx0ERWV0VWnQ3e71gozYepntNfX4mPGh81W321xJ1APZG5 gD0dZURk/NUyKwgJF0bM5P6lCjmpJUdu0uwh67v/UIw7RSHDRqFM1yKXtU88vJH7VDp1 GdDA== 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=2XZ1WUugb0+bzkv/oIVhLNr19Fk0qAaWlx4k0tucVUo=; b=j+9DfEs5yKgGN4UCqTSqOSJv+iu0KmjHZBUxsNk6M3socI3eRdB9OIxkFEVPH4Q1iH 6mlIxUvm3SvTASJQ0ftGDcqm9hU0BV4BnhlT6QaSvcZbhYoKf7mLb+WoPSzTnEGkBSEF OHSaOVHozPHolrww32mGyQ49YX8JgJeIdTkp911FqgMmBtZg0diHo1nHiMwz8wNWtARe aoRwb2noGNUI0wTLLgow7ACoVJnBEmPiC2BPlJeWLS5jiYw7ox+ClXP13gazzklaX3Vz K2RSdiBqVzXL32MWUYKYTevVf/x79N27JWzeGkampxOu2rQtJ+QReUASoYY5dQ1cYvx8 TYCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=CbdI0N6I; 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 hr8-20020a1709073f8800b006fed8746003si8240301ejc.759.2022.05.24.12.02.56; Tue, 24 May 2022 12:03:26 -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=CbdI0N6I; 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 S234156AbiEXKP4 (ORCPT + 99 others); Tue, 24 May 2022 06:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiEXKPx (ORCPT ); Tue, 24 May 2022 06:15:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2896F7E1D1 for ; Tue, 24 May 2022 03:15:52 -0700 (PDT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24OA6mHZ014857; Tue, 24 May 2022 10:15:28 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=2XZ1WUugb0+bzkv/oIVhLNr19Fk0qAaWlx4k0tucVUo=; b=CbdI0N6INX3IgU8qoH2aCnho8huUEdIQGCjRIZas9SzT7rM4yLHiK3Pk8nyy9h3PTXVP 8aqnX3CqWLXjzuqHuNiIfGQsGWdFLU/1buPqtfWH21hkB1ikwZ+FJBwdh1MUHbSxdb6M /9QkCdTWoINSZDnm3CR9/n3BcFKEAeKzRihASQxNHw7Eb4yTo5lQ7t2CDy9r2Tym5KCs Vm3fuVpwp38plo+u4cO211Dtv3eU67cdiftbUNPaNqSD7n9JssYIdniFw+OTAwlSRSaE G08feC/KaPysS6XAQbIajZZa5PhzaJ+t/b7HVkW58jB/xDFyWqojUf2TX2vqBie2W8m8 Nw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8v6j1gdw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 10:15:27 +0000 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24OA9pex024172; Tue, 24 May 2022 10:15:27 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g8v6j1gd5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 10:15:27 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24OA8KdI005623; Tue, 24 May 2022 10:15:25 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma03ams.nl.ibm.com with ESMTP id 3g6qq948fa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 24 May 2022 10:15:25 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24OAFMCp41877890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 May 2022 10:15:23 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B39AB4204F; Tue, 24 May 2022 10:15:22 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4F0C042041; Tue, 24 May 2022 10:15:22 +0000 (GMT) Received: from localhost (unknown [9.199.154.182]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 24 May 2022 10:15:22 +0000 (GMT) Date: Tue, 24 May 2022 15:45:20 +0530 From: "Naveen N. Rao" Subject: Re: [RFC PATCH 1/4] objtool: Add --mnop as an option to --mcount To: Christophe Leroy , "linuxppc-dev@lists.ozlabs.org" , Sathvika Vasireddy Cc: "aik@ozlabs.ru" , "jpoimboe@redhat.com" , "linux-kernel@vger.kernel.org" , "mbenes@suse.cz" , "mpe@ellerman.id.au" , "peterz@infradead.org" , "rostedt@goodmis.org" References: <20220523175548.922671-1-sv@linux.ibm.com> <20220523175548.922671-2-sv@linux.ibm.com> <26c7bfc8-3089-034a-70c0-8857d7cd3a99@csgroup.eu> In-Reply-To: <26c7bfc8-3089-034a-70c0-8857d7cd3a99@csgroup.eu> MIME-Version: 1.0 User-Agent: astroid/4d6b06ad (https://github.com/astroidmail/astroid) Message-Id: <1653386854.o7nss9hzc9.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-GUID: LcReRrfGxPgKstSwunxeCTJ3vHJvcc5b X-Proofpoint-ORIG-GUID: foRDD5U1AKCkYPI3EQhEuPv_b1KM-j40 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-24_06,2022-05-23_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 priorityscore=1501 mlxscore=0 adultscore=0 mlxlogscore=828 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205240051 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Christophe Leroy wrote: >=20 >=20 > Le 23/05/2022 =C3=A0 19:55, Sathvika Vasireddy a =C3=A9crit=C2=A0: >> Architectures can select HAVE_NOP_MCOUNT if they choose >> to nop out mcount call sites. If that config option is >> selected, then --mnop is passed as an option to objtool, >> along with --mcount. >>=20 >=20 > Is there a reason not to nop out mcount call sites on powerpc as well ? Yes, if there are functions that are out of range of _mcount(), then the=20 linker would have inserted long branch trampolines. We detect such cases=20 during boot. But, if we nop out the _mcount call sites during build=20 time, we will need some other way to identify these. - Naveen