diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/spdk/dpdk/app/test/test_ring_stress.h | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/dpdk/app/test/test_ring_stress.h')
-rw-r--r-- | src/spdk/dpdk/app/test/test_ring_stress.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/spdk/dpdk/app/test/test_ring_stress.h b/src/spdk/dpdk/app/test/test_ring_stress.h new file mode 100644 index 000000000..60953ce47 --- /dev/null +++ b/src/spdk/dpdk/app/test/test_ring_stress.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2020 Intel Corporation + */ + + +#include <inttypes.h> +#include <stddef.h> +#include <stdalign.h> +#include <string.h> +#include <stdio.h> +#include <unistd.h> + +#include <rte_ring.h> +#include <rte_cycles.h> +#include <rte_launch.h> +#include <rte_pause.h> +#include <rte_random.h> +#include <rte_malloc.h> +#include <rte_spinlock.h> + +#include "test.h" + +struct test_case { + const char *name; + int (*func)(int (*)(void *)); + int (*wfunc)(void *arg); +}; + +struct test { + const char *name; + uint32_t nb_case; + const struct test_case *cases; +}; + +extern const struct test test_ring_mpmc_stress; +extern const struct test test_ring_rts_stress; +extern const struct test test_ring_hts_stress; +extern const struct test test_ring_peek_stress; |