1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #include <rte_malloc.h>
8 #include <rte_compressdev.h>
10 #include "comp_perf_options.h"
13 main(int argc, char **argv)
16 struct comp_test_data *test_data;
18 /* Initialise DPDK EAL */
19 ret = rte_eal_init(argc, argv);
21 rte_exit(EXIT_FAILURE, "Invalid EAL arguments!\n");
25 test_data = rte_zmalloc_socket(NULL, sizeof(struct comp_test_data),
28 if (test_data == NULL)
29 rte_exit(EXIT_FAILURE, "Cannot reserve memory in socket %d\n",
32 comp_perf_options_default(test_data);
34 if (comp_perf_options_parse(test_data, argc, argv) < 0) {
36 "Parsing one or more user options failed\n");
41 if (comp_perf_options_check(test_data) < 0) {