From patchwork Tue Apr 11 11:25:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bogdan Pricope X-Patchwork-Id: 97243 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1761030qgd; Tue, 11 Apr 2017 04:26:25 -0700 (PDT) X-Received: by 10.107.144.138 with SMTP id s132mr7804700iod.22.1491909985279; Tue, 11 Apr 2017 04:26:25 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d130si1585867itc.108.2017.04.11.04.26.24; Tue, 11 Apr 2017 04:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C0A1363FC6; Tue, 11 Apr 2017 11:26:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A947063E79; Tue, 11 Apr 2017 11:26:22 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 3189F63E79; Tue, 11 Apr 2017 11:26:21 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by lists.linaro.org (Postfix) with ESMTPS id 02D7663FED for ; Tue, 11 Apr 2017 11:26:18 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id w64so60906678wma.0 for ; Tue, 11 Apr 2017 04:26:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P620sKr3GTaEicMzyaqf936DWg7onJHSkJuD8CSicOM=; b=rBzgCIS/zZ/4kGk2UOn315tD+Y35KBlY5x0wF/t6G07mCKZdwMsObq3MR1F4wy2UP+ bRVy0HHKpHbI3/anTfqXnP7Ktx28ifgfw9teFb8YyVWfss/6Sbk9SkE6oRByze17oHkK qJMB6gUoU0FB7rutY/bnBUBTjYrFbqhSdojMqK2hhYs7rjagFypbkxOwwSJJQPSXKg5W RD+668G24nwiP9/UpN8zd+jRhoho7WoGqKkGJNRiVMWKoYUyr/Q4678nZX2AzId1asue hZA0jLed1nfl9jLBU+4NhnW/Hh6YswSy9ceWtLTCESoCmhr9LLJeELeqiKxNZpNPYFjN A31g== X-Gm-Message-State: AN3rC/4BBOTP8Anosb1dFTjYyPZtshNHwdH6JiLsLgp62M/d2CNqmjAPGbUNpWbjF9dJIJaSTthLIWJW X-Received: by 10.28.13.66 with SMTP id 63mr6984797wmn.2.1491909977683; Tue, 11 Apr 2017 04:26:17 -0700 (PDT) Received: from netbricks-team.enea.se ([193.202.22.66]) by smtp.gmail.com with ESMTPSA id b82sm2125210wmh.4.2017.04.11.04.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Apr 2017 04:26:17 -0700 (PDT) From: Bogdan Pricope To: lng-odp@lists.linaro.org Date: Tue, 11 Apr 2017 14:25:56 +0300 Message-Id: <1491909956-23283-3-git-send-email-bogdan.pricope@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491909956-23283-1-git-send-email-bogdan.pricope@linaro.org> References: <1491909956-23283-1-git-send-email-bogdan.pricope@linaro.org> Subject: [lng-odp] [PATCH 2/2] example: generator: flush output messages X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Bogdan Pricope --- example/generator/odp_generator.c | 3 +++ 1 file changed, 3 insertions(+) -- 1.9.1 diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 63e3f2b..ede1cdf 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -464,6 +464,7 @@ static int create_pktio(const char *dev, odp_pool_t pool, " default pktio%02" PRIu64 "\n", odp_pktio_to_u64(itf->pktio), dev, odp_pktio_to_u64(itf->pktio)); + fflush(NULL); return 0; } @@ -773,6 +774,7 @@ static void print_global_stats(int num_workers) pkts_snd, odp_atomic_load_u64(&counters.tx_drops), pps_snd, maximum_pps_snd, pkts_rcv, pps_rcv, maximum_pps_rcv); + fflush(NULL); } } @@ -855,6 +857,7 @@ int main(int argc, char *argv[]) printf("num worker threads: %i\n", num_workers); printf("first CPU: %i\n", odp_cpumask_first(&cpumask)); printf("cpu mask: %s\n", cpumaskstr); + fflush(NULL); /* ping mode need two workers */ if (args->appl.mode == APPL_MODE_PING) {