[dts] [dts 1/2][PATCH V1] set dpdk log level to debug level

Xu, HuilongX huilongx.xu at intel.com
Fri Aug 19 07:24:27 CEST 2016


Hi yong,
Thanks a  lot for your comments, I will send V2 patch ASAP.

> -----Original Message-----
> From: Liu, Yong
> Sent: Friday, August 19, 2016 9:13 AM
> To: Xu, HuilongX; dts at dpdk.org
> Subject: RE: [dts] [dts 1/2][PATCH V1] set dpdk log level to debug level
> 
> Huilong, I have known this. What I mean is that not change default
> configuration for all suites. It may cause unexpected results.
> You can change configuration for certain test suite just in the suite.
> There're lots samples like ieee1588.
> 
> Thanks
> > -----Original Message-----
> > From: Xu, HuilongX
> > Sent: Thursday, August 18, 2016 4:24 PM
> > To: Liu, Yong; dts at dpdk.org
> > Subject: RE: [dts] [dts 1/2][PATCH V1] set dpdk log level to debug
> level
> >
> > Hi yong,
> > Dpdk package default highest log level is INFO(The value is 7).
> > So we should reset compile switch for update log level to DEBUG(The
> value
> > is 8).
> > When we run dpdk app the default log is INFO, unless we set EAL
> parameter
> > --log-level.
> > Thanks a lot
> >
> > > -----Original Message-----
> > > From: Liu, Yong
> > > Sent: Thursday, August 18, 2016 3:32 PM
> > > To: Xu, HuilongX; dts at dpdk.org
> > > Cc: Xu, HuilongX
> > > Subject: RE: [dts] [dts 1/2][PATCH V1] set dpdk log level to debug
> level
> > >
> > > Huilong,
> > > Please move the configuration file change into core_mask suite.
> > > We'd better not change any code in dpdk, DTS should validate default
> > > dpdk code.
> > > If some suites require special setting, it should be included in the
> > > test suite.
> > >
> > > > -----Original Message-----
> > > > From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of xu,huilong
> > > > Sent: Thursday, August 18, 2016 10:32 AM
> > > > To: dts at dpdk.org
> > > > Cc: Xu, HuilongX
> > > > Subject: [dts] [dts 1/2][PATCH V1] set dpdk log level to debug
> level
> > > >
> > > > Signed-off-by: xu,huilong <huilongx.xu at intel.com>
> > > > ---
> > > >  framework/project_dpdk.py | 2 ++
> > > >  1 file changed, 2 insertions(+)
> > > >
> > > > diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
> > > > index 4e44793..6ea8fb4 100644
> > > > --- a/framework/project_dpdk.py
> > > > +++ b/framework/project_dpdk.py
> > > > @@ -133,6 +133,8 @@ class DPDKdut(Dut):
> > > >          Set default RX/TX PMD function, now only take effect on
> ixgbe.
> > > >          """
> > > >          [arch, machine, env, toolchain] = self.target.split('-')
> > > > +        self.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/"
> > > > +                          + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/'
> > > > config/common_base", "# ", 30)
> > > >          if dts.rx_mode is None:
> > > >              mode = 'default'
> > > >          else:
> > > > --
> > > > 1.9.3
> > > >



More information about the dts mailing list