Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5949131rdb; Thu, 14 Dec 2023 04:33:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkCRjzJsrQGJ3LqbCMzZZVsFnaswrmlL/CHEjxZnjR5MiKKKD2cGjoQhnwXnxBHxJwxyHv X-Received: by 2002:a17:902:e845:b0:1d0:6ffd:9e0f with SMTP id t5-20020a170902e84500b001d06ffd9e0fmr10637476plg.97.1702557216425; Thu, 14 Dec 2023 04:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702557216; cv=none; d=google.com; s=arc-20160816; b=sEI7ig/vtjhSrS1NYBilPUHSqZigfIhHYKayxSgt/3bUbhbF9jYcjXcOdESDlexWgv dlm0O9cnQFxLU3SH39h22pkhlJoCJk9SClOVWW9CQRgy2Oel6TRdHMAH89uUvJOBRG96 HbceAl+vNhmeKLtRSkPEw4aiJEmWMrGecqecLU0SRskY5oOxOD4h4FJquR/xPV4X2w2h 4wR6Mhd7+fo6qhhBcyS1n5iObrp9cPFVPhTJHzY42QrEaBvnLlECpaQJ6l7WanW7OX75 Ke7g944KLxXBumu0eVfGsygZaem+9IC+xMdlgzb13nmX/nvrO5ESf4+pdPr0ZK74s+Ry pc+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=u+93OwqEg2VyTZwXAen7lyK9wHD7pXSvR+PaxcLd/n8=; fh=2C1f0j/nzSygmX2ABc+8OQYD53hkUy28AVWbjAwc8E0=; b=uJMKk4VIlrBE/3l8mHUmSzgjsZKsPTZPTbd+pL4uGKBWbB2UQa/Z1opqnrRFuvwZ/0 esaIbNQyQC7Q6XF6mJ+CThEUfl72+SsJWCx5WrN9+J/goQh8xLm9TDv6pRIM9iDC6HsH 4LVDCndpPxwQ4n8AYlgq4NbVj+/C+74whYhNzGIc8GMF5PzpUHSWCdEWzCUpWIEff4hd ic+3lylczD6E1Y+ax20F1OevcxfNJyC6iwy5O6/utZJW/eJJG//n7ZgK1TmOEYE2x2Zv GZMogrB4+IfuY54f5oykgy1JUNDSV4mWO8ersjSVhyuNkKc81eo2Lv/1tp3i5Hejhd1r ZPTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u1-20020a17090282c100b001d35084ea00si129575plz.395.2023.12.14.04.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:33:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A4C9B822B2EE; Thu, 14 Dec 2023 04:33:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573068AbjLNMdP (ORCPT + 99 others); Thu, 14 Dec 2023 07:33:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573052AbjLNMdN (ORCPT ); Thu, 14 Dec 2023 07:33:13 -0500 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D860120; Thu, 14 Dec 2023 04:33:19 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=tianruidong@linux.alibaba.com;NM=1;PH=DS;RN=15;SR=0;TI=SMTPD_---0VyUMJ.p_1702557194; Received: from localhost(mailfrom:tianruidong@linux.alibaba.com fp:SMTPD_---0VyUMJ.p_1702557194) by smtp.aliyun-inc.com; Thu, 14 Dec 2023 20:33:16 +0800 From: Ruidong Tian To: linux-kernel@vger.kernel.org Cc: james.clark@arm.com, coresight@lists.linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, alexander.shishkin@linux.intel.com, linux-arm-kernel@lists.infradead.org, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, al.grant@arm.com, mathieu.poirier@linaro.org, tor@ti.com, acme@redhat.com, Ruidong Tian Subject: [PATCH 1/3] perf scripts python: arm-cs-trace-disasm.py: print dso base address Date: Thu, 14 Dec 2023 20:33:02 +0800 Message-Id: <20231214123304.34087-2-tianruidong@linux.alibaba.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20231214123304.34087-1-tianruidong@linux.alibaba.com> References: <20231214123304.34087-1-tianruidong@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:33:32 -0800 (PST) arm-cs-trace-disasm just print offset for library dso: 0000000000002200 : 2200: d503201f nop 2204: 8b020024 add x4, x1, x2 2208: 8b020005 add x5, x0, x2 This print DSO base address to get complete virtual address for userspace application: 0000000000002200 : (base address is 0x0000ffffb4c21000) 2200: d503201f nop 2204: 8b020024 add x4, x1, x2 2208: 8b020005 add x5, x0, x2 Signed-off-by: Ruidong Tian --- tools/perf/scripts/python/arm-cs-trace-disasm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/scripts/python/arm-cs-trace-disasm.py b/tools/perf/scripts/python/arm-cs-trace-disasm.py index d59ff53f1d94..46bf6b02eea1 100755 --- a/tools/perf/scripts/python/arm-cs-trace-disasm.py +++ b/tools/perf/scripts/python/arm-cs-trace-disasm.py @@ -108,6 +108,8 @@ def print_disam(dso_fname, dso_start, start_addr, stop_addr): m = disasm_re.search(line) if m is None: continue + else: + line += " (base address is 0x%016x)" % dso_start print("\t" + line) def print_sample(sample): -- 2.33.1