Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp676363rwd; Mon, 12 Jun 2023 21:22:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ79JDmTeIxl870E5e/M5NaQYeCQeT7yk0YsBk5vwmyx0HrFJvd9jTMYJ0T9FT3FVjFZ1Cxc X-Received: by 2002:a17:907:a0d:b0:96f:4db5:df69 with SMTP id bb13-20020a1709070a0d00b0096f4db5df69mr12884494ejc.23.1686630147756; Mon, 12 Jun 2023 21:22:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686630147; cv=none; d=google.com; s=arc-20160816; b=lc4pLPdee8HLyfezQ0ezCAwuWFis10uVbF7KxMNVll/l3paS52kcPkQR3s+pn3p0MP yq1f+E9E0QaqUfSF9AxkaZ7BBin7HrBGFPVzPynm1WzRH/DlwfngWIcz56wRB+4lVseJ 7mkbg0sg/FhAzhkpmLAocrAGOH+Z2am2JZxeBfd3ekntV7XWV8PWbBp28zedQy8nP1sN EX2ahJP1B0oI525tf0HlLLuDy4xZ5eZV4XOLc+sah+9q9+bL5KB+LocYjzDx4tRV/60i Z9gKO3X0u3iQtGH+lzz2CZkwBV8eHiWAjtSP9DPVuPQBjw/eZAqU5Vzq62v0CnE8KPc4 u3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iFFWK1ozByK4j5VWq7vympTuik1beXxO3ykszAv7m0E=; b=JyCFEkaRTsUTSdtJCYh0y7sinuhFjJ2vHna6Yng5Km0y+PZV3WN3hrcIFG7+c/m6fh HUrcAtbXzrwQ/bCQ37Vwvx5/yf2H1IVX+eav2NpYDQ2Za3xWQRulYS7y6K4RDllL60mG QVRn2Wj4XWjT5WFDvNdJHByuOyLTAyPR+px/JEbLN1VSygI5qvIeVQ12TWjmPVZS+aZ3 heI4E9YURfwBuJf2l/5QGMBrYqzTlZ+wrKrUAo73IZV/MSOCjKNWwRTEPktJvq0N2OpA FeVdxAO0metG1Jh+c9YMFeDW0178osO3OGVXsXHR72Vw+KIZacQiaAYbcrePJumPcrlb yX8Q== 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 gf23-20020a170906e21700b009538282b816si6118377ejb.75.2023.06.12.21.22.03; Mon, 12 Jun 2023 21:22:27 -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 S238333AbjFMEDD (ORCPT + 99 others); Tue, 13 Jun 2023 00:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbjFMEDB (ORCPT ); Tue, 13 Jun 2023 00:03:01 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FCDF0; Mon, 12 Jun 2023 21:02:59 -0700 (PDT) Received: from kwepemi500013.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QgFF44CfmzLq5B; Tue, 13 Jun 2023 11:59:52 +0800 (CST) Received: from M910t (10.110.54.157) by kwepemi500013.china.huawei.com (7.221.188.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 13 Jun 2023 12:02:55 +0800 Date: Tue, 13 Jun 2023 12:02:41 +0800 From: Changbin Du To: Ian Rogers CC: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , , , , Changbin Du , Subject: Re: [PATCH v2 0/2] Fix srcline addr2line issue with the ',' sentinel Message-ID: <20230613040241.phh6xxrj2orxt25p@M910t> References: <20230613034817.1356114-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230613034817.1356114-1-irogers@google.com> X-Originating-IP: [10.110.54.157] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500013.china.huawei.com (7.221.188.120) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,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 The problem is fixed, thanks! Tested-by: Changbin Du On Mon, Jun 12, 2023 at 08:48:15PM -0700, Ian Rogers wrote: > addr2line makes it hard to detect when inline output has finished. To > detect it srcline issues a bogus ',' symbol and expects to see a > filename:line of "??:0". For binutils addr2line ',' gets turned into > address 0 and if there is a symbol there then the sentinel isn't > detected, this problem has been occurring with kernel binaries. > > The issue was reported by and debugged by Changbin Du . > > v2. Incorporate feedback from Changbin. > > Ian Rogers (2): > perf srcline: Make addr2line configuration failure more verbose > perf srcline: Make sentinel reading for binutils addr2line more robust > > tools/perf/util/srcline.c | 93 ++++++++++++++++++++++++++++++--------- > 1 file changed, 73 insertions(+), 20 deletions(-) > > -- > 2.41.0.162.gfafddb0af9-goog > -- Cheers, Changbin Du