]> git.droids-corp.org - dpdk.git/commitdiff
app/crypto-perf: fix CSV output format
authorCiara Power <ciara.power@intel.com>
Wed, 20 Jan 2021 17:29:29 +0000 (17:29 +0000)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 27 Jan 2021 18:03:52 +0000 (19:03 +0100)
The csv output for each ptest type used ";" instead of ",".
This has now been fixed to use the comma format that is used in the csv
headers.

Fixes: f6cefe253cc8 ("app/crypto-perf: add range/list of sizes")
Fixes: 96dfeb609be1 ("app/crypto-perf: add new PMD benchmarking mode")
Fixes: da40ebd6d383 ("app/crypto-perf: display results in test runner")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Adam Dybkowski <adamx.dybkowski@intel.com>
app/test-crypto-perf/cperf_test_latency.c
app/test-crypto-perf/cperf_test_pmd_cyclecount.c
app/test-crypto-perf/cperf_test_throughput.c
app/test-crypto-perf/cperf_test_verify.c

index c2590a4dcfbfe2d16308e041537af23cb7bd1e97..159fe8492bcea31c35557b0ead90f4620e7d0958 100644 (file)
@@ -314,7 +314,7 @@ cperf_latency_test_runner(void *arg)
 
                        for (i = 0; i < ctx->options->total_ops; i++) {
 
-                               printf("\n%u;%u;%u;%"PRIu64";%"PRIu64";%.3f",
+                               printf("\n%u,%u,%u,%"PRIu64",%"PRIu64",%.3f",
                                        ctx->lcore_id, ctx->options->test_buffer_size,
                                        test_burst_size, i + 1,
                                        ctx->res[i].tsc_end - ctx->res[i].tsc_start,
index 4e67d3aebdc8f7c18b968b6adfc495ed52b35fdb..844659aecac050090d81e8b02bb7049799d85055 100644 (file)
@@ -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;%.3f;%.3f;%.3f\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;
index f30f7d5c2cee83bca2a9b674de90d9af4016cba2..f6eb8cf2590edefc80c20ca0d66933ab003bfc62 100644 (file)
@@ -299,8 +299,8 @@ cperf_throughput_test_runner(void *test_ctx)
                                        "Failed Deq,Ops(Millions),Throughput(Gbps),"
                                        "Cycles/Buf\n\n");
 
-                       printf("%u;%u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";"
-                                       "%.3f;%.3f;%.3f\n",
+                       printf("%u,%u,%u,%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64","
+                                       "%.3f,%.3f,%.3f\n",
                                        ctx->lcore_id,
                                        ctx->options->test_buffer_size,
                                        test_burst_size,
index 833bc9a552fbcd8a28634c49d1a98ccbe2d529b4..2939aeaa9306d1750df95c2f3bb026d7e016ffca 100644 (file)
@@ -406,7 +406,7 @@ cperf_verify_test_runner(void *test_ctx)
                                "Burst Size,Enqueued,Dequeued,Failed Enq,"
                                "Failed Deq,Failed Ops\n");
 
-               printf("%10u;%10u;%u;%"PRIu64";%"PRIu64";%"PRIu64";%"PRIu64";"
+               printf("%10u,%10u,%u,%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64","
                                "%"PRIu64"\n",
                                ctx->lcore_id,
                                ctx->options->max_buffer_size,