1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Intel Corporation
8 #include <rte_mempool.h>
10 struct comp_test_data;
12 typedef void *(*cperf_constructor_t)(
15 struct comp_test_data *options);
17 typedef int (*cperf_runner_t)(void *test_ctx);
18 typedef void (*cperf_destructor_t)(void *test_ctx);
21 cperf_constructor_t constructor;
22 cperf_runner_t runner;
23 cperf_destructor_t destructor;
26 /* Needed for weak functions*/
29 cperf_throughput_test_constructor(uint8_t dev_id __rte_unused,
30 uint16_t qp_id __rte_unused,
31 struct comp_test_data *options __rte_unused);
34 cperf_throughput_test_destructor(void *arg __rte_unused);
37 cperf_throughput_test_runner(void *test_ctx __rte_unused);
40 cperf_verify_test_constructor(uint8_t dev_id __rte_unused,
41 uint16_t qp_id __rte_unused,
42 struct comp_test_data *options __rte_unused);
45 cperf_verify_test_destructor(void *arg __rte_unused);
48 cperf_verify_test_runner(void *test_ctx __rte_unused);
50 #endif /* _COMP_PERF_ */