Message ID | 20210907211949.8436-5-david.faust@oracle.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=sOVk4tN3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H3yx92YCCz9t0Y for <incoming@patchwork.ozlabs.org>; Wed, 8 Sep 2021 07:25:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2C39B385F026 for <incoming@patchwork.ozlabs.org>; Tue, 7 Sep 2021 21:25:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C39B385F026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1631049947; bh=2pI9xePZ5V9Xhwm4J2MJrZxhgUHzyMOowDgWd1sLc9E=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=sOVk4tN3Hnge0oDFAq5z3kacwiOlMEyUul64zGAWeKdF1+tgc+ltb+FCxUlX9K4v7 JMF256tysuV2QR0tfoA0Ehh7BPW2Kex/pp/wsJIcIKA5Vt3cWdNj6jdL/MnMTthNdG RnjB4sLQeFaWncgmfbUEduM3Kt/AfN+Q/hKgY+24= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id C29953851C07 for <gcc-patches@gcc.gnu.org>; Tue, 7 Sep 2021 21:21:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C29953851C07 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 187KxHni026500 for <gcc-patches@gcc.gnu.org>; Tue, 7 Sep 2021 21:21:06 GMT Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3axd44rf2j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Tue, 07 Sep 2021 21:21:06 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 187LElYJ157124 for <gcc-patches@gcc.gnu.org>; Tue, 7 Sep 2021 21:21:05 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2103.outbound.protection.outlook.com [104.47.70.103]) by userp3030.oracle.com with ESMTP id 3axcq09rvb-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Tue, 07 Sep 2021 21:21:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c+xA5XRxF0YeON/EKA2Ef3HMV2KePp0zG1ZDNv+0mgowKEhISLtE2upBHY/01Jqwy2rAxGVbt333AuYrfvzNSPmbLzdd+6di4Cs937c+2P/E9YaZ/sHKNM1yIpdRonXcGiKKiRu+yCqsia33zyBYJGm/OY7E6oJT9A27HxWsr+e1RagfpyU4e8UUzncmCg5vD5aKJMmf7LkYoCyzEm557EEu49R/7ZZaNwKeOR/hbim414UOvLm8mUlKJaphVjgmwq1+C81w0m1tVF1u7+L05jsjhkCub0MMUKaXqks5xAyRj9kLhfLeP0DAzepq7Rk0KX35+9OcKSpDF9SEYT9lcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2pI9xePZ5V9Xhwm4J2MJrZxhgUHzyMOowDgWd1sLc9E=; b=nts42Yrug3lDlus/RcrwG7ViQ7QB3brzAI8BS4PpagwqD+YFUrMNjNMPjiewe10Xj73Yk7Bt7YUUjLlfGh/TAmdW/AmEhvsI6MwH+hVoVsUr8uTB60Jm6cgH8yB13CG8kPCqUAOaCx1pmJ7MF9clncClFEHi9upYyy0Rn4kuqDPftPA8QXqDR/ABJnz548rS6TBbO5zCTKPqc8zRGOUwI1l48PXWi3RjgsoUOXBzR1J1qUjJFUGNIYLLCo/zFYPJ4yp6Yd1/YCN1+vbXrDMMFsZawh4bSGqvj96IWoH9iLW4KKrfJqQFEt+sQRSPOGOL7YFgI2VuM3CmWDG1NxR+tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none Received: from SA2PR10MB4458.namprd10.prod.outlook.com (2603:10b6:806:f8::24) by SA2PR10MB4476.namprd10.prod.outlook.com (2603:10b6:806:f9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Tue, 7 Sep 2021 21:21:03 +0000 Received: from SA2PR10MB4458.namprd10.prod.outlook.com ([fe80::1493:70de:28e4:3d3e]) by SA2PR10MB4458.namprd10.prod.outlook.com ([fe80::1493:70de:28e4:3d3e%4]) with mapi id 15.20.4500.014; Tue, 7 Sep 2021 21:21:03 +0000 To: gcc-patches@gcc.gnu.org Subject: [COMMITTED V2 4/7] btf: expose get_btf_id Date: Tue, 7 Sep 2021 14:19:46 -0700 Message-Id: <20210907211949.8436-5-david.faust@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210907211949.8436-1-david.faust@oracle.com> References: <20210907211949.8436-1-david.faust@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN4PR0201CA0049.namprd02.prod.outlook.com (2603:10b6:803:20::11) To SA2PR10MB4458.namprd10.prod.outlook.com (2603:10b6:806:f8::24) MIME-Version: 1.0 Received: from sequence.us.oracle.com (2606:b400:8301:1041::10) by SN4PR0201CA0049.namprd02.prod.outlook.com (2603:10b6:803:20::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Tue, 7 Sep 2021 21:21:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 44ccc902-75ef-40aa-3ca3-08d9724565d4 X-MS-TrafficTypeDiagnostic: SA2PR10MB4476: X-Microsoft-Antispam-PRVS: <SA2PR10MB44768BB1477E73F433B01E7386D39@SA2PR10MB4476.namprd10.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QtXvdd8vdYqhh4tJStn0gLoBRgPYKbwG7czBt2Qn94m/AtbPScxBMiL+i6wU1IUZJIVyHdOX0AtMG6GgyaLvh0/6ZAe4qmMRE3zGuyzUgOLLXjXBzwI9ibt9msV0yk4rWO9JXC282tL2Lg91t+hQ8kiCqaWbGw/QVNxv6jH2/a4BFP5rUvQdi2JjDFye/h7DW1yqCIsuSaQb6FxYB0rUwqPnwgMUGPDl1ZRbtnkYgyGP5NNndyjt8sPGf7R+fEaO537vigtaLuUPkP7+OX9WWQQWlecWZhUm1Y1GA4Gw3ADCZpvGanaD+UjuuyTfhDp9vhZdLYInBilsA41WFQQWg5TN8iI1xqKD7arb4iLmbe1mRyKdb0xL7hNvHSxWaBLLNhaUMnRxWmVaDeUp9/KNE0kNBbwpdHYMxhQpkc4UjaBUGyakP57xhkGKKMx3CdxaXuTvKBiBbenyYF+NFdJJAAJJNEzG1c6au4h7ZMKjBUD05QqKar27GCVWxXYaiIeOsFKbkkddfeTX4HUWDNRGwVtXmtnSKscCvWkd8ZubcA3mNJimiiAtZl1peONZxfBpmdgUYTooeoRfi2Yb3X8e5VtfwnD9UEb2zelf6vuXPvJHZ69+brA3y5Y87Kmrevz5mCArG7tL/FNY5UEAAeoLWw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4458.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(7696005)(52116002)(6916009)(38100700002)(6666004)(2616005)(5660300002)(1076003)(66476007)(66556008)(8676002)(186003)(8936002)(66946007)(2906002)(44832011)(316002)(86362001)(83380400001)(6486002)(36756003)(508600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HfOeEbi0+2wfJGFNAHJ5QRR4ZQK6BID3ReKhlSh/I47dShuaXo0YryjKxYTYghKzK3cU/XCx1tV4LU5o6L3xlc8tUDNLtz40x4uemNI9dcfD5P54KMbXQ088ggKeeNW2ON/ZCOp7qaUWo8jGvx2cqURKxeZLiujaccF7z78+RMuV+3RDFDiKMwecSGCzs/hsntkdCxfE3cbbieaywuIvTg/B+fKlmM5GfnY+93k2D1Q+ZwLK3Ncz2dcwkg7LXuijAcJEX/AznK/a+Ahed2OxSuqiz+EMTfblWoqUwmJHF6hDjnAm4F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-Network-Message-Id: 44ccc902-75ef-40aa-3ca3-08d9724565d4 X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4458.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2021 21:21:03.7389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fhRIP/tOsCF85hVeNPmRkUn8YVwDCHLR8BbCRoFh2PuV8KuQNyI1Hddf8YFWmKEcwJqB+3oot+L8LFffhpHVjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4476 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10100 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 malwarescore=0 mlxscore=0 spamscore=0 bulkscore=0 mlxlogscore=977 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109030001 definitions=main-2109070134 X-Proofpoint-GUID: HGR6k8eUqzS-fEDltrcxYVJPVYetQ0Lo X-Proofpoint-ORIG-GUID: HGR6k8eUqzS-fEDltrcxYVJPVYetQ0Lo X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: David Faust via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: David Faust <david.faust@oracle.com> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
BPF CO-RE Support
|
expand
|
diff --git a/gcc/btfout.c b/gcc/btfout.c index 8cdd9905fb6..cdc6c6378c0 100644 --- a/gcc/btfout.c +++ b/gcc/btfout.c @@ -156,7 +156,7 @@ init_btf_id_map (size_t len) /* Return the BTF type ID of CTF type ID KEY, or BTF_INVALID_TYPEID if the CTF type with ID KEY does not map to a BTF type. */ -static inline ctf_id_t +ctf_id_t get_btf_id (ctf_id_t key) { return btf_id_map[key]; diff --git a/gcc/ctfc.h b/gcc/ctfc.h index 14180c1e5de..a0b7e4105a8 100644 --- a/gcc/ctfc.h +++ b/gcc/ctfc.h @@ -431,6 +431,7 @@ extern int ctf_add_variable (ctf_container_ref, const char *, ctf_id_t, dw_die_ref, unsigned int); extern ctf_id_t ctf_lookup_tree_type (ctf_container_ref, const tree); +extern ctf_id_t get_btf_id (ctf_id_t); /* CTF section does not emit location information; at this time, location information is needed for BTF CO-RE use-cases. */