From patchwork Tue Aug 20 22:11:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Clevenger X-Patchwork-Id: 13770611 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 296F7C5320E for ; Tue, 20 Aug 2024 22:15:58 +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=iiFJ8MvfYUVnov92UnU3n/J++eNtloa8iiECuINsF/0=; b=UHV+hWvdFH7k+9R0XVO/0u0OO0 4WPr7hNqRQEJdvbFf1fjk3Y5nUpG5dB/A9NsnBm8Lh5vba9xvZpv0ImyMkKiXL6ERrPowKAcuAbXf cgkHPmAll+rA4dvwu4rM/XpUNDYwmJ7aP+K39KWXE0ola0JlzAn1KtSxTqjk4sS7vysGlp/0+HfdA YwSszJgZG4iSLiO4VskD3KOiEgmOuA3vcBETFtg1Hs4CGZ0v+05nFCUpnX8gP0tZkGh2L+baK8TxD 8Wlmu3T4LnoibU22EOwGJRxInThE7BXzXr8I5qSzSgnPgmUEoziD3EwS+C7RLpJQsKg7eBEFtJMna lrzfqPoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgX8k-00000006mqC-2RTf; Tue, 20 Aug 2024 22:15:46 +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 1sgX66-00000006mCF-1GMY for linux-arm-kernel@lists.infradead.org; Tue, 20 Aug 2024 22:13:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iGwPpCx6vwQyu7HLW5JH9jlf3UlVRqJqkeHOYcS6K7OigH3zToXpIP3X/LZbXe40c5c/stQWQz0gBfsKEeLupBTWnhjrsDAr2Kn4geeTSFHIAsG/Ow1enhbe4PB3xp50fasC1kGzq1a7PHy+ha1JJUf959wGOUzdHtfs4lSN0X9fEU9Etg+2xDg+z4UvO/G/LB8AgMdro/DuFUVIzedqrzceNI8CXSxaQSzEv8oRHhtCHq+X4KbX7YwntzCcu+apMbTeZsapNYq4v+bzwKUvvf+SGwV2+TnVLuJ+9k9fDwbekHOtLV/1xbG0piJN+qj2Nz829AL0bKjIYh9knTNyYQ== 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=iiFJ8MvfYUVnov92UnU3n/J++eNtloa8iiECuINsF/0=; b=DYV9xFT4JRSpHDWeIbFY/qKWnG60l1h+HttwJLccO+Ark+lKeagDCFT8rB2UhAedE1jeQ3PaY94fjlfP7UVwho1mpr2buOxI6Ydx07JUDaPDe75QtmQzf03KMe/myEzJq3r3TIHLn2jr9wS4+J6+Fw+jOoUArOniVPxGFyTM+l3Gbm1CRZot9uSdz2ypuE/igk7KhTdluBEnbiv3tFCrOEXf+MK0geL3DmL325+bnw3VuAp3qGVHClGbbeaHCarciqCn4Nge2HkSsuOCU4VZdnTQwccsqqUTC05liL4mR33jNcvrYOekCYEMN8fIapdGo7sMg+BBKS/Ewi7l1aE7/A== 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=iiFJ8MvfYUVnov92UnU3n/J++eNtloa8iiECuINsF/0=; b=hmlaW/bYxO69OlLYuXimmZSU6FzqnRHcEgBiL3mwXGruifj/jSf2k9GtHnF7kBIZFE20w6aecmvWekNxN9o1HjGSepoMZ7AhkAnTRbAjGN6AarAdb6MnZk2bsgEAZwupUFcB4g+NNksHGPHUOXpONwsgIUId3LMel4Ttg7lJY6Q= 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:54 +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:54 +0000 From: Steve Clevenger 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" Subject: [PATCH 2/5] Add dso__is_pie prototype Date: Tue, 20 Aug 2024 16:11:34 -0600 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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: 19020fd9-2d4d-4240-c709-08dcc1653d3a 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: Zbb3d6mTDBjvM/67VgJzuTeCadoDP5Jhp7b17s+FfWH/SiF1oC6oULnEXcxDC2aoAPXtgigjhYCakIU88Y6u92hHskuLbQ3HwqQtPD4i3FBMmUDteCptr5zIMvXSWhWC5iMksF5inzf0NQugUnezb5YDnzDcfsrAFw7jC5R0H/n5iXlbTMbi1S8nGFp3L0t7FJNjPFp1BfkcceFWGzF3IWiFFwon/GFIT9qSg4jWWod8a7yESmNGBxa6qOtzBdGbHmzu8IfAiE5Fdmm4C/bKhSfk9mULjv+efaRKh4KTwfB0RhUHUIodWvGLgEfp7O5vro1+i8y1AMWunf9bX/EDLRaxED3CVoi3e10jFFznl22oOnmGcEwkVgtw/01u6QkO70vyY9wlMZpBj/ez/RFWsSTBhgsuGisqHoF3Zq/ZkUbLXqX8m3k0HZenE7Cobr6HowkWtXoeFRtxmcXxX29J8CpFMx0HeZrVlEF498RmwYAcukJ1At8NMvN20jGPJa5eW1MLgyXyXUc95057C6chDPw8ZCCvywNLf3hjSWrHfk/ABX653JAP5R7XYUsqrCb24jXj4nbSPJKMhnnaNhcaebJIk7S4a2UAR0yDlhsvyw6+hEYntV58oBa5lypiSPUrMgJ3WN5gmFeF/H7GTdN9KLYsSxN9ExR1y8KzBDZbLP3kGIBiQWu2RUNsemY+iDmjtGHCCIXwbUmzKOmYapljdIkoBUjzxsrBWK4gykkmoF1zE3q3RIjCcK61ovYNKVEKFcOsnmApzAWD86wfWGOegYkhnin5oJwT5wkfNuFEzd70DpkydJZslXqyZW39F1my6imz/hAVeRYQ1PX5t7XhCPMYiv94NVwDqsaum7EIz3PwMBtX1xbBqzSAyYb8fhjjfwOT0KZY75RChA92XZCkJxF2iShSmA74PJoJxVSJ1uw8BCzM4RAOXLWC84pgF9LHGQd1Q5y+RF7VeiZj2N3+zQOImnwquh3VdYxyALS0w6SptK65T5Pbn+qztIynkbosuTMZCxVXIypuhNcGQR3U7tdyIhMkeBKoxf2iOd+HVju650s8FD2mHK9MMLxTeDxsYaN9jv4RdrT8/XJ/MPYizc/uB9U9mrAGq8H9/vCgnDg9kmHRPZJrWpWrKqZ7H2pQ4aBqhDASQKyPu+hXzZlWC/rOZOo0DVOOdIzmCSCJb1y+NfWhK0swi13MaP3ZLCR4ga13Cq+MjvL6pb/7ypCc7mEE8WHshPWF1JbCCRNxbPa7LEJ+pIKSChBZz8VPiYqTP4fJc9n64unnTwAdd/++8jfWRFQWVtkM9+P4X8UUi8dj6jXxZxHprVaFgMPFNWbruAR3EK/9gMZ7J1KtcCYL3p/EL4QU7GJnd2bu6fNFkQlUkqEfVfqQ8MdrZHuCDdSQdeGdBrwsOFn0KU0tSEr+Kg== 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; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k1Jfl0ygP+TQlaIR6qfRVk/TqGea377LGeL+spEx9mXpqHF9GE99f8Ke1hNRMFRHZgAlRuBLDWtTeSN2KC7F2fCwopv75YEz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Od3nmGZYF1IQInY8oGzBkcF2gnZpAs2EJdP4C/6RTZDK3zHcmaCyOOMNDppb41MHpAJVVHx9pHTH8YUJC8E8Wq7f7ciBzY3Ar98PXJWM/un9zdwW6TwVs2HhlrTR6i2P2vlz+iywaj+qVVYxt4azYJJmFm/cE33xb5zfpRPKBhhKw70ev0AFLWu0eNzcaCvUjCVNvEJZzRrrwFeAowcig9B+dN3ExgxHpaL24YgZeHEmYVbkuf2aExCbJa47jaWCGgsqhbzAZkhtMseHmIZaLn1fOX+kZGY5PmDF98oEgGSW1eE8Y+zXRgNbsAMVT9xIj/Hw3NMnDLlsQZ9kqew1vQTEzjSs004gRhT7b1gHkbDj4CsxzHu8cOdH1LcaxVd/TaXBEkLqTIyaF3sDrWaie3diB/nTCju1eHrhtFc3HnD2f0a8AtEz1ym1nPzXzW6Vq4jdwE5sBESdnNOU1+p7ar/0hOwuihYa8yuNo1Q/UX9ejHDskEU5 X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19020fd9-2d4d-4240-c709-08dcc1653d3a 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:54.4836 (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: EZYzzWj8GojAIortXRqWJDZpXd0zztyZfmh5WO3AYWdDBeBr/jOtXhKpLSColXoTPNylIp9HsZORBo3L1yrZzZk8y+1pm4dB5K9p0Bj1nMIsCFE+XUiYCOyszeViQPxl X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR01MB8601 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240820_151302_375628_1B1CCAA9 X-CRM114-Status: UNSURE ( 7.29 ) 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 From: "steve.c.clevenger.ampere" Add prototype to dso__is_pie() global. Signed-off-by: steve.c.clevenger.ampere --- 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);