Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp27129lqs; Thu, 13 Jun 2024 02:44:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXksOLMz6mKK0ebKKVA3kC553EFWuAdNSW7wheGxMLOIzi2eIr9tzqvrgtA2QyL4kF8czt+zjWIRnLmeaygBYEQgVw9YXx4fLNHC4f1Mg== X-Google-Smtp-Source: AGHT+IEfXGtazIFNNCZY4m3Eu3zTr83IFPaa8qf31lGCHqzweYHV4DjE9ZWRxyHx9elW5SoM/Os0 X-Received: by 2002:a17:90a:2ec9:b0:2c3:1159:2cfe with SMTP id 98e67ed59e1d1-2c4a761ad45mr4245794a91.4.1718271851403; Thu, 13 Jun 2024 02:44:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718271851; cv=pass; d=google.com; s=arc-20160816; b=k5gvwJaDVfHcwXEhIga/sTj0Nt7WInv4PyQGVGw8R8roW/K/YtxGgzjGH6vNLHVOaM HykHKaRSSWN9crc8Ul+xyLU2ptuhxKrmIXIydthgcnBMsQGlkdR7IpzlifDdAcQL2tlD ygQhO0dulsuozhdYAwlp+5xVTLHqR4pGIFEU1CT3wWDB0jUKhy8VJKYumXwrfD1gXO9Z JtBQLGefyom2ggwGrDBKrXDOpJ/MF8V0G2gCwpbZVtL+ShxNBjxo4ZAD5R9liT5a+qwL WBZCWmIXdQkElqpyhPaACjQAIlZ1hG0bVQKM5x7PWnqM22dtkXKpGqj4kVc+wCvJiQap IvXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=I9bTRG/ya2QlWGXPRD4lWRzdVO+PwwnxcHiJmbPbF3U=; fh=8Ourhkr0tvK0vG9IHJ9QgfFJx8o+EsOFvYXMeRYLVuM=; b=ul144sT17uKxuOG8z6HNP9d4aFGwYb83AqUkhh67H9DkHg6pz0nvkMpEsxLdSlTDhx qO16nK3nH6AJsNBlT/DpMgsMIuwR4CrK+YkCQy8tcuDYtqwS4njy1QtdXvVjUn86Cyum TYExIo6+dGlOdEjcyc/h30Kgw0cm1emVpaODFU6ZEvdXd+80hU8j6Or9PJElcU2BuOzr SrzRVpH9FeCi2rWhRiKaoJ8TLLUShdbdwVshrn2hqNi6r5/QH40t2QOmCfdOkRRYreCl yeh96wUan7IsqN1NrgNuYFaADq5yjyFqT4dC7qf3vQf2CBrpdGNgPPPPUbV4T89M0KRU 3Y8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-212973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76e8261si3204902a91.156.2024.06.13.02.44.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:44:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-212973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 47845286152 for ; Thu, 13 Jun 2024 09:44:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84A2E140E2E; Thu, 13 Jun 2024 09:43:58 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 08B6213D529; Thu, 13 Jun 2024 09:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271838; cv=none; b=Xh/qnngPf9SOp3ZdBcDFFI6I+ySDMDsOsopvDkm1qbTndo9yru0X50yHDok5/9EONJu7OcnIF/BMvzE/qxRNzS6LruvoXhp4gS2Gq2+Yl6Bx+yXRp4/iB+QkPlGwh5/uneid6OSzy53KTSZiGmAI18GMWL1yZhZW3Q2OVvEKJ5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271838; c=relaxed/simple; bh=kQ9SNyo/+BrkPE7wtz1I5d20j0D1dHO8ar/GU0OUDHU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=aSfCrUqWD9D6iWxDI47bP2VvRTH3z6FtOyGpz0ND2x+KKXnqQ5BxEmQXmuIWh0x83DsdU23U2iMbH7gqhkKRXO+bUC1B5CoPa/YRInOirMkaeu9BthtDGIjVRt9e3QrZRh3xnYVJQbL/NcxBgwEL5yx4l3jUpsnWfPhGIKTyPXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4W0HSh43jrz2Ck2M; Thu, 13 Jun 2024 17:40:04 +0800 (CST) Received: from kwepemd200010.china.huawei.com (unknown [7.221.188.124]) by mail.maildlp.com (Postfix) with ESMTPS id 00791140133; Thu, 13 Jun 2024 17:43:53 +0800 (CST) Received: from kwepemd100011.china.huawei.com (7.221.188.204) by kwepemd200010.china.huawei.com (7.221.188.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Thu, 13 Jun 2024 17:43:52 +0800 Received: from kwepemd100011.china.huawei.com ([7.221.188.204]) by kwepemd100011.china.huawei.com ([7.221.188.204]) with mapi id 15.02.1258.034; Thu, 13 Jun 2024 17:43:52 +0800 From: duchangbin To: Adrian Hunter CC: duchangbin , Peter Zijlstra , Ingo Molnar , "Arnaldo Carvalho de Melo" , Namhyung Kim , Nathan Chancellor , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Ian Rogers" , "Liang, Kan" , "Nick Desaulniers" , Bill Wendling , Justin Stitt , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "llvm@lists.linux.dev" Subject: Re: [PATCH 2/2] perf: disasm: prefer symsrc_filename for filename Thread-Topic: [PATCH 2/2] perf: disasm: prefer symsrc_filename for filename Thread-Index: AQHavVvh9tYwOTcSHEG6bdTlEhoGM7HE0t8AgACesgA= Date: Thu, 13 Jun 2024 09:43:52 +0000 Message-ID: <39be46d6a5194b6390ed31be67689c6c@huawei.com> References: <20240613063510.348692-1-changbin.du@huawei.com> <20240613063510.348692-3-changbin.du@huawei.com> <395cfff7-9692-4123-96b6-353752007f46@intel.com> In-Reply-To: <395cfff7-9692-4123-96b6-353752007f46@intel.com> Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-imapappendstamp: kwepemd100011.china.huawei.com (15.02.1258.034) x-ms-exchange-messagesentrepresentingtype: 1 Content-Type: text/plain; charset="us-ascii" Content-ID: <687803AF4BE4D84498FD7C39AA55BAC4@huawei.com> Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, Jun 13, 2024 at 11:15:28AM +0300, Adrian Hunter wrote: > On 13/06/24 09:35, Changbin Du wrote: > > If we already found a debugging version when loading symbols for that d= so, > > then use the same file for disasm instead of looking up in buildid-cach= e. >=20 > In the past, there have been cases where the debugging version has not > worked for reading object code. I don't remember the details, but the > symbols and debugging information was OK while the object code was not. >=20 > In general, using anything other than the file that was actually executed > for reading object code seems like a bad idea. >=20 Is this a platform specific issue? AFAIK, the binary code in debugging and non-debugging version should be identical.=20 >=20 >=20 --=20 Cheers, Changbin Du