From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C73AF424BD; Mon, 30 Jan 2023 09:15:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5805240EDE; Mon, 30 Jan 2023 09:15:21 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id AE16240C35 for ; Mon, 30 Jan 2023 09:15:19 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v7 1/6] eal: trace: add trace point emit for blob Date: Mon, 30 Jan 2023 09:15:07 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D876C5@smartserver.smartshare.dk> In-Reply-To: A X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v7 1/6] eal: trace: add trace point emit for blob Thread-Index: AQHZLwmYccvEhrBEYEGF1HqKr/wqgK62l8RwgAANNAA= References: <20230120084059.2926575-1-adwivedi@marvell.com> <20230123090229.3392071-1-adwivedi@marvell.com> <20230123090229.3392071-2-adwivedi@marvell.com> A From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Sunil Kumar Kori" , "Ankur Dwivedi" , Cc: , , , , , , , , , , , , , , , , "Igor Russkikh" , , , , , , "Jerin Jacob Kollanukkaran" , "Maciej Czekaj [C]" , "Shijith Thotton" , "Srisivasubramanian Srinivasan" , "Harman Kalra" , , , , , , , , , , , , , , , , , , "Nithin Kumar Dabilpuram" , "Kiran Kumar Kokkilagadda" , "Satha Koteswara Rao Kottidi" , "Liron Himi" , , "Radha Chintakuntla" , "Veerasenareddy Burru" , "Sathesh B Edara" , , , , , , , , , , , , , "Rasesh Mody" , "Shahed Shaikh" , "Devendra Singh Rawat" , , , , , , , , , , , , , , , "Ankur Dwivedi" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: Sunil Kumar Kori [mailto:skori@marvell.com] > Sent: Monday, 30 January 2023 08.31 >=20 > > From: Ankur Dwivedi > > Sent: Monday, January 23, 2023 2:32 PM > > [...] > > +RTE_TRACE_POINT( > > + rte_eal_trace_generic_blob, > > + RTE_TRACE_POINT_ARGS(void *in, uint8_t len), > > + rte_trace_point_emit_blob(in, len); > > +) > > + >=20 > As per documentation rte_eal_trace_generic_blob() will emit 64 bytes > only i.e. input array cannot be other than uint8_t. > So will it not be better to make it more readable like > RTE_TRACE_POINT_ARGS(uint8_t *in, uint8_t len) instead of using void > *in. No. Using uint8_t* would cause type conversion problems. The advantage = of using void* is that it is has no type - which is exactly the purpose = of a BLOB (which is short for Binary Large OBject). We want to be able = to pass a pointer to e.g. a structure. Using void* makes that directly = available. I didn't notice before, but the const qualifier is missing. It should = be: RTE_TRACE_POINT_ARGS(const void *in, uint8_t len), >=20 > Rest is fine. Already acked above. >=20 > > #define RTE_EAL_TRACE_GENERIC_FUNC > > rte_eal_trace_generic_func(__func__) > > > > /* Interrupt */ >=20 > [snipped] >=20 > > 2.25.1 >=20