git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test/metrics: fix second run
[dpdk.git]
/
app
/
test-compress-perf
/
main.c
diff --git
a/app/test-compress-perf/main.c
b/app/test-compress-perf/main.c
index
c2a45d1
..
7b9ee74
100644
(file)
--- a/
app/test-compress-perf/main.c
+++ b/
app/test-compress-perf/main.c
@@
-244,7
+244,8
@@
comp_perf_dump_input_data(struct comp_test_data *test_data)
if (test_data->input_data_sz == 0)
test_data->input_data_sz = actual_file_sz;
if (test_data->input_data_sz == 0)
test_data->input_data_sz = actual_file_sz;
- if (fseek(f, 0, SEEK_SET) != 0) {
+ if (test_data->input_data_sz <= 0 || actual_file_sz <= 0 ||
+ fseek(f, 0, SEEK_SET) != 0) {
RTE_LOG(ERR, USER1, "Size of input could not be calculated\n");
goto end;
}
RTE_LOG(ERR, USER1, "Size of input could not be calculated\n");
goto end;
}
@@
-533,6
+534,9
@@
main(int argc, char **argv)
else
level = test_data->level.list[0];
else
level = test_data->level.list[0];
+ printf("App uses socket: %u\n", rte_socket_id());
+ printf("Driver uses socket: %u\n",
+ rte_compressdev_socket_id(test_data->cdev_id));
printf("Burst size = %u\n", test_data->burst_sz);
printf("File size = %zu\n", test_data->input_data_sz);
printf("Burst size = %u\n", test_data->burst_sz);
printf("File size = %zu\n", test_data->input_data_sz);