From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 21565A0350;
	Thu, 25 Jun 2020 00:22:19 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id AC86329CB;
	Thu, 25 Jun 2020 00:22:17 +0200 (CEST)
Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com
 [66.111.4.221]) by dpdk.org (Postfix) with ESMTP id 8F748CF3;
 Thu, 25 Jun 2020 00:22:15 +0200 (CEST)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailnew.nyi.internal (Postfix) with ESMTP id CCC4C580138;
 Wed, 24 Jun 2020 18:22:14 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute7.internal (MEProxy); Wed, 24 Jun 2020 18:22:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=fm1; bh=
 IMAhJveVKqy350A1JdNt6YBO86ersIuPcNx5qneAGJQ=; b=qqf/zS+66FDmc8hi
 AIbNERskwttz/X5QENJ2vkncVhitge3/T0efPv4Wg/UCM2cM0Fx1m0yj7c3xXmZI
 ex1n+nB6LpUrbiuaaapELrTM3CwtCu9nB+8WFYRNCw6iS7J8H4lG5clEXKN3/fsZ
 yRH9gVBkS4rqpESmJhOcb753iw2IMmxCTicEIr/4TmbWfnRlwwWo53qJbFr8tWQ6
 q0tLf/NnIjXXYOQMBiZ7new7jm+GknLeXuNSh3KiiXHeX3mxZEPYNY/VFi4zPbYs
 FNUT30Ih2DDb+x1h7U7fXlxKn3P/M0INA8YuVcYeI1nIpwJ4P4qm7qorhV6zivY7
 DUQXgQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; bh=IMAhJveVKqy350A1JdNt6YBO86ersIuPcNx5qneAG
 JQ=; b=Gz/JXEw070c14vwBmuCREZT+7Iskp4BU/Ug9E3vTaM9y5z9vuOvqpZDTZ
 JYf/on8yTk0E8dz7trQFcQHAN4p3QPA6mu0biBdmQsStnIrUE/vkL1UdY7wXm/Kk
 XK0AqRUplzq1+P+tVwEQkyndtzIXrm4aUCJupY+6ZKuRboqeJQNTSYqqgBKqXOM7
 mk1Kj8+0jA3gmEBpRYOYh7AAcVVP5jkwA+BM20N7s3IlEdpYTUMIkx7y/X+PZZ92
 91wLMqli7rCjuTaDyqzY1AgN+5mBB21A4WMm3yuhvWIk/ZqIUgDIfk8lCj8oPD2R
 UR2LMbwpSt68E3lgI5NkYv81xtZEg==
X-ME-Sender: <xms:FdLzXl8raF6sqj5yz3DBcw2pEDllCo0zoEcBiqXOTc_mudGuDaR3rw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudekkedgtdekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu
 ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf
 hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl
 ohhnrdhnvght
X-ME-Proxy: <xmx:FdLzXpvt227JbpMiH3kWNOPfTYrcMBpicj33vijgWfTkorJ-AwbmIw>
 <xmx:FdLzXjDFYTe6WQrVu6vJIg0rT7R6Q6jlzJhdezGeSA0qcL8yru--pg>
 <xmx:FdLzXpeB7Rg8z8yGQS0pApAhg7SD1jr3QUo-FrGIrOZwmj6W5Hmoxg>
 <xmx:FtLzXvx6h-Kb-Ydl0hTWRw2phIf9lBVxadq82Y8-MO6I1_znwTMFXw>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id 02CEE3280060;
 Wed, 24 Jun 2020 18:22:10 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Georgiy Levashov <georgiy.levashov@oktetlabs.ru>
Cc: Nicolas Chautru <nicolas.chautru@intel.com>,
 Bruce Richardson <bruce.richardson@intel.com>,
 Ferruh Yigit <ferruh.yigit@intel.com>,
 Declan Doherty <declan.doherty@intel.com>,
 Marko Kovacevic <marko.kovacevic@intel.com>, Ori Kam <orika@mellanox.com>,
 Radu Nicolau <radu.nicolau@intel.com>, Akhil Goyal <akhil.goyal@nxp.com>,
 Tomasz Kantecki <tomasz.kantecki@intel.com>,
 Sunil Kumar Kori <skori@marvell.com>,
 Pavan Nikhilesh <pbhagavatula@marvell.com>,
 John McNamara <john.mcnamara@intel.com>,
 Kirill Rybalchenko <kirill.rybalchenko@intel.com>,
 Harry van Haaren <harry.van.haaren@intel.com>,
 Xiaoyun Li <xiaoyun.li@intel.com>,
 Maxime Coquelin <maxime.coquelin@redhat.com>,
 Zhihong Wang <zhihong.wang@intel.com>, dev@dpdk.org, stable@dpdk.org,
 Andrew Rybchenko <arybchenko@solarflare.com>
Date: Thu, 25 Jun 2020 00:22:09 +0200
Message-ID: <6332827.LBNadDuDc9@thomas>
In-Reply-To: <1588080462-32393-1-git-send-email-arybchenko@solarflare.com>
References: <1588080462-32393-1-git-send-email-arybchenko@solarflare.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] [PATCH] examples: add flush after stats printing
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

28/04/2020 15:27, Andrew Rybchenko:
> From: Georgiy Levashov <georgiy.levashov@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@dpdk.org
> 
> Signed-off-by: Georgiy Levashov <georgiy.levashov@oktetlabs.ru>
> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>

Applied, thanks