[dpdk-dev] [PATCH 2/8] trace: simplify trace point registration

Thomas Monjalon thomas at monjalon.net
Mon May 4 16:02:06 CEST 2020


04/05/2020 04:46, Jerin Jacob:
> On Mon, May 4, 2020 at 2:02 AM David Marchand <david.marchand at redhat.com> wrote:
> >
> > RTE_TRACE_POINT_DEFINE and RTE_TRACE_POINT_REGISTER must come in pairs.
> > Merge them and let RTE_TRACE_POINT_REGISTER handle the constructor part.
> 
> 
> Initially, I thought of doing the same. But, later I realized that
> this largely grows the number of constructors been called.
> I had concerns about the boot time of the application and/or loading
> the shared library, that the reason why spitting
> as two so that constructor registers a burst of traces like rte_log.

I don't understand the concern.
How adding more constructors is affecting the library load time?
Do you have any number?





More information about the dev mailing list