[dpdk-dev] [PATCH v5 2/2] app/pdump: enhance to support multi-core capture
Varghese, Vipin
vipin.varghese at intel.com
Mon Apr 8 05:03:34 CEST 2019
Hi Reshma,
snipped
> > >
> > > > + fflush(stdout);
> > >
> > > Why is fflush used here and in below other places?
> > To ensure the stdout content is flushed out. We had used similar approach to '
> > examples/l2fwd/main.c'
> >
>
> Can you elaborate more? What problem do you see if you don't use this?
Sure, when running on multi cores (Xeon, corei7 and denverton alike) depending upon the isolate parameters and other application, printf from lcores either comes as partial or misaligned. Making use 'fflush' ensured in both apps and examples to be flushed out.
>
> Thanks,
> Reshma
More information about the dev
mailing list