numam-dpdk/examples/vhost
Georgiy Levashov 3ee6f70651 examples: add flush after stats printing
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: af75078fec ("first public release")
Cc: stable@dpdk.org

Signed-off-by: Georgiy Levashov <georgiy.levashov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
2020-06-25 00:20:01 +02:00
..
main.c examples: add flush after stats printing 2020-06-25 00:20:01 +02:00
main.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
Makefile examples: hide error for missing pkg-config path flag 2019-11-20 22:48:32 +01:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
virtio_net.c examples/vhost: fix header copy to discontiguous desc buffer 2018-05-14 22:31:03 +01:00