[lttng-dev] [lttng-tools PATCH 4/4] RFC - NOT FOR MERGE - Add path configuration to debug output

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Dec 5 11:29:31 EST 2011


Because argument parsing can override the stuff setup by
setup_consumerd_path.

Mathieu

* David Goulet (david.goulet at polymtl.ca) wrote:
> This function is called before arguments parsing hence no debug possible... I
> don't think it's the best place for it though!..
> 
> Mathieu, any reasons it's before the argument parsing and the daemon call?
> 
> Thanks
> David
> 
> On 11-12-05 10:11 AM, Alexandre Montplaisir wrote:
> > It would be nice to print the current configuration of paths/libdirs
> > at this point. However the DBG() macro does not seem to work here
> > (nothing is printed). Any ideas why?
> > 
> > Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir at gmail.com>
> > ---
> >  lttng-sessiond/main.c |    6 ++++++
> >  1 files changed, 6 insertions(+), 0 deletions(-)
> > 
> > diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c
> > index ac03e34..8e2cb06 100644
> > --- a/lttng-sessiond/main.c
> > +++ b/lttng-sessiond/main.c
> > @@ -228,6 +228,12 @@ void setup_consumerd_path(void)
> >  	if (libdir) {
> >  		consumerd64_libdir = libdir;
> >  	}
> > +
> > +	DBG("Using the following directories for the consumer daemon:");
> > +	DBG("consumerd32_path: %s", consumerd32_path);
> > +	DBG("consumerd32_libdir: %s", consumerd32_libdir);
> > +	DBG("consumerd64_path: %s", consumerd64_path);
> > +	DBG("consumerd64_libdir: %s", consumerd64_libdir);
> >  }
> >  
> >  /*

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list