From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4158AA04AB; Sun, 30 Aug 2020 09:35:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D76B82B93; Sun, 30 Aug 2020 09:35:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 82506CF3 for ; Sun, 30 Aug 2020 09:35:21 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07U7Vlbw028299 for ; Sun, 30 Aug 2020 00:35:20 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0220; bh=Ep8vPP6DtOo+elU4cl2S68p58VIZWPeVhOUj/8mNOSs=; b=RVqYy/jMIqu83rWQLMOzYX/ZkESjSJ401ZIq3cmZnvktMsi40h+HCHWE8aDQYQMM1eK6 OwmsyAHEv9sD2fNMuWRZl63mjoynzhoItz2enhkrsDsiCB3DEOkgmn7mObg4YMyG0qsr xeTgulzpydUNBPOql7TywXhLxh1YBHxnEbCz9bOeOtt4o3UDvOoYySuVQXXxRc0xkSBh PuvaLYTkoLC02hqJayAYEvrCou+jwq5cfFSHlGXYKJhu8z5wq3puevUbYqPRP5PdpMw2 Xtek8L3jk/SPVouWlG5IlzcJvT45uRQbujKXDGMzfWhvx9gxHH/YpooNRZgWrxQj1vP4 sw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 337mcpujsw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 30 Aug 2020 00:35:20 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 30 Aug 2020 00:35:19 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 30 Aug 2020 00:35:18 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.174) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sun, 30 Aug 2020 00:35:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hLF6bZ9f+O6q2IB9xT2TQZdqSvTQEiWbDXAsuMV564JwgdxEZBqSYRFwM6DSdjndkSl4fhDV6nVOnhg1Wdt1oH3UHpXXIdj3YnQYQg2dk9YGVnA8ERi9T1OQA+TS2B1KnU+ZETPUAu8kr2icDUVlFWU0+ezjfMtaSkkg5lZbVZouM+bHCXaV3QRXlb9vvK+I86ZUOafr3dNsyKLYA24nTY12Tsejc0jb5dEJLS86z3nS1JFkCs1+NK7CGkc4AcMF+K3uXnYDO47iV++eWsQw6EXyicBk6MT7sgOMOaCRvybquI0jfU3g7bi6U2hJH0t9x5B0IvmcPE00lKCRAXnyMA== 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-SenderADCheck; bh=Ep8vPP6DtOo+elU4cl2S68p58VIZWPeVhOUj/8mNOSs=; b=H574352vZ2g1w1tnHmVMoumgKW88xB7b0E7D4/UNHD4jUqdslxgog6s9uzmO1ah0OzwtjGd6c8zSbjR72qUdXqOvHLlKHnf464uydsy0dW9e8z1hx1Wn6B5NTYi31mCATGuunt8qnAi37moGGdrzDcGjEC5/rVjuC7IVEZiOnhkq0G50/h393uAbb8fT/vT5y8QXEYFA+4oQ1OUoTwpGR0/orydXAAfkQYbrpStxPKEwuUzjVHJySElMi2RjC8IgvjRSgJsFZHBWPQV29Lr2IlQD3s+3QVsUtd66p7d6B8x2NiaiM9Axj2q9NzlRBh/jyr5MicdDDTGRspv3GOJtUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ep8vPP6DtOo+elU4cl2S68p58VIZWPeVhOUj/8mNOSs=; b=g2wnjhOuguIVMKE4iKcnPdMoJffNg46ElnzMhHoaLESOeasOL9Q8tAqC5DnvDH11aLKD8ic9dE6FB32g8rzsPRBq+QpD8g1pUhy1P3B/nF0KU6Ghe2MtdKcMwRDP6f1J8DGxJNxIqqKrfBu0ad/w+9gERkVlfMtJmzFiy73utac= Received: from CY4PR18MB1622.namprd18.prod.outlook.com (2603:10b6:903:150::14) by CY4PR18MB1622.namprd18.prod.outlook.com (2603:10b6:903:150::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Sun, 30 Aug 2020 07:35:17 +0000 Received: from CY4PR18MB1622.namprd18.prod.outlook.com ([fe80::4491:a00:867d:ded1]) by CY4PR18MB1622.namprd18.prod.outlook.com ([fe80::4491:a00:867d:ded1%10]) with mapi id 15.20.3326.023; Sun, 30 Aug 2020 07:35:17 +0000 From: Sunil Kumar Kori To: Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula Thread-Topic: [dpdk-dev] [PATCH 1/2] trace: fix size_t field emitter Thread-Index: AQHWezbevY2+GShtTUOpvICP6FQ5YKlQSZwg Date: Sun, 30 Aug 2020 07:35:16 +0000 Message-ID: References: <20200825232410.975-1-pbhagavatula@marvell.com> In-Reply-To: <20200825232410.975-1-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2401:4900:44e4:57ae:951e:5169:55a2:3e1d] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 63c07042-8bcb-4b3e-8ba9-08d84cb73dbf x-ms-traffictypediagnostic: CY4PR18MB1622: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:352; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lQXPVVX0bI2K7aC3TuPAGrt7jsSWtywmaqhCzQkFpgX26hmKAx/RcHI7MQgDj4+eoAUjrkAuKRQcc6SaagjQkittQJgUw2JrD+W9VYdix/7W/CGH38aE3Oil/o8vkX/L4/KODwHtXH4/1E3iRdSFFI+sCx+dAnzdFOLDOM+g77hQhs+JP/78wGqrRV/cN4TfKWMupGhNTJQSInmOoIqv3n5fzS+4IM0Bk1i07TJDSLaN9LfgerPGV86huas6rru94Ks2rNhPI7hJWwABvrSaHoH1IKTRxvMrJFe6xuoFo6P+uAoEAUL+4E9JPaSgHqjx+6lfGeVeI7fqjSZnyWM4Zg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR18MB1622.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(136003)(346002)(39850400004)(396003)(186003)(107886003)(7696005)(76116006)(52536014)(110136005)(4326008)(33656002)(54906003)(64756008)(316002)(66446008)(8676002)(66556008)(6636002)(55016002)(478600001)(66946007)(66476007)(6506007)(9686003)(8936002)(83380400001)(2906002)(71200400001)(5660300002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: m4VjxdU812yTIhJKQHqW25TOKY1TtpPviXhcrew+WyGX8UweE1vCHuOKJu5R4bAcFfUtRJFysM11LcLq7ZoAIZrZV3wrl3PjPGSJ/7cPMnYU898Kv2G7JYGin1IJK/VlM5VW7MnxIiYd9TRfA9G9pvgsX8gQo9Xh9yt4oj/2DbvK5o8bH6MQ+j6hmliCIlWTGZy0h2sp5Hp0p01BFsNiknQiG9QNH5ilMoHosRAUef2cp+J26tfoV+8n5CA4P5Vum9EANmgeBqPTZa2ANYIHko0XkHjZp0gl/IIdazx1ViFmD12mofVZ1vjScN8Q7M2hujkF3nCU1gn0CFCL3j8efI1qCs1uJCz9ayHzFEysbRlNDxyZB4+UEQn4ko1mQbysaaWKtH7Qh8oSooYV7XIStp+wAB+xV81dLpuifZE6iDrqwqOmwvpKwPdbfR/JhS1IW9VYubi0++2beZ3nJtL93u8oVkPveCCWxqNTscV+yccxF2/ha7ltnWQnnw/Xiv8XAyPAC1dNOAOXAjqL6E9kutC8+D3D8i0LhUMRRLfn7vfLRd1OPEH/RGlE3M/rgOHHTVaNi6JyntaUqdoQniBItJxbfl8SaBM3zTlQs2Ph0uedJtb09KPWyQX7w4pbF8XpVgeUj7eP0QJI9GHXoAx+LhlkA/pDtbsgGaCmvOLQtFNFOWy+itJddxCkFzHkJx6isN9RRIkQmfSjDiCHslP4Dw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR18MB1622.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63c07042-8bcb-4b3e-8ba9-08d84cb73dbf X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2020 07:35:17.0125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v66vTayorFn1UeNKl/PmWa0NVUIixu4VNhWY1u9v+Bmd/Jiqx6mze2vAiOC1DRaHeIc2PqCOSI5aS7PIx0OdQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR18MB1622 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-29_15:2020-08-28, 2020-08-29 signatures=0 Subject: Re: [dpdk-dev] [PATCH 1/2] trace: fix size_t field emitter X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >-----Original Message----- >From: pbhagavatula@marvell.com >Sent: Wednesday, August 26, 2020 4:54 AM >To: Jerin Jacob Kollanukkaran ; Sunil Kumar Kori > >Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula > >Subject: [dpdk-dev] [PATCH 1/2] trace: fix size_t field emitter > >From: Pavan Nikhilesh > >Add size_t CTF format metadata, this is needed by CTF analyzers to >parse the emitted CTF trace. > >Fixes: 262c4ee791c6 ("trace: add size_t field emitter") > >Signed-off-by: Pavan Nikhilesh >--- > lib/librte_eal/common/eal_common_trace_ctf.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/lib/librte_eal/common/eal_common_trace_ctf.c >b/lib/librte_eal/common/eal_common_trace_ctf.c >index 302e2bb74..9dc91df0f 100644 >--- a/lib/librte_eal/common/eal_common_trace_ctf.c >+++ b/lib/librte_eal/common/eal_common_trace_ctf.c >@@ -83,6 +83,11 @@ meta_data_type_emit(char **meta, int *offset) > "typealias integer {size =3D 32; base =3D x;} :=3D long;\n" > #endif > "typealias integer {size =3D 8; signed =3D false; encoding =3D ASCII; } >:=3D string_bounded_t;\n\n" >+#ifdef RTE_ARCH_64 >+ "typealias integer {size =3D 64; base =3D x;} :=3D size_t;\n" >+#else >+ "typealias integer {size =3D 32; base =3D x;} :=3D size_t;\n" >+#endif > "typealias floating_point {\n" > " exp_dig =3D 8;\n" > " mant_dig =3D 24;\n" >-- >2.17.1 Acked-by: Sunil Kumar Kori