Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp680490imi; Thu, 21 Jul 2022 08:54:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubN7nay5clYk/ytrwFVpcWeOnu97gPC0UMSf9nglA5IYxh5PbMgcJEB5H15yQTJVue8QRM X-Received: by 2002:a17:906:8a5a:b0:72b:6b60:2d9f with SMTP id gx26-20020a1709068a5a00b0072b6b602d9fmr41428733ejc.324.1658418852453; Thu, 21 Jul 2022 08:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658418852; cv=none; d=google.com; s=arc-20160816; b=AEXLMGoHpyRFiM+wOeIR/vJtVIib2fWjzRqbdyrDGMoboZMSQw30Jbk+aZxYkac1SI M5xqX5ELrJ5bvUyec0WhO7+sdV9HPkpb6fnwJnf6LpaMDIw+P+da94WN5kAPgiWOOxjC KliQXiZnBCa3FrYCzVOmr6iJiqfi/Cafh3bsavdEvTr1sBA5h7X1FmuQHZET10AMTRWC FfVal7DQFz4gSZxp/O+sjt/1STywI0eijO1Tsy8YUzcqvFxL/dK7woKuQFUL9mbQmRxh m2u8EJlPVY/JIAm3lWkbVU8GXsDU9Q+W792XUIYLc4g4EISUDh5TA7Jyi/UwyuTvDLfY 7v3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=KSP2NiNm+W6RdtdM2aPzlcIzN27e6XRPEbVk2NnSevI=; b=ovfvwhmZ28hb3GEmB1OAy2P4vKd8YSZCQCkNUyUQG1dcPIlUmfAgWVQ3Xkjj23haPb x/MArTMbh0IAPGu/D2KHB6H7WXOYx5gIuWVtLo9nCAouddzKcCPFlEt+tQSRDGXBJztg fUbaI2FmMDt7Bm1NnmEXI4KulwFGZglQWXQc7tRrWErNkpkPXDlnSjGBmgi2DYSZuoXm 8l7Mt+105J345R272EicCWtVS7OOrhdLuRQr3lIQIRKw88VfBFF3A6Kf183uxFU2UYf5 zEJTpXlO7WYOZ5bIEuHvJWQP9/Bx2pIAeFfyKY/cgdEpfrfPIzb8TcBpi3HIyrcpzDx0 wqtQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a170906384d00b0072afb847529si2698817ejc.276.2022.07.21.08.53.44; Thu, 21 Jul 2022 08:54:12 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbiGUPDK (ORCPT + 99 others); Thu, 21 Jul 2022 11:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiGUPDJ (ORCPT ); Thu, 21 Jul 2022 11:03:09 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC418051B for ; Thu, 21 Jul 2022 08:03:08 -0700 (PDT) Received: from fraeml741-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4LpbPB3Q7pz67mS5; Thu, 21 Jul 2022 23:01:18 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml741-chm.china.huawei.com (10.206.15.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Jul 2022 17:03:06 +0200 Received: from [10.195.35.124] (10.195.35.124) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Jul 2022 16:03:06 +0100 Message-ID: Date: Thu, 21 Jul 2022 16:03:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: John Garry Subject: Re: faddr2line issue To: Josh Poimboeuf CC: , Linux Kernel Mailing List References: <09df26a9-27af-1276-34c6-820bf7e27da8@huawei.com> <3492d341-a681-f344-f5cd-5b1ea3725f31@huawei.com> <20220714164136.n2ycc5axt7vtctgs@treble> <64da0019-4816-a409-be93-b1cf7021c584@huawei.com> <20220720000654.yospyvbrfliy3lrn@treble> <3bd9817d-1959-c081-e5d0-8b0e70b3f41e@huawei.com> <20220720233243.lyjrhi43bwaxecm3@treble> In-Reply-To: <20220720233243.lyjrhi43bwaxecm3@treble> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.195.35.124] X-ClientProxiedBy: lhreml743-chm.china.huawei.com (10.201.108.193) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On 21/07/2022 00:32, Josh Poimboeuf wrote: > On Wed, Jul 20, 2022 at 09:39:42AM +0100, John Garry wrote: >> On 20/07/2022 01:06, Josh Poimboeuf wrote: >>>> So adding config DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT to v5.19-rc2 got it >>>> working again for me on arm64. However commit dcea997beed6 ("faddr2line: Fix >>>> overlapping text section failures, the sequel") seems to be broken for me, >>>> below - this first appeared in rc3. Any idea what the issue could be? >>>> >>>> $./faddr.sh hisi_sas_sata_done+0x8/0x38 >>>> hisi_sas_sata_done+0x8/0x38: >>>> fs mm ??:0 >>> Hm, what does faddr.sh do? >> >> ah, it's just a wrapper to call scripts/faddr2line with vmlinux and $1 >> (being hisi_sas_sata_done+0x8/0x38, above) args >> >>> Does addr2line also fail? >> >> faddr2line fails, as below. >> >>> >>> Can you run >>> >>> bash -x scripts/faddr2line hisi_sas_sata_done+0x8/0x38 >>> >>> and share the output? >> >> on rc3 we get: >> >> https://raw.githubusercontent.com/hisilicon/kernel-dev/private-topic-sas-5.19-faddr2line-linux-rc3/before2 > > Does this fix it? > > diff --git a/scripts/faddr2line b/scripts/faddr2line > index 94ed98dd899f..57099687e5e1 100755 > --- a/scripts/faddr2line > +++ b/scripts/faddr2line > @@ -112,7 +112,9 @@ __faddr2line() { > # section offsets. > local file_type=$(${READELF} --file-header $objfile | > ${AWK} '$1 == "Type:" { print $2; exit }') > - [[ $file_type = "EXEC" ]] && is_vmlinux=1 > + if [[ $file_type = "EXEC" ]] || [[ $file_type == "DYN" ]]; then > + is_vmlinux=1 > + fi > > # Go through each of the object's symbols which match the func name. > # In rare cases there might be duplicates, in which case we print all > . Yeah, looks ok now. Tested-by: John Garry thanks