Re: [dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload

2020-03-23 Thread Jerin Jacob
On Mon, Mar 23, 2020 at 3:48 PM Mattias Rönnblom wrote: > > On 2020-03-23 10:24, Jerin Jacob wrote: > > On Fri, Mar 20, 2020 at 12:45 AM Mattias Rönnblom > > wrote: > >> On 2020-03-18 20:02, jer...@marvell.com wrote: > >>> From: Jerin Jacob > >>> > >>> + > >>> +#define rte_trace_ctf_u64(in)\ > >

Re: [dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload

2020-03-23 Thread Mattias Rönnblom
On 2020-03-23 10:24, Jerin Jacob wrote: > On Fri, Mar 20, 2020 at 12:45 AM Mattias Rönnblom > wrote: >> On 2020-03-18 20:02, jer...@marvell.com wrote: >>> From: Jerin Jacob >>> >>> + >>> +#define rte_trace_ctf_u64(in)\ >>> + RTE_BUILD_BUG_ON(sizeof(uint64_t) != sizeof(typeof(in)));\ >>> +

Re: [dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload

2020-03-23 Thread Jerin Jacob
On Fri, Mar 20, 2020 at 12:45 AM Mattias Rönnblom wrote: > > On 2020-03-18 20:02, jer...@marvell.com wrote: > > From: Jerin Jacob > > > > + > > +#define rte_trace_ctf_u64(in)\ > > + RTE_BUILD_BUG_ON(sizeof(uint64_t) != sizeof(typeof(in)));\ > > + __rte_trace_emit_ctf_field(sizeof(uint64_

Re: [dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload

2020-03-19 Thread Mattias Rönnblom
On 2020-03-18 20:02, jer...@marvell.com wrote: > From: Jerin Jacob > > The trace function payloads such as rte_trace_ctf_* have > dual functions. The first to emit the payload for the registration > function and the second one to act as trace memory emitters. > > When it used as registration paylo

[dpdk-dev] [PATCH v1 12/32] eal/trace: implement registration payload

2020-03-18 Thread jerinj
From: Jerin Jacob The trace function payloads such as rte_trace_ctf_* have dual functions. The first to emit the payload for the registration function and the second one to act as trace memory emitters. When it used as registration payload, it will do the following to fulfill the registration jo