Message ID | 95df5a08acc2c87e8ff9e374f9ae1c56cdc59470.1724104248.git.scclevenger@os.amperecomputing.com (mailing list archive) |
---|---|
State | New, archived |
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 7F629C5320E for <linux-arm-kernel@archiver.kernel.org>; Tue, 20 Aug 2024 22:15:13 +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=hnKaon/i5khsMvYjzdfUM5lmYxTQtdiWRewc7JQ6JmM=; b=ngyIiWw9MWGYYH9UK0KpkxjCpv CvZ9OrQBA/5peRi0b6WAwEy1nX1cggottyx04T3o2OD6BKKPORNoWSlrwMzWfBTLkoNonzng3laq5 FmXRkvrcFVc4YIWq8xMwC44mzGcmzrLiAXvxP14oCxds5NyS6j261zm2EnzJGpcy42ibAZbIJ3DD7 0zRAYJUVZk5g1nuJoJdUWqAThfhQrVLDwtJ1uITt0+lmosaexJlCJcnXz++aNZfzj3GzZOH7eChzT 16Z1DkHkVjyOyFzsvfr4H7tw5yCSgOemlsbNUoeOx6ahfEAKLie4xGMnAZDXB9sjNG5pUps0IpNrN G8ABfNqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgX84-00000006mg5-3UR0; Tue, 20 Aug 2024 22:15:04 +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 1sgX64-00000006mCF-3Qdw for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 22:13:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a8aZDxJW0ev6YWRqfSohfa4BR3FNcs+JD8qGKWx4M9QKn3S3m1Wy0lRjxj2cq43hoF3Y6XGaQUWhSSJR3WQ9d7jtdpGiMu0kbNhlmzSx8Ok8MfT1hc+4igQNSPOCH7N4SSREgD+TNZyVa3oXNnBwdBMCUeTeUufPjbbGHZ0Q6ZadE1XkUL4BVarM5kzWLdr/03EBWcMeSiZ+5LYOWAiUUCyDxWlxLr4MlranYXUc8p6jzOlPK4y8e864QaICasC0dL2buaklGiXasPn5i2y4CpeAx6RUXSgWfLl/xta0LK8KNvwctM/mBF/CMUGmKtpzKX6oRBSJNEpLf1euM02CNw== 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=hnKaon/i5khsMvYjzdfUM5lmYxTQtdiWRewc7JQ6JmM=; b=ec2I2blbk+IqM6SUDdd9N57WNjf6vcJQrPIxskVGfCgeWDqhIKuK2xsXojSZFvzX5i4l7w9ieDduySTmZD67VWLEnwTtOApRUielWy1gkyzkighimUQ1U5WIbpIAkz8P261WUwWgs2mNNQ8sat47ZBtsFm2JkZkEKuXdSo0Vc2MfARRc4bwt5ibnSeT/3RT4P8SRW+QlDEjZ1HfL+x3U1H3YHRP9FeTCqf3eZGnwc8DaBgAAh5A9sO3ZONZQzW2phNiCCH4DMZ+Fr0H2NNRfdhLPnkDldY4NlksoCk669uZZ8xfBTcrfASzTHubYFB2i3Ay4+4mCbI51exstEzhjRg== 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=hnKaon/i5khsMvYjzdfUM5lmYxTQtdiWRewc7JQ6JmM=; b=Q41xTiBrKf1LMoiAUJ9bveDrAiAfLm5BkC5HmIa3wGZwgXQHXfyorRP0LTaPAcYheHXQu1Lc1oxEJ/Bnl9LFfnZMiKK8KqD2vVacUobKfB/31pO/hWZkjnS+xhDV9uuoNhSiGlTHOHBIRLGDekZgarfRRq7nLLJyuWz7MruokUg= 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:52 +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:51 +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 3/5] Force MAPPING_TYPE__IDENTIY for PIE Date: Tue, 20 Aug 2024 16:11:33 -0600 Message-Id: <95df5a08acc2c87e8ff9e374f9ae1c56cdc59470.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: c74c6fa3-09b9-4f21-e66e-08dcc1653bb0 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: cquTa7cVo/m9tg9nPmamJxEBSrgm4xcCoYIf7BlWyiUOnL228b2s+6MINac/aCtgENtPhQh71kShQlTLlVUYC6SPsCkJbSff+UM/B0ig9XzSPf3bo2RsohWX9OTjztaD5+PJ7KwkTDRtPnu9LUea0kzP/eaNNA0/VACOaL6lIiI6ckzV1oPih1m0ADZnMg3FKiR+p6EmXmQoIHNBLtrwdZfaLHeosagYSqIw5G1Dwl1TmHpEo8jsuv+GOPuja8+MKpUUpnGM6VCy+EVP0eYTTBVHD318oyy5GCwibFbSI6CUG/+/PIDGQzi7z0cwSdsYvJmPBp7zNI1ohPwnF5oroKkuX8E1X//P3QgSgPxTFI9pleMk1hCcZ7PV2jsMRzjIUK/dvoDuejbhT/Gg4lJ2e45R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:PH7PR01MB8146.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TPoN0oDE22x64H/9mDQb9MGEQXNRFwJZVqR+J+QDFWi0Tl34C1CZ4pCoh09PZAXe3tlUwDD/3HHOF7EuzFMZhe/Ka6VADeA4JpYYSVV2K80/xEJW5ohYfeznCOVqWdYYlw6cfiwJrAlktdg7xdihHfea8O7mjJ0QdIDXtv37M7ORaI5LGKcB5m4L64awcyHqFWbF5khoXQTIXzYgleOJVZVfrJhi7mfh2LDd8p4N7yUx/BDotBtb7R/8yuWu1tDKmvz49sLVMJE2gaoP7sjJyf+keb6z3HaKs1dbYOjRP0qEfUB/BTRFyNjCrzR5cp2mtME1tBvs6iezKtxN+i2LIwY1q1ffbFz7s9qcj3NSVUmKQbdYrZOX/VVqQXG+LojclGf2+Tf5p8KAa5RYqU7ZZXGNrFjC13ezpnuBmRPlMK0I7w3wiXQAhwQ3aTdReTgYfVytuw/7YqsTtsNCdWrDyaYmIVBIe9ruoQ9m0houZwIKXC3mZLUJNR72BDnuBpk9EslP62owZeV8lTyvzvSAgXttD91QxRIR/j1zfaV+bX9Lf99oHBRDOarP7LsCLikLXcoFNhu3j/KUY2PC9AvWHM9Ty0LXYhEqFZi5IhYV6kGAUt2yXZs+1Kjx06KmVWGvlsIpHNRO1c5nGDQa7eZ3MT3Uiy+zdLR/PI9YR3HquuIjo78iZMcb9FA1n1Io8vsscGOMLP59xrD+r2Idlf+5Aq3HO+5RbRGC8QqqM600236mEU4P7ay41ttkSbzGuhW31Sm6FeS+zx4dqs8VZTDoQlM6EcqHl7S7xKV7zFSEz8AUcDnqFtbGK02X9TN2bejQuSW6SmxSvAey4FWjh9f+F77wZ4FC9l9pwx2KIvWHgJUMkXP0gjdrsdDty40Iwh3a4uVNysm/Ux7MjBz+r7nm+95j5EzXYsF17Sg+B9pco7L6DYtmMYb1DJ6v2BOpdflb+qKWugqgf5a8Li0g9jL8gqobMWJgdtVnyi9G+dGYQrwIdnn4bWSjAX1wdzWTTG8ResEvOlz5YK+reYABqmn8kvycG4N3wIymAsKnNKILigk7tjcZ78HrvPgc9ouKGzqxN9wqW4DePhRmEa332ZtqY43Sauk5WYgb0g4pP8oK7kRTtoVcbOJuCpWWLtBvKCvLFqX0TVxc5sJpx4VxoxcDAZ6KFbSOAuIHg2xRskhIXwOCJPky49kVoVsPvhtv0RB56uuT35Gfsb/fVlPW5sSy5X/NszI7xR1RY5uHfOD/dpzP/jaY+9QCWc5wFfwPHHzeckHiX3lkDzj+8tOKZN28k7J9KtrNTqtagDrl/Vx/e2rmTgj/QomPFX4vWWX+IgujsVg7t+IAIAJM6oPi7iNyGNAGEn+EcSaiSdXOgA/p4UY5lw6m5ro/X6unYnid7OJxB2RNyXTzItV4EZ2MqHqoHav7QgYyGO8mlrUvaAyZH7Q5ukESwStTdUi/sx39DC7f+7rHqCvDqS87uXLPYd8ngjEmIHVNa2zObhxe0WE8z7uyJ97IVU2oaT/fBBMqXyKEZ6FfOhfsskYX+ZFZbLxAS4k89bLFsw0nxHg3swMRPa9VcVfQ6fATHMYj1TtnoEJiqirDkM+S8e6F+FmP7F45xdlt4FEcW2VetZKVo7D9jfUeD38c9u7Hj7Ij4ETJ1Tsx X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: c74c6fa3-09b9-4f21-e66e-08dcc1653bb0 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:51.8913 (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: Ymjk2DJIFpTxvrIYlAhVTn9iTLxaNYW4dNBob2Gcn5gC4/NZ2Ws/lfDXJcnNCuNkJRmtqC2ACWyQcttbtsVa3OmWea2gUbKDfcTK0y/71fQ3zQS/GuJFBI1QL5nypg8W X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR01MB8601 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240820_151300_973875_CB469B5C X-CRM114-Status: GOOD ( 10.67 ) 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
|
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index e1d14936a60d..df7c06fc373e 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c @@ -171,8 +171,11 @@ struct map *map__new(struct machine *machine, u64 start, u64 len, assert(!dso__kernel(dso)); map__init(result, start, start + len, pgoff, dso); + if (map->pgoff && !no_dso) + no_dso = dso__is_pie(dso); // PIE check + if (anon || no_dso) { - map->mapping_type = MAPPING_TYPE__IDENTITY; + map__set_mapping_type(map, MAPPING_TYPE__IDENTITY); /* * Set memory without DSO as loaded. All map__find_*