From patchwork Mon Aug 26 21:35:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Clevenger X-Patchwork-Id: 13778523 Return-Path: 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 B2AB8C5472E for ; Mon, 26 Aug 2024 21:44:25 +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=2aO6isEzkq6NgGksaVY8RsXysbfIH+NsY0J1DpoyxZk=; b=AMuffs6CW/F/GKmnQPWuw5ibco AsNjuh1u0AMpQ6ltetnotJUNjmiSPimu6yyA3qOeXeTA0xaMg/438SV3ZkfImnN1z2Nsv99vLDyDb Umkgfc9KZ6lCEvDZ8aBgq/WAze3ssp3TrXtR8W9oYYuaLRfZmCiF4RI53li005vokeKv4rgoO+P8r fSeBLiptQgsjaW5DQI6loyNubLeuTpvCzMShfMEbmnM5otnjbadJHswEn79o693pyxVhLyNwz2ZZ/ /UlvvQAurChNzGw2IgQcWjNQ/4Wgg4vK0QEBcbMyAEbrnj/MHX5pPCD+QeR5ZIWjCGvM6nusyFCnD FXT9Qhhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihVW-00000008rFS-04ny; Mon, 26 Aug 2024 21:44:14 +0000 Received: from mail-eastus2azlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c110::2] helo=BN8PR05CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sihNz-00000008prN-2fFE for linux-arm-kernel@lists.infradead.org; Mon, 26 Aug 2024 21:36:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BlMYGyRqxh7Z/FMR23ainTFSjbB0s0UqafaSxet863EhKJ4DznYjBqrFRDGboHlO/kqd3oa2VPBQRZ7vbtbsD+AkNj1PBjF8INN9SsRV1YiHGEmkKAEUIKKRrysNdwQW+dd/bGi6Ss3grt5M/II0vohq5Q18R9M8zMWM8WcaNCeI6VoqylIC6/L4sG3ij61Rfaz+IdYtNHPJp7UvO2Jn5WEnKXT0urFVhOblspj935IIWYkDsCQNpcaWUCQ+K4GHJPu3KBUeCS63bFCKYnDbOFB9RVrmIRI2AT7SO7oVpr+vKGYoko+W2TbWAECeo/V84qSsVB4uAeskXGteYfiouw== 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=2aO6isEzkq6NgGksaVY8RsXysbfIH+NsY0J1DpoyxZk=; b=MGHFgNCR4F+lhkhYLGgPkGwgh+Vly+sr+8ntLZVU67+5CkgXZc0E5PV9tjKscJWTbD41nrrQzjOwRdTuPdy/7/rQZYwBGP2WlUeUnSvS6p/oDAkacYa+VgjLOaImfr9b4YVMh0wujKAHL3cbEI9DbRBHFX0vzpCITmjQMthXDWj7OeGn94rpNlZwukD1H7abCs0ywMOdyKsDCJU+Rd9RtGNAJk4enVTR6HroFfu4e1/+tzUh9sDpYJOWw/Kw6lqsQIJUCDoqWJqUcbME6lgGVCcoFBQqfhQBh2iskgdGfLIINLHw/q739Z8rfYcnbxMwbCIAkSCVlk8EtWhKsOilOw== 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=2aO6isEzkq6NgGksaVY8RsXysbfIH+NsY0J1DpoyxZk=; b=ojM8vg3F39QTpSvDPvIAGcgajBgiao+Re3EANP3KmjVzNZVaeTE7HQBvopQZopmCl7zZGOUys/QaxntHh789wLd8s2nFTEnZHX11byusMmviyHJtAxLkHsnFjkf+kDXZS/SvYU+8oQolC4DcJM4ogLnNEkhQg+utKA1QEdPwtQc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ2PR01MB8150.prod.exchangelabs.com (2603:10b6:a03:4ff::5) by CYYPR01MB8410.prod.exchangelabs.com (2603:10b6:930:c9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Mon, 26 Aug 2024 21:36:22 +0000 Received: from SJ2PR01MB8150.prod.exchangelabs.com ([fe80::72ca:29db:7676:9fea]) by SJ2PR01MB8150.prod.exchangelabs.com ([fe80::72ca:29db:7676:9fea%6]) with mapi id 15.20.7897.021; Mon, 26 Aug 2024 21:36:22 +0000 From: Steve Clevenger To: james.clark@linaro.org, mike.leach@linaro.org Cc: suzuki.poulose@arm.com, leo.yan@arm.com, ilkka@os.amperecomputing.com, coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 2/5] Add dso__is_pie prototype Date: Mon, 26 Aug 2024 15:35:55 -0600 Message-Id: <197c2518fe6faea400e7d6ba49c28852fa48007f.1724698250.git.scclevenger@os.amperecomputing.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: X-ClientProxiedBy: YQ1P288CA0024.CANP288.PROD.OUTLOOK.COM (2603:10b6:c01:9e::7) To SJ2PR01MB8150.prod.exchangelabs.com (2603:10b6:a03:4ff::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR01MB8150:EE_|CYYPR01MB8410:EE_ X-MS-Office365-Filtering-Correlation-Id: 86035f4b-3175-416e-2dd9-08dcc6172123 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: iH1cU8qirZzt65jQEtxf+8t3bgFD1RvHtyJ9pL1P1fgt6JV3G9VJIRWMQq0yQ3fvAVUfqoAAD7Qr8P8DlIaNCa/JH5QtD3wJd+Fak02oeen+Tnq1t3hPbh+5dCu+rBw3hQvD4NDd2BWL/OCbMpqHNNqFH9digRPCXd4vmM6kWluRCR2Zm85Upl46PT/LAHvbhC/U5KherOsoVvy8Eop7Sn16ctwYh725KXAuyZj6qAL1aYy+CZFrfGpN3Oxez118CX2Vn4XqCmBoU2r2qpJuRwtyT1DX9L/OZupetdodof3jEDyByZdMCjSdbtM75dKItho4g5ukH2vERWxjKhBhQDYvrPi+wA1+chcnG/dATimCIVuki/YeWwFPU3UIQZ+NrkEsfaLNMXhHDmQh98y6hL1gREXc2hrkDWzuHrvjIF9MbsrfZnJHdgDy8dMFNnBR1mnKToK0lf6N6Z9quPiv9xsKcMi3M9fuxQeRt5beAY8OlmxuLR8juL1WFdCRWTkymQ3AaErTj5dEZ0Hp8GzqFLvcuTsTEGP77C+MZL5B2omicwgLHNeuT5FBOEQF8MiDVwB70N6SPUrwl6Lx+5NFw/SCCFtx2rSbIduJJILx5llMwMKcPP78S2uV12FOUYjJbZTwXlUdUMGk7ruP9ICe1zBn/ChK5X65G1cjrKcHUsMbl+rJDk9onwmwgiok4hKak/9C7bcS4o2TnfcEt8I+tdDH5eQUGZ5WNphfdcSPCrfuo9F1TvUOzDJc6SNJ7Li2e0XjCfR6DImXoc5uooSiIPncrXEyoqs2Qq8rPc4X8QE13kaJuvIOZevXenlaLsoZCGRmptEqq6vtdnIC9q74gDLIx6wjHsYWTBlosBllbacUPMksZNUwWqLm6szr40GwMiACzMyd3VTpHsga37iBgf3bv5JCVPxYr/Qc8jux8GeRusxQSDgF1zb/mB7yzg1jyb/dOW7kQgyAqvsjch6zpkSmPcOVGrWezoH9uyPP8ZOzQj6ukedqSw9l8zux7IlzAuRBC3WV2JTE7SA9249kPzrst3d+HYSTPGacb438IcfAuT4Z2RpQdaU2kcZhaK1zRL8/Ojxq3+KTlVUs1ddu0H5ENPJXS7I1B4WlnMRqZOeQo/TJG8cGBf/eRSnAf9h+Ux52mkOvcCdwBLO5fpraCpa590uiNQr1EgNgONc5DWrFuI9S2XShUq9YDaIulPi4wvfcTZDg8nlVDOKOfYFmrHo/3cIUewt1tGVfAgsRrEJXqqR+xFglY1h+qVo1bWVjMSWsK5hPnkCvzs5nV9SSkAPeUka3QJmqANX6OQwQRnE73ezaMGNk8ROlukF80yLfGiTOMSUu64IGa8HWBResHjsCYFhct+lVHHQ60dOfNMjerUJC3ywSx5yrql8OI24AHs0wHkgF3S2/4uIBY3FpqA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR01MB8150.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ctO1BUw72qJrdK33GrURG9pkzDaqvgI98KAWm8QekGlh56V2eX08gziMYC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BI1ErmumCkN2nOpPvLQjARYxST0XjTGDma/CwR7bB+HNNk38ikCel+l62opboBV27hibp6Krfuz+ginYa1BqVU22HvrAGrcjPq/BuA5k3jIjlkx2p89el8xV8IxN8lBIBQ74AibHgsvvNP/lRDGZSYIiBekkAQcTx3F/mFZhFzIbFOYgIVEhCPOWX1pdtOEyav6/Qm5rPU2aNSdzrH0f+4quqC6P8bQVvqkjLYglhxUl6XR4BKceDl38gVHs2iNvWl1Br5ykLMLVnTCpDprLnF85vct2IBo7vy4323PEj0VyTwsus/1+Jh3MS9vqVqpFdsjtdheMtPEQI3dznI4zZFwrbIIqwsjVR40MPKpDnv4UVy3uFfsvAYEipcu3gtWudAIV2KVt4UIzvuignuIy1V4wSGWgM3ynzxM9WmdUh7M1LpYk2uGM/y2z9LrZr26heD14itE12/E+2Yg62s2ndQGacsbT+0xDZ1Qw3CHFISaUAxVQ0Kxjqmy1Ic9I5htJ6+ZfAtNzNi7vjEI4z9YLtITkj X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86035f4b-3175-416e-2dd9-08dcc6172123 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR01MB8150.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 21:36:22.3990 (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: c1VvAXPMNjhR+4DN5IBc225sveXOmDpomJCPu0BN/8qgzySJQZXwBLOlk55pH/w7rEUXprevaLkWbIRvtuwTJ+l/S5pADhDGnKRPgdjafYbuaWiV0BMVcGzIdV4etGg9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR01MB8410 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_143627_698616_473B4016 X-CRM114-Status: UNSURE ( 7.71 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Changes in V2: - Updated mailing list distribution Add prototype to dso__is_pie() global. Signed-off-by: Steve Clevenger --- tools/perf/util/symbol.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 3fb5d146d9b1..33ea2596ce31 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h @@ -127,6 +127,7 @@ void dso__insert_symbol(struct dso *dso, struct symbol *sym); void dso__delete_symbol(struct dso *dso, struct symbol *sym); +bool dso__is_pie(struct dso *dso); struct symbol *dso__find_symbol(struct dso *dso, u64 addr); struct symbol *dso__find_symbol_nocache(struct dso *dso, u64 addr);