[dpdk-stable] [dpdk-dev] [PATCH] examples: add flush after stats printing

Thomas Monjalon thomas at monjalon.net
Thu Jun 25 00:22:09 CEST 2020


28/04/2020 15:27, Andrew Rybchenko:
> From: Georgiy Levashov <georgiy.levashov at oktetlabs.ru>
> 
> When printf()'s stdout is line-buffered for terminal, it is fully
> buffered for pipes. So, stdout listener can only get the output
> when it is flushed (on program termination, when buffer is filled or
> manual flush).
> 
> stdout buffer might fill slowly since every stats report could be small.
> 
> Also when it is fully filled it might contain a part of the last stats
> report which makes it very inconvenient for any automation which reads
> and parses the output.
> 
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Georgiy Levashov <georgiy.levashov at oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>

Applied, thanks





More information about the stable mailing list