From patchwork Mon Jan 8 10:55:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cupertino Miranda X-Patchwork-Id: 185907 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp949822dyq; Mon, 8 Jan 2024 03:12:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCFggBT8elUlOHX3JNxAVDJ4G9MxCHNk30rI//yq2nZl5WMOzdEvpXNfhTd6FUJyCM2asT X-Received: by 2002:a05:622a:1006:b0:429:98fa:42de with SMTP id d6-20020a05622a100600b0042998fa42demr1138453qte.32.1704712359812; Mon, 08 Jan 2024 03:12:39 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1704712359; cv=pass; d=google.com; s=arc-20160816; b=d9ZfAekW+eVtZ2QAccucBNaPQmhPGRrBSf3Hro8UJRrzFcS6Jt9wx+FQTqzozbdL6P SFMfFp5CpRhQ3xUpXdNAEzUktCndKZmv1Pf9PserhE4mzr0M6HXaiswJf06Hh+mne1DY tbTD1m+vpNLYGwWOC02o5skNUYZfR4RkrgFXMeqgTUvhV2ogJU0sSP6f+ECxk9I3DmSc yuYaySZmQyOBMdS/cF6rx7nS/BrPtpiD7L/xcct3sGDvOW/wH5ceCqM8opj6xu/etz7f tK+GSbiswjVigj1kZFw2yw9crxqfvdl92FtJPycX+xKpZIVWoyp7HZtDrEPtDXScnH4r qQ9g== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=7DaXL01Xol/hi0ZNZ7nRysLYErlTmhvhCdHqThxPNUs=; fh=Yx4Q6MequuStZjuEA3xNVeBJ0feENGnYy074RfRUOsU=; b=N6hv0gUTsxhjdrbMHBNj+XJfGAI4D1+EcPseFLtZcWueWr3+boKsakInKud0QbHT6r pJ+rpaxs9vQLINWImPhCTRZDNtBJde40PMm9zJCcLalZLEorSwyZHeBtsU1+tItp5w8J 0iguUGkGW1FP0PIZA1Ih3FnOVBZ+xvYSEtsSuDWVRTLowNu7AciHuz17245eq3oRw7W1 BdTdq3nNMIPm8kNNdFKG14eUdc9RbqdRFVnML4KDWxBg1Yxbx+pb1ZSI6tFCO1P5EnIa 18b61Hm193sGjMFEq3PSbFRJm1M4RbN5D7wgGHj4l8/4syquHLmRX3uGwJz/1IxrBdLN adDQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=BMzMSzhU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LRzxHgIJ; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g22-20020ac87f56000000b004298bfa04eesi3486117qtk.618.2024.01.08.03.12.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:12:39 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=BMzMSzhU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LRzxHgIJ; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F8393858D35 for ; Mon, 8 Jan 2024 11:12:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 9A3183858C62 for ; Mon, 8 Jan 2024 11:11:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A3183858C62 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9A3183858C62 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704712320; cv=pass; b=UuSuRadJmyuCE+8NrC2VVvUZaXAqd9+uNgffXSJClkNaEFWXBhXiogdj3I7bSXAJstvJGdsOROgR0AJecEqhnjh18b8gn0/MJ4dEwZTA8fjl5NPHpb4Ux6z9a2pAZYjwqyMqAQXKsReBHk/VrxFeBrw98VDZJTuVZFp8eagrpsA= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1704712320; c=relaxed/simple; bh=HGlc4jeTSREt4V4szSCAdhp3VD9KKUvrlvOPOPzzgjc=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-Id: MIME-Version; b=JbIzQC4hGDiygtMDWG/ZkHQANCvSPGCw3C1Z4DMCjFzBONjK+UJ/uIfux4ILgxtIv+2muZSLRBit569qA7lRKJ30ShInYBMdIp0ZfCux86N4BvrMsMkHume+EwIgIoXmkpDb8ysJ6wxwP2bUrP78/eV9EOFP4sRN1JnIzRD4UBA= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 408BAhT9023188 for ; Mon, 8 Jan 2024 11:11:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-11-20; bh=7DaXL01Xol/hi0ZNZ7nRysLYErlTmhvhCdHqThxPNUs=; b=BMzMSzhUVlQCOIf5Vd3dx8dpaDltnW0h518lDehhZLwI0iDgsQ1C+Jen1Oyef/hXPqJW zVjiMsYL7jpIk6JLh7CkQbaoaKkeLgALbpFfKhlgYofnLFjmceojRFWt1y4tg+glsiDf RVC6WRJWFU6qnqx57iaHI5ZU5XkGEqTgS27vFG5e2OpnSufuad/A9lvtAKVDlK307Ho5 v2oP/7FejOsCFHLcwPf+JKJQ4t+wVsLAxz4n9YhGj6QXMXAVt+oZscRyWYfKzdAofS4I N4KkmDhBL5poFMAnyPMIGONqKtPwx7mFNswKoX/NWSpQgzXiFCikYN6K7ce3XalfBGFu Iw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vgfsgg0f9-14 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 08 Jan 2024 11:11:56 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 4089XRaH030139 for ; Mon, 8 Jan 2024 10:56:11 GMT Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2040.outbound.protection.outlook.com [104.47.51.40]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3vfutj7sbb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 08 Jan 2024 10:56:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fr6LWEKoeqFFykqW34lJpY3Bbrx3xMiw2F4cK68wWqeySdTnlHTd4P9xqQwT5Pfs9sjyMKuM4SSBamSFOByW5oc6Qn50IHVC0/hu89HIVbtzJoSXtwTx08RCU5fIt2AB8y1dg7xCL0fvUAIRQfGYBAOPwZR2c8J38W4RN9cnj5gbd554I87dDwEmphNGPwK0w5VPVdZ/w6Kj8xVDhcXJ9pBTR8/ctgpT/jV5LpQMtXaIDvIQXuSa97iP4nKKTek4PMvrE8F5ZE/QtaO/nTbjZXqKrp6qtBCoBXjpS4PsxNZ/PmfJ8SgHx8ODAyZy8UTw+KUQT34AAf/7mo/vmBHiOw== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7DaXL01Xol/hi0ZNZ7nRysLYErlTmhvhCdHqThxPNUs=; b=GzLRkNcJkBW//MJ8gCfW5oFy4anmi8RcWZOeOefJ0CkF862iyyygGo60y+dIIos7twrPEYsArA6ot6emK3Vv8CTjKXr25CrdYf4Cr6NR3VMLa1XpWSQ7gJoRkVeCGsBe5bbOg0jaB9Q3WnkWa1NhVws/l3bRP3kvkYhzCfLzytaGRVr3f818wHx90o++Te+LmR+j6q4M7GPpcowJRyYhRbQvjS1lj7wlJi3+xHF/+O5wIyIezYlL4aRbB0G7P3vrImC1SwEbWndm8va37pzOMoHiFqxS9ZeXaRTxs/PFaM8csGJ4vaef+XkCrlPE8G38zENT6PKZ88OebgDMytN0fw== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7DaXL01Xol/hi0ZNZ7nRysLYErlTmhvhCdHqThxPNUs=; b=LRzxHgIJxhZS/X0mOsTEBO4sDd/Z8QDLsG8q34MpyV8xMnDC1AQIJI3ZhQLly/QWFDD9sLU8Bnyw/JW9sPkYvyWQYc6HxojFQcOZyVHrH2yriRXtHmfMQmTJJk2WBrmc47Ejo33dizPc9qfBbJ0me1loO4U2bRl3l4m6kRtaihk= Received: from MN2PR10MB4382.namprd10.prod.outlook.com (2603:10b6:208:1d7::13) by SJ0PR10MB4574.namprd10.prod.outlook.com (2603:10b6:a03:2dd::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Mon, 8 Jan 2024 10:56:08 +0000 Received: from MN2PR10MB4382.namprd10.prod.outlook.com ([fe80::5252:c588:583e:7da6]) by MN2PR10MB4382.namprd10.prod.outlook.com ([fe80::5252:c588:583e:7da6%5]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 10:56:08 +0000 From: Cupertino Miranda To: gcc-patches@gcc.gnu.org Cc: jose.marchesi@oracle.com, david.faust@oracle.com, elena.zannoni@oracle.com, Cupertino Miranda Subject: [PATCH] btf: print string position as comment for validation and testing purposes. Date: Mon, 8 Jan 2024 10:55:52 +0000 Message-Id: <20240108105552.714778-1-cupertino.miranda@oracle.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: LO4P265CA0051.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ac::13) To MN2PR10MB4382.namprd10.prod.outlook.com (2603:10b6:208:1d7::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR10MB4382:EE_|SJ0PR10MB4574:EE_ X-MS-Office365-Filtering-Correlation-Id: 3feb621f-9cdb-46ec-0d51-08dc10386b35 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DiNxhZ5OftUq1sdSE8S2DhER//WZyu1ev1/ft8Ckgto40pHt64v0zY7KehyKdrBvT1cSW1s0GWmzCYeY2U55YkbwrMtl4lYAy7DbpCV3IuVtZC19TszC7HxMefPDj9twwMF2FJ/d84ov8DcOB0jjoiT9Axe7ZnUKeMz+jKsKP0k/tQ5J7h7IUOQ2ZWOV7iYfUTVfmV2OvgtK8Q7hKlHjoPUJlrJzW4rCu1WUMaIu1AbPVAAxalGPd/7FR5FlRj3b9aiA8MRGvF4hlGA0Fb0uNcMZEp7YkG5CX22g7q7sca34eZtKYFteMODZ4SBdUXztTF3sa/cXGUKFG4+pEyDWHXUMvbzXViMIOXrDUuTBJxcVESJAwkB+GY+t+ZZLHTXBm9dGW5MLhTBOATb9hsMFAX5UBxhzVIL8HByDov4D2SDLojagC49gsEJX76nf3bwYjWOPno6R50JFdBWiwqfncuuQofI74P4TWNTw6lkr5j9hILq1qu39aY0QeBGKXotun6CgAB4S4swbm1mINTQmsdk4KrErEui8ujrje/y7ORK0/eTgytMCblIm42XoVcjk X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR10MB4382.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(136003)(376002)(396003)(346002)(366004)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(38100700002)(41300700001)(4326008)(2906002)(5660300002)(6916009)(6486002)(44832011)(36756003)(86362001)(6666004)(6512007)(6506007)(316002)(8676002)(8936002)(66946007)(66476007)(66556008)(83380400001)(1076003)(478600001)(107886003)(2616005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cXQaZofX+FUaM4KcUBchTAZ/7C4778Bn5fQKs3jNyF8A/SkNsFGDH8KIbohHuLhIXYg/B78lUqAZ25SqPD7FGVNZ6xoLfUdkNwRblpna6T1XTweO78NgL2V9xK9UQUsNR8k7n3M0nWbm3ZnrxaPAZ0h3UNez3V59GyDTBinwv3W7a5YvMKtswpC4qtYYwhSohEY5+VKldaNQjrsmSqmbEuxygeNsdLV7NMDRVaT78ufb7n+H3Tc607wGnGAb4vXrMVyuDmeHurKKRGBwm/EGc+y2PwoByPSVG5ANtNRMrLzXl1CYyDDIEOikncJot3xizacYETctYeZ1g9gAwiWCpcMtLtc87lskLEZKd03Yse1Qzm3k6JlB3HEbpGF9oSniq7eF/a/xChFBzIN+kHPeMZ3rg3bPU2992qXEAPDoagCv583WOHe+kBbYY/2tUGAgH2bSs9FLYzP+eee+Gw6GOQF+rGMBArSkPOubrfbAlgkFvANXmZRwQIjbuZApkcOg1+G+jWNhvpnIfott1z7SiKzHM46A0E85J5OeIsQs4g/MN7Xy7mjkYNCbP4oLcBC1igo17zZbezg+2qXqqnk7HJi9wmCMUZ11mmoch6WEk6wPaMrkpWIKBwkFmPbVVYEf37gbq5r0N5Myun0IcpTibHtMDNFQhVQNt3QSWJo92hK6h5l4osedIBiZEMv6IvaXHtyfLffOqogOHSdbYC8jQ5hfES9C81S7TNzwYp41w3cGc8prDNgqPR7ze0ICKOEt70hc1Z58OhadSkJV11peIxCnyDxUH4Vza70rvnbOhNd1TmzHyPCO7d13afMdL8qWBO93jLAhhsRz7yfNO3orAzOPyMwYBODjXAeqlPjrNr4xhF0jtF1elrw9/+uNh2dyFrI8qwSL2sAwrB0M0ta4JaQWzR5b1zqOhaAWk8xd3QYn5fPF3jDpn1LKDt7YYe+1P7+ZgUErTEjkbVU6LoA7SGEhIECqZST0l8qz69YSQ6lXUMehTxV/czmwZQL71IIIyIbqS+fnxHSjFmbvxfVKS/OW8NQiHXSTh9Ef2qeqEkpaP0NGNAyZoYsWF0qrznV4ru/DlrR7aj5LM6t34iV7xjwDCv7/bXusgotrwnpCpxeb1153ZQBPLC/3vGelb4lgwudBA9mPg8QH24pBT+SfupdlcrkdL75cqCCt2LYgY/ijFDcDTe+lK1ikHLdVbJSTbK0hqrCw+092Vxranx7XQ102G8WG3txcKMMFgw/pe3KxgoLhim0UIwMUl9K5cTzfHEECIYB4oH2xQ5btmo9nSgkHbqu1bWLQJUdZh26sHqWfW5Gn0NdvEKycXegjYB8kt8N98cdXSkYe4p4wi7dYZtjsJlNUrI38f8KUczZwJyOZGvIHQvy4kebCHUNNcxKeeXHdlwN3NVIwD4M1NBCiqfF9V2NwMwzsa03lxsoRg7ZtypW12BYw3TXd4bugoeRSW3QnCrdv5Td2F1Gy6sbGSSBgibdGZACWpzPuC3G80OBoG4YJ3yr35wS5GW69m8o6ikNV7XJa7awEZZ3zxitFi1m2YtN80VmJxwlMtZNkVxw9VBfu0TjVSG3Csxck3LuU41hIr3JuC8oCXigeteAmm2nLhZ+YNiTGpwmPPc1NxjruI9neJay+6a3aYU02HNXv X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: RBAITrdVfSSB5Y6QchAlJPh/hSZCOAWh3E5oDsnwG4oMVThi/2jV/cvgoEvx2+RPDi5r51UHQGjBlK+mepLPdgqsFam0WgTiLKTjhdSX58BdLle6KwpGLEoFJ4jeijjuqZWnaK77uMlxaQXDrPOg8ofWv50+I+ZtfFV6WqCeexdnTWpZ1V8MPfxefYaqPxL2Mp+r64W15FwDCn4lbwQkqaL86N3UqrpTZbHuo/fJzEEU8prqxS8KzuU9O5Q03MH+ddaaK8+RO97HEqsP3PN+lAnMad124L5CN2Txf8zy13FVj1AkfBrgULCWWZx40qNlhA1JarH7DqnfogvKn8SMso8MfnIq+6oDCkrzseQrhL4tEZ5EtEfueqpYhSwfGOYVBdYbcbfYYssTRBbLr1oFp6uSzUEAv002blQxxBk+Gf7vTiL+WNai5tO4H3n/kzMQBsM0GNL2CZh5eCU7Tbx2cJY2lW4YZY3pdbvIF4+QNg67n6+YDj8r0NTd2mUrx7YSGshznEWm8WAd8/g5RnrKChwIB/GL9RAs722OGCMY/2YwldwRXPORvr+bhiJYm9FI09lnopRHe/3czJIVSiahNHMRvICFlEJJPtDeNxUaaiE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3feb621f-9cdb-46ec-0d51-08dc10386b35 X-MS-Exchange-CrossTenant-AuthSource: MN2PR10MB4382.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 10:56:08.4389 (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: mB8qXK+6cIskCawmdyErRPyZ+bYmcO0nLVE/i9pZhaYJxmOaVUurGNR2Z9l1xWPDRH1YZockdiIQ+OegeYUng2yDh1xRHPdEgeOBUI3uIvA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4574 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-08_02,2024-01-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 adultscore=0 phishscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401080093 X-Proofpoint-ORIG-GUID: tp859j2XEbtplcpqipMt6ypJq4y7OiVE X-Proofpoint-GUID: tp859j2XEbtplcpqipMt6ypJq4y7OiVE X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787520467041155537 X-GMAIL-MSGID: 1787520467041155537 Hi everyone, This patch adds a comment to the BTF strings regarding their position within the section. This is useful for assembly inspection purposes. Regards, Cupertino When using -dA, this function was only printing as comment btf_string or btf_aux_string. This patch changes the comment to also include the position of the string within the section in hexadecimal format. gcc/ChangeLog: * btfout.cc (output_btf_strs): Changed. --- gcc/btfout.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/btfout.cc b/gcc/btfout.cc index db4f1084f85c..04218adc9e66 100644 --- a/gcc/btfout.cc +++ b/gcc/btfout.cc @@ -1081,17 +1081,20 @@ static void output_btf_strs (ctf_container_ref ctfc) { ctf_string_t * ctf_string = ctfc->ctfc_strtable.ctstab_head; + static int str_pos = 0; while (ctf_string) { - dw2_asm_output_nstring (ctf_string->cts_str, -1, "btf_string"); + dw2_asm_output_nstring (ctf_string->cts_str, -1, "btf_string, str_pos = 0x%x", str_pos); + str_pos += strlen(ctf_string->cts_str) + 1; ctf_string = ctf_string->cts_next; } ctf_string = ctfc->ctfc_aux_strtable.ctstab_head; while (ctf_string) { - dw2_asm_output_nstring (ctf_string->cts_str, -1, "btf_aux_string"); + dw2_asm_output_nstring (ctf_string->cts_str, -1, "btf_aux_string, str_pos = 0x%x", str_pos); + str_pos += strlen(ctf_string->cts_str) + 1; ctf_string = ctf_string->cts_next; } }