1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
5 #ifndef _COMP_PERF_TEST_COMMON_H_
6 #define _COMP_PERF_TEST_COMMON_H_
10 #include <rte_mempool.h>
12 struct cperf_mem_resources {
17 rte_atomic16_t print_info_once;
20 uint8_t *compressed_data;
21 uint8_t *decompressed_data;
23 struct rte_mbuf **comp_bufs;
24 struct rte_mbuf **decomp_bufs;
26 struct rte_mempool *comp_buf_pool;
27 struct rte_mempool *decomp_buf_pool;
28 struct rte_mempool *op_pool;
32 param_range_check(uint16_t size, const struct rte_param_log2_range *range);
35 comp_perf_free_memory(struct cperf_mem_resources *mem);
38 comp_perf_allocate_memory(struct comp_test_data *test_data,
39 struct cperf_mem_resources *mem);
42 prepare_bufs(struct comp_test_data *test_data, struct cperf_mem_resources *mem);
45 print_test_dynamics(void);
47 #endif /* _COMP_PERF_TEST_COMMON_H_ */