From patchwork Wed May 29 06:20:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anoob Joseph X-Patchwork-Id: 53797 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E58613576; Wed, 29 May 2019 08:22:30 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id ADEE32E8F for ; Wed, 29 May 2019 08:22:28 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4T6K8Jh000838; Tue, 28 May 2019 23:22:27 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0818; bh=d8aavMeWGpq0FYu2jrmQZzhcM9WFj43Cls+UF5TnvGE=; b=S3hCJxsDvBvf69J9lIuOXv8p7Oi7qt5i3bUkAsbTonQKDGgd8+8NwOcRugIBKF/vViRm 496kHD55lGwtclw9m1IzvaTfnZT6M2ysM62e8pgiqTrP1aFcixZmCAB04UlzhAChJK55 x+SesIArtVQ5gKj18Wx8CVFjLnEMMGeIv+vaIG02sYRdZo2t5dhbjo/Ty4NrjrCwgJxI 1XLu2nrUouiU5ogplk0Qsc8XTlPiyoOqEevkqmyXiZgKaHpRo1MI+O/yyRiCgORhoawP /7JX7rKMuAX/9faGlhVIhJyBC07i2uFuRsM/Tf+Az7h3S+J/FMkovrDURprAJQubx2Z4 cw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2sskp88727-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 28 May 2019 23:22:27 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 28 May 2019 23:22:26 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 28 May 2019 23:22:26 -0700 Received: from hyd1189.marvell.com (unknown [10.29.41.191]) by maili.marvell.com (Postfix) with ESMTP id 245BE3F703F; Tue, 28 May 2019 23:22:23 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal , Declan Doherty , Pablo de Lara CC: Ankur Dwivedi , Jerin Jacob , , Anoob Joseph Date: Wed, 29 May 2019 11:50:58 +0530 Message-ID: <1559110858-22286-1-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-29_03:, , signatures=0 Subject: [dpdk-dev] [PATCH] app/test-crypto-perf: fix csv format X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Ankur Dwivedi The format for printing float is incorrect for the following fields in pmd-cyclecount test: Cycles/Op,Cycles/Enq,Cycles/Deq. Currently, the format is %.f3. This format will round off the number to the nearest integer and append a 3 after that. This patch changes the format to %.3f. This will print the number as a floating point with a precision of 3 fractional digits. Fixes: 96dfeb609be1 ("app/crypto-perf: add new PMD benchmarking mode") Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph --- app/test-crypto-perf/cperf_test_pmd_cyclecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c index 92af5ec..f08a226 100644 --- a/app/test-crypto-perf/cperf_test_pmd_cyclecount.c +++ b/app/test-crypto-perf/cperf_test_pmd_cyclecount.c @@ -16,7 +16,7 @@ #define PRETTY_HDR_FMT "%12s%12s%12s%12s%12s%12s%12s%12s%12s%12s\n\n" #define PRETTY_LINE_FMT "%12u%12u%12u%12u%12u%12u%12u%12.0f%12.0f%12.0f\n" #define CSV_HDR_FMT "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s\n" -#define CSV_LINE_FMT "%10u;%10u;%u;%u;%u;%u;%u;%.f3;%.f3;%.f3\n" +#define CSV_LINE_FMT "%10u;%10u;%u;%u;%u;%u;%u;%.3f;%.3f;%.3f\n" struct cperf_pmd_cyclecount_ctx { uint8_t dev_id;