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 8EBCFA04AB; Sun, 30 Aug 2020 09:36:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61AB42B93; Sun, 30 Aug 2020 09:36:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id D84A9255 for ; Sun, 30 Aug 2020 09:36:29 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07U7aPVG026702; Sun, 30 Aug 2020 00:36:25 -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=sPqiodF4FQ4+yaAKnGNN8nuuNykvBC3yXE2xRKEiCHk=; b=DiWaquJiARFgDoeFKjJAkmenXCPydByr+7MOpqbKBTPbWc+1fH7AQ9QsuHvlFs8/Kigs UUvPoZ4jKFmO1KDJg/bN2OrwCs91IpvtOvzFgmnV6mwv+DLZw/yeALZcmQiaGBjaBvpR k/0hBQejf6wwmbHcC8gSl5HlJ9uWVeE4x6aeT9D/yH5MHR0zL9A2de/tCQRtj/xGkOQ8 khBvnCBzkT3UW5esrXngRQMDrCK5vm6kIa7Tn7nZEqncUqYk2svrgdihyQyl6Q0aXNJ6 Cr118AADFhZoTds2/RiMNjeIVk2PT15C46fSMcOq2tWwkSzxAjatoZzkAXcOVigjkLON DQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 337phpk3px-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 30 Aug 2020 00:36:25 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 30 Aug 2020 00:36:20 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sun, 30 Aug 2020 00:36:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TCkDCVen99tv2AbuKwzV/ywIAJYdk8gU8kaeUMu3fK7aLKgETxbOq9m1L6GUwRXDfeDm6nZhzj4Yj5lHlFCq0G/GNPb7pDADh0dDCMuXPQqnGBwg2xchU4qocTWtOHdMhN416Il25hE+QADqxBBti7hMnbVvbSKzjB6i2C0tft12Y2H+gp0Lfd+zivepgc9Ngdqi7uaAKLUoY25+KuFF4KbGU1+J+nQRDv7Sj4HO+zp4b9VMwwpAbpZQ0hfsu0TV/GmKeq3VAcSWtvOeZn+OzhSOxJ2cQmQ2Qi+gY9mQaMgc+tOD0tOKkBCrBaBl1g3s2Qm2RyGgI3tf9X5KHdgReQ== 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=sPqiodF4FQ4+yaAKnGNN8nuuNykvBC3yXE2xRKEiCHk=; b=amoaaoMuYi7ozDpwsT6fV3eQLpbGAEVtTxgHXtBD/Wx0RnPGSSitDrTxbUzEqXPUVHK25zxFWJesM0Q34ZGZaB9kNwFL2lyf+gWhvEIE9qs5XKXZ7EX5xon/RMlfmBzTdHv3dqKBWs/1v7pWNmtsQslpVmZoxBRuC/NJjUdKwwF+OCChgD1YqxyAZVDWFl95VL/fJu7NcVArmuiNozrlZnDw4ZM+vIgcIqBP9012G+BzupMW2B0NTzJzXGhlyymBBJ62pUjqT/XG1/7+bOgKB7cleuG7ZYjHu2KPVg1aqAaN/Yf1BDSQjJmZPFLb0FnPQP+gjiESFt9mzPfryFMO7w== 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=sPqiodF4FQ4+yaAKnGNN8nuuNykvBC3yXE2xRKEiCHk=; b=TL78ftOgK9V6cUqSOKiG4PAgeBchJSTakwVyqCHdhhCCCQit5mOW3F4Qt37rR3y34r7BfpFvUwZv03kB+1KOBpJlAL4rLFM+DlxcoOhJZmoC/C4CAPeFiz9aKqMBoCaKfLHwJrnd4yM+XKD4ope0F28rOOkw5vIWf79G1Ikuzhg= 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:36:18 +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:36:18 +0000 From: Sunil Kumar Kori To: Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" , Ray Kinsella , Neil Horman CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula Thread-Topic: [dpdk-dev] [PATCH 2/2] trace: add size_t as a generic trace point Thread-Index: AQHWezbdnfsNmarNs0WJ6gqf5LzVJ6lQSebQ Date: Sun, 30 Aug 2020 07:36:18 +0000 Message-ID: References: <20200825232410.975-1-pbhagavatula@marvell.com> <20200825232410.975-2-pbhagavatula@marvell.com> In-Reply-To: <20200825232410.975-2-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: e3ae8b76-9720-4592-08be-08d84cb7626c x-ms-traffictypediagnostic: CY4PR18MB1622: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:478; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TmGtuvBcRZFG0ge+6PIkMSGo+MYrKlZrQFXVPcUl5HJJyP2NlB8P2emIulEQ0A7Pe8Ubnjj6uScaxgAfKez+QQpk6rXtLW0BYCYgGH0md2ngeHulrD/fwgT5vk9fVJ5erdOBEYW/d4rDRWhdupLsC81mC9XQRm7Af3X1oR8+wCvsesW5pFli9ZkQWjU/E3gK3hJTfSlR+D5Yfp2bS2jsweRkI/vAIdlIDQk0Zr0fKS1tNwnmSzcII3s2vsel2oyzNtDeMG5WLQlQe19KYB60uU4v1XrcXDKgP5/x1gMee7NJnR++tTlZqEUBQ8nGpNQQ/HI6cVkVKKOaFtuPfTFPmKXpdL5UsyXgLrCZvxyjoTKD26CpIbR0cMS7lKTmVrFf 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)(55016002)(478600001)(66946007)(66476007)(6506007)(9686003)(8936002)(83380400001)(2906002)(71200400001)(5660300002)(86362001)(41533002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 3G+Y75Xons85OhgFqjRRSIGIXHxrpLtNmy2E0oVcm5VA1pTAKEZCVtgeVoCddvm/73aaw8Tdbbf3gx8nrbwoHtaqJgT1t8HhRkwgjYgdjGAeKQR1MOK2b5ikEpp8Sk437XFVtvzDJqG/AkIWM0Ihoj+pSBl5F2rZEHhUMCtv7wxx4o4LSXXFmbZOdXGEF7ClhRIf58tYJbCrxv9Zc4LBpLm9WyBdx3hD+aHGK9fKV4q8z+bRC5wXa9J9ajhWYsjXuagnnFKZpeFl28j0T48foOAQOaNR+VQNEkkYy6juqrI52iJAqap9dr55MkplGj3Mr2WLG8Wnaho+Gomj5VOTLwwCYQfq3W6Ux4po8+vbLBbyN4aB8FOHvBe/V1habWPLgQ0v3/9uOd/bzpb/T9GLigm6WT/MSx4+Tz7rpzYXDY8vZ4ZKbeS17I2XCpwZww3bklsy7zBaLibAq7J9l/VosYzG3342fLN9CmgZNpPG4+w20XJfz9+IZCM53mxdJbcHpBMsCZWSIzlWmXgpdEmuz3ebJ9WM7eIsmCbwDkT4przQyMl6DvBkP2bnjxbmRCK2WnJkkHhX2MVVkeA1vewiv5T2ECF44qJIM9UloAaYgEDdnvF22kdmJwSrjTlrXDPDbeCHL1k881p2dd7RN77KmO0E9a/Q66HbRxQaur4/Bt7gifDwPvjoFCZrDnXNA/iU8rUTVQa1ou/mysygzFXAFA== 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: e3ae8b76-9720-4592-08be-08d84cb7626c X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2020 07:36:18.5569 (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: 66T0t/AmtdLGa4DqwVJ5UOLrP68defAIUuTvpf0op7kh/7+NaiJfhEhzbJx4v2k7M8jGjq+P7hz5Y3E3zSPlbA== 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 2/2] trace: add size_t as a generic trace point 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 >; Ray Kinsella ; Neil Horman > >Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula > >Subject: [dpdk-dev] [PATCH 2/2] trace: add size_t as a generic trace point > >From: Pavan Nikhilesh > >Add size_t as a generic trace point. Also, update >test_generic_trace_point() to validate size_t emitter. > >Signed-off-by: Pavan Nikhilesh >--- > app/test/test_trace.c | 1 + > lib/librte_eal/common/eal_common_trace_points.c | 2 ++ > lib/librte_eal/include/rte_eal_trace.h | 6 ++++++ > lib/librte_eal/rte_eal_version.map | 3 +++ > 4 files changed, 12 insertions(+) > >diff --git a/app/test/test_trace.c b/app/test/test_trace.c index >ddcf416b2..0f9df83c4 100644 >--- a/app/test/test_trace.c >+++ b/app/test/test_trace.c >@@ -166,6 +166,7 @@ test_generic_trace_points(void) > rte_eal_trace_generic_double(20000.5000004); > rte_eal_trace_generic_ptr(&tmp); > rte_eal_trace_generic_str("my string"); >+ rte_eal_trace_generic_size_t(sizeof(void *)); > RTE_EAL_TRACE_GENERIC_FUNC; > > return TEST_SUCCESS; >diff --git a/lib/librte_eal/common/eal_common_trace_points.c >b/lib/librte_eal/common/eal_common_trace_points.c >index 292ec91be..0b0b25461 100644 >--- a/lib/librte_eal/common/eal_common_trace_points.c >+++ b/lib/librte_eal/common/eal_common_trace_points.c >@@ -36,6 +36,8 @@ RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_ptr, > lib.eal.generic.ptr) > RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_str, > lib.eal.generic.string) >+RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_size_t, >+ lib.eal.generic.size_t) > RTE_TRACE_POINT_REGISTER(rte_eal_trace_generic_func, > lib.eal.generic.func) > >diff --git a/lib/librte_eal/include/rte_eal_trace.h >b/lib/librte_eal/include/rte_eal_trace.h >index 6b1a813c7..19df549d2 100644 >--- a/lib/librte_eal/include/rte_eal_trace.h >+++ b/lib/librte_eal/include/rte_eal_trace.h >@@ -129,6 +129,12 @@ RTE_TRACE_POINT( > rte_trace_point_emit_string(str); > ) > >+RTE_TRACE_POINT( >+ rte_eal_trace_generic_size_t, >+ RTE_TRACE_POINT_ARGS(size_t sz), >+ rte_trace_point_emit_size_t(sz); >+) >+ > RTE_TRACE_POINT( > rte_eal_trace_generic_func, > RTE_TRACE_POINT_ARGS(const char *func), diff --git >a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map >index 0b18e2ef8..4ccfa593f 100644 >--- a/lib/librte_eal/rte_eal_version.map >+++ b/lib/librte_eal/rte_eal_version.map >@@ -397,6 +397,9 @@ EXPERIMENTAL { > rte_mp_disable; > rte_thread_register; > rte_thread_unregister; >+ >+ #added in 20.11 >+ __rte_eal_trace_generic_size_t; > }; > > INTERNAL { >-- >2.17.1 Acked-by: Sunil Kumar Kori