forked from kevintraynor/dpdk-stable-queue-1811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/compress-perf: add weak functions for multicore test
This patch adds template functions for multi-cores performance version of compress-perf-tool Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com> Acked-by: Artur Trybula <arturx.trybula@intel.com> Acked-by: Shally Verma <shallyv@marvell.com>
- Loading branch information
1 parent
316095e
commit 424dd6c
Showing
8 changed files
with
646 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* SPDX-License-Identifier: BSD-3-Clause | ||
* Copyright(c) 2019 Intel Corporation | ||
*/ | ||
|
||
#ifndef _COMP_PERF_ | ||
#define _COMP_PERF_ | ||
|
||
#include <rte_mempool.h> | ||
|
||
struct comp_test_data; | ||
|
||
typedef void *(*cperf_constructor_t)( | ||
uint8_t dev_id, | ||
uint16_t qp_id, | ||
struct comp_test_data *options); | ||
|
||
typedef int (*cperf_runner_t)(void *test_ctx); | ||
typedef void (*cperf_destructor_t)(void *test_ctx); | ||
|
||
struct cperf_test { | ||
cperf_constructor_t constructor; | ||
cperf_runner_t runner; | ||
cperf_destructor_t destructor; | ||
}; | ||
|
||
/* Needed for weak functions*/ | ||
|
||
void * | ||
cperf_benchmark_test_constructor(uint8_t dev_id __rte_unused, | ||
uint16_t qp_id __rte_unused, | ||
struct comp_test_data *options __rte_unused); | ||
|
||
void | ||
cperf_benchmark_test_destructor(void *arg __rte_unused); | ||
|
||
int | ||
cperf_benchmark_test_runner(void *test_ctx __rte_unused); | ||
|
||
void * | ||
cperf_verify_test_constructor(uint8_t dev_id __rte_unused, | ||
uint16_t qp_id __rte_unused, | ||
struct comp_test_data *options __rte_unused); | ||
|
||
void | ||
cperf_verify_test_destructor(void *arg __rte_unused); | ||
|
||
int | ||
cperf_verify_test_runner(void *test_ctx __rte_unused); | ||
|
||
#endif /* _COMP_PERF_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.