1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #ifndef _COMP_PERF_OPS_
6 #define _COMP_PERF_OPS_
8 #define MAX_DRIVER_NAME 64
9 #define MAX_INPUT_FILE_NAME 64
23 uint8_t list[MAX_LIST];
26 struct comp_test_data {
29 struct rte_mbuf **comp_bufs;
30 struct rte_mbuf **decomp_bufs;
34 uint8_t *compressed_data;
35 uint8_t *decompressed_data;
36 struct rte_mempool *comp_buf_pool;
37 struct rte_mempool *decomp_buf_pool;
38 struct rte_mempool *op_pool;
44 uint16_t max_sgl_segs;
45 enum rte_comp_huffman huffman_enc;
46 enum comp_operation test_op;
48 struct range_list level;
49 /* Store TSC duration for all levels (including level 0) */
50 uint64_t comp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
51 uint64_t decomp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
53 size_t decomp_data_sz;
58 double decomp_tsc_byte;
62 comp_perf_options_parse(struct comp_test_data *test_data, int argc,
66 comp_perf_options_default(struct comp_test_data *test_data);
69 comp_perf_options_check(struct comp_test_data *test_data);