blob: 60953ce47d6d1e6a669162bd15f144787e1f8179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
|