Skip to content

Commit

Permalink
app/crypto-perf: fix CSV output format
Browse files Browse the repository at this point in the history
[ upstream commit c6ddab8 ]

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: f6cefe2 ("app/crypto-perf: add range/list of sizes")
Fixes: 96dfeb6 ("app/crypto-perf: add new PMD benchmarking mode")
Fixes: da40ebd ("app/crypto-perf: display results in test runner")

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>
  • Loading branch information
ciarapow authored and cpaelzer committed Feb 3, 2021
1 parent a69da37 commit b23e86e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/test-crypto-perf/cperf_test_latency.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,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,
Expand Down
2 changes: 1 addition & 1 deletion app/test-crypto-perf/cperf_test_pmd_cyclecount.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions app/test-crypto-perf/cperf_test_throughput.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,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,
Expand Down
2 changes: 1 addition & 1 deletion app/test-crypto-perf/cperf_test_verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b23e86e

Please sign in to comment.