From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbcELIoN (ORCPT ); Thu, 12 May 2016 04:44:13 -0400 Received: from szxga05-in.huawei.com ([58.251.152.179]:34061 "EHLO szxga05-in.huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751379AbcELIoL (ORCPT ); Thu, 12 May 2016 04:44:11 -0400 From: He Kuang To: , , , , , , , , , , , , , , , , , CC: Subject: [PATCH v3 1/7] perf tools: Set vdso name to vdso[64,32] depending on platform Date: Thu, 12 May 2016 08:43:10 +0000 Message-ID: <1463042596-61703-2-git-send-email-hekuang@huawei.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1463042596-61703-1-git-send-email-hekuang@huawei.com> References: <1463042596-61703-1-git-send-email-hekuang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.107.193.250] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.5734424F.0093,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 6c5c50efa5ed346045505e076e040b0c Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a preparation for cross-platform vdso lookup. There is a naming confusion about vdso name, vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch uses different names when storing the buildid, i.e. vdso64 for 64-bit machine and vdso32 for 32-bit machine, and eliminates this naming confusion. Signed-off-by: He Kuang --- tools/perf/util/vdso.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/vdso.h b/tools/perf/util/vdso.h index cdc4fab..45e9ef4 100644 --- a/tools/perf/util/vdso.h +++ b/tools/perf/util/vdso.h @@ -4,10 +4,15 @@ #include #include #include +#include "util.h" #define VDSO__MAP_NAME "[vdso]" -#define DSO__NAME_VDSO "[vdso]" +#if BITS_PER_LONG == 64 +#define DSO__NAME_VDSO "[vdso64]" +#else +#define DSO__NAME_VDSO "[vdso32]" +#endif #define DSO__NAME_VDSO32 "[vdso32]" #define DSO__NAME_VDSOX32 "[vdsox32]" -- 1.8.5.2