Message ID | cover.1724104248.git.scclevenger@os.amperecomputing.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE6AEC3DA4A for <linux-arm-kernel@archiver.kernel.org>; Tue, 20 Aug 2024 22:17:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Up8oYOdUqUbJ8V5PhSx7H4xBdKnUqIlNEUAaNoMj85o=; b=ZayMbr3QARZCJHl8HPD1ELuDIc TYPRZG4J4pC7Fpe/ZRIc1GDeENSvs42VdLoAlIC+CssqlbRBcXXnK/HTAozUA9/aiL5J52ZObzXP/ PduAhTos+4zMGWwvzLevIsvtKwxFvELC9YmIROJ7Sbr71WIiENI8T/o/+keo3BsnuqcahxjU56pjr bsvP2Wu3tFCCoVmUjBy3pEzHugjMyReV7e8d9sstYs55rOd0YncTvHG4nsdJ3/JfLUiV5Fw5xNlKu lT89ZTu9n94vnQzpw0uHCHLi01bzL3i+M4w2pp3ZTiW9sbNKFsiwZHuat4Q4o9ZcK+8LEM1O52mct GSlaAQmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgXA7-00000006n8w-257b; Tue, 20 Aug 2024 22:17:11 +0000 Received: from mail-westusazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c000::1] helo=BYAPR05CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgX69-00000006mCF-0IVt for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 22:13:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b0PjG56kfVz7+jl+3PumSRtesBZVZ1JCHxkMN3CXOVHtJGtzrBleyfeTFW1yagokpaVq9ALdqoJcXn/oGaxbUHDnVJajSbjK2LeHB12c28yuFK0fyfFi0KpJArvSonTrHi6tEv9y1kTiCMrwglgGkbVlSrDBXb79XE/PPuDXmVrVCOtS6ZZuaP8PCERwyuA92SkGBPCPb+vrABxgjpl3JAwWN6eMaHJlLFlJ5odpY/fFkPa9qmaHojCzGmhl3NF77P0RvnE7PNEKlhZCtqGZW6so171EPOEDcqNtMWeXyIxF7aDVxpO7l4p+AvkxOO//bhrMFmGewPcyJVtEoUPC7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Up8oYOdUqUbJ8V5PhSx7H4xBdKnUqIlNEUAaNoMj85o=; b=vlz8sSoKxuSKvkoNf00eqbZ7nZ5RflK9uc4u7Ms2nEf2tyf+fa/UncR7UzhgBOoILV1G+ur6uYc/56uEwaPnsjXscbCc0PKzqrnVFZhG/cYd1HXqhB8s4iKkpoeGEHI1lahGe96TzkRWrW98YrOjQ8GooVzRnxKybVYDI9J3zdFEYUSPdoYovXgSUiG8OYj45j0UxcjuELGN08KDfmxdeTzxet+KVLGUZB4TvXsJBH1FTI/PfTGURuHeOkp5QHv6HBNJ45GXV2hlMYR4j3mH6yINkvITRDAS9JcAFwJi5ZXhAAVlVQB+7nN4kECedsZ6qi3nURwBoML9z8JGHcmWdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Up8oYOdUqUbJ8V5PhSx7H4xBdKnUqIlNEUAaNoMj85o=; b=gQrvV7B0SqlGkiyksOTHgUvy2XR+0Tr+/Ix42zCmVA7TtDjtVqOfLT5gijltIvzUFxTrfuPQA5xN2jJMwalTv8BeNaYN8hBFdlh5oZjakJuPOgwLt9+/0PpAd1r46G8BPMR54NLreauL1m53o8OHZUYKXZS5QVEdUPN6KfKc9ns= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH7PR01MB8146.prod.exchangelabs.com (2603:10b6:510:2bd::18) by CYYPR01MB8601.prod.exchangelabs.com (2603:10b6:930:c5::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Tue, 20 Aug 2024 22:12:59 +0000 Received: from PH7PR01MB8146.prod.exchangelabs.com ([fe80::2972:642:93d1:e9d4]) by PH7PR01MB8146.prod.exchangelabs.com ([fe80::2972:642:93d1:e9d4%6]) with mapi id 15.20.7897.014; Tue, 20 Aug 2024 22:12:59 +0000 From: Steve Clevenger <scclevenger@os.amperecomputing.com> To: james.clark@arm.com, mike.leach@linaro.org Cc: suzuki.poulose@arm.com, leo.yan@linaro.org, ilkka@os.ampercomputing.com, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "steve.c.clevenger.ampere" <scclevenger@os.amperecomputing.com> Subject: [PATCH 0/5] arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset Date: Tue, 20 Aug 2024 16:11:36 -0600 Message-Id: <cover.1724104248.git.scclevenger@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1724104248.git.scclevenger@os.amperecomputing.com> References: <cover.1724104248.git.scclevenger@os.amperecomputing.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YQXP288CA0033.CANP288.PROD.OUTLOOK.COM (2603:10b6:c00:41::30) To PH7PR01MB8146.prod.exchangelabs.com (2603:10b6:510:2bd::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR01MB8146:EE_|CYYPR01MB8601:EE_ X-MS-Office365-Filtering-Correlation-Id: 6598503f-a6db-44cf-d452-08dcc1654019 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: TLyw0X5rA56z4Ixe+SrNGduNdQ5KBn36SNxx2wLwgLc6wLvq7yAW7pKe+1LDtAVNZBtaGXYTSNRZDPZp6R/s57pVXW+jhfWDD8vE2IdXICQYjERUs2sDqe9JTIvbhx55AjpwN98r+LnTKMQWI9DqlWjg1T58ZfC+terKXu62l2MSSIGuFogfzxdNiS0KibEObePuePanQagtdu2BHzEjDc9lzxk/yGgHKx0oQXdf/Vm6PZ65mIBAPhpKzbH0nMMz+tZBZF9GYP+QZR9Nq+qxbrfQwzb7Zf6QlwfQ0WaIO/uRkwYlQcW6dOerFfQRcquXayqKiA+rHBHBngEXaXofzp+oDZwYK9RuiYf4BNbzD4NiWjweon4nKSBxJS9bxywFrtXPwS7zM6zJmJVgJCqkfYYS+4Id2s8YRe3iraKSL07nR4aV9mz9eOpSCswhWkNU/JE5eScVwYGLTSuMN7qCZ1Tayx2lNtP19GP0qVQkFoGVyTWRcopnMtuPzXcmY8XlSRgymr5itroyRB6Sws66IP0L1vR49pZLv8rk5/KT2/kcauo7edHNpUUCd80BOKDF7pE+O9zauH67qWGcK09qUpG2Mf9Ezl1pjQ/WJZ6IbG0GvMPTEChloKPCsHYMyG2nqz3uKzYBvIUK3VoxzDU7gjHDacO9F/l7Ism0B7nyqIvgInkS+NQfjtN8xEPZaCFELOToDBaeUzQBKD3FzvWH4sGtHWuXDSMh89B4/UMyQCKR4pTbvu7LQmFJiFFpal6kVMOYerlTkeUARe6mF6lHveQooltt6STgnUZlcA+f+/HoimHfyNtX4NVGyAmQBuyxUcvhSPLJJJWhJDs2cgeoaL38sJnJfvXourDIiJODskAshPR7qlJq7nJnbVLsmuxZb9Zp7uHwhbK3O6ll7iFJGtxdwCdQZO1jDJOxeheJttGgZ/6lzK/POxFdd/+gwB168LzbMQ4VY2/7qSsl4dZN4E2p0DIA21UkOYoSj9FI9/qJhSe27FwwNiheneMstV6Eb4//RU9ytO+Y2e8jEloC4rVyTv7+AVW7rEFPTLLkUYGRpKJkE5uZJBvpvSrDG9bHKAkcYYKXKscmO9DlQ0WfLocB5Rkqwpr5ov3fW9FQ35UMr2j+yVf9voiSdKCJoDesnP7eRfqxD0YpITYn6hOj0RVTloSHYKkDRUJWDxYDN8+BbYvA7ag3UdBX89QRq+L7ouEVQNJn0n9XfCgM0FokH2ZiP7HgX8bf0MsTSOEq00sOgA6Mt7sx0Z5R2oUADmH/O34wJR+g9Ka/iu1NW67V2/MD1lyJksAHDP572jtDSvReKQMWv2UXZ2DVzxjkOrclpcLTZG3uRC3ehkhISEhw6A66LDsbSdGpLrdDZVBXouw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR01MB8146.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1102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3HnaozPEN4Z/QlP91/IhRJ+DR1jX97f3GZMRyH/CAllxLzPa8hD5BojIVvavnqEkdj/Apr4ZV/6rLjKGiRVQPwZgpUWuWQhKyncqMr+ZXq5ibhOHwwU8Xu/Ul4hkZXkJV+lr5Db8YCxcuy7UHVKujLq12xhIke/hbCfGC4KluN4IhOq+reZOYX6rPAkfjconI6g5rmPfV0SF2YMOxk3tsvJyT/xX9K4gedGpkzINhiaWclnBRwpCJ3r7ZNI5L6bSM44fmevlICUAOEmnxsH/f58FZ5I0/OOYHSS0wtYZ/Gc4tGvcVtShup0AU3SwbGfyCII9nJ71s/JmR0hc6oWcIEW0GCOduzA7xBjXgN9oEEt9tBmVW2KGkQFXfCQ2i7wrKR3h0KPDeoU2pfILgOnasp2+zWA2LY7EsUr3Ul0HYo4O5rD9yCWuhxRnYdRCUpKgRT+nzS3ft38GLOxCpjL+sbH3eHwNc6fWUNxsmcLxD459HTRc35lRqXe7A7ROpZZU+pEpVCHcyryp4VEmbX8zujvVz2/Sqd/xIu8LOfS+7MRaorRn69PbY14rVyCgbHJzrxE4bG8q6FqDlEm1aVx/L4MdtPPd+yvQZsJUa28S7Bliv1wVBKhAAt+lT8XWrYrOMUFwSk X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6598503f-a6db-44cf-d452-08dcc1654019 X-MS-Exchange-CrossTenant-AuthSource: PH7PR01MB8146.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2024 22:12:59.3126 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sr/4ljJRY5Fi02Grc327I6+FFB1qcaui2gYBTzdbABy53yLmKB2aor1mtQxfFisXjmOTW/pULYVxBt7botlwAyeZqNtYuUC1i+NGXy1bXUPiB+2Z5m59A4KcYB+EV4L6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR01MB8601 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240820_151305_145687_6C0A4DB0 X-CRM114-Status: UNSURE ( 8.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset
|
expand
|
From: "steve.c.clevenger.ampere" <scclevenger@os.amperecomputing.com> Fedora 37 distributed shared binary and executable mapped files show a zero text section offset. Starting with the Fedora 38 distribution, the shared binary and executable mapped files show a non-zero text section offset for some binaries. The text offset parameter is never passed into the arm-cs-trace-disasm.py script to allow the script to adjust the start/end address range passed to objdump. This adjustment is required to correctly offset into the dso text section. Not doing so results in an incorrect user instruction trace display for Fedora 38 (and later) user trace output. steve.c.clevenger.ampere (5): Add dso__is_pie call to identify ELF PIE Add dso__is_pie prototype Force MAPPING_TYPE__IDENTIY for PIE Add map pgoff to python dictionary based on MAPPING_TYPE Adjust objdump start/end range per map pgoff parameter .../scripts/python/arm-cs-trace-disasm.py | 17 +++++- tools/perf/util/map.c | 5 +- .../scripting-engines/trace-event-python.c | 13 ++++- tools/perf/util/symbol-elf.c | 55 +++++++++++++++++++ tools/perf/util/symbol.h | 1 + 5 files changed, 85 insertions(+), 6 deletions(-)