| /dpdk/app/test-eventdev/ |
| H A D | evt_main.c | 18 struct evt_test *test; variable 24 if (test != NULL) { in signal_handler() 26 *(int *)test->test_priv = true; in signal_handler() 33 evt_options_dump_all(struct evt_test *test, struct evt_options *opts) in evt_options_dump_all() argument 36 if (test->ops.opt_dump) in evt_options_dump_all() 37 test->ops.opt_dump(opts); in evt_options_dump_all() 70 test = evt_test_get(opt.test_name); in main() 71 if (test == NULL) { in main() 76 if (test->ops.test_result == NULL) { in main() 86 if (test->ops.opt_check) { in main() [all …]
|
| H A D | evt_test.h | 27 (struct evt_test *test, struct evt_options *opt); 29 (struct evt_test *test, struct evt_options *opt); 31 (struct evt_test *test, struct evt_options *opt); 33 (struct evt_test *test, struct evt_options *opt); 35 (struct evt_test *test, struct evt_options *opt); 37 (struct evt_test *test, struct evt_options *opt); 39 (struct evt_test *test, struct evt_options *opt); 41 (struct evt_test *test, struct evt_options *opt); 43 (struct evt_test *test, struct evt_options *opt); 45 (struct evt_test *test, struct evt_options *opt); [all …]
|
| H A D | test_order_common.c | 10 order_test_result(struct evt_test *test, struct evt_options *opt) in order_test_result() argument 13 struct test_order *t = evt_test_priv(test); in order_test_result() 137 order_test_setup(struct evt_test *test, struct evt_options *opt) in order_test_setup() argument 152 test_order = rte_zmalloc_socket(test->name, sizeof(struct test_order), in order_test_setup() 158 test->test_priv = test_order; in order_test_setup() 159 t = evt_test_priv(test); in order_test_setup() 203 rte_free(test->test_priv); in order_test_setup() 209 order_test_destroy(struct evt_test *test, struct evt_options *opt) in order_test_destroy() argument 212 struct test_order *t = evt_test_priv(test); in order_test_destroy() 216 rte_free(test->test_priv); in order_test_destroy() [all …]
|
| H A D | test_order_common.h | 140 int order_test_result(struct evt_test *test, struct evt_options *opt); 142 int order_test_setup(struct evt_test *test, struct evt_options *opt); 143 int order_mempool_setup(struct evt_test *test, struct evt_options *opt); 144 int order_launch_lcores(struct evt_test *test, struct evt_options *opt, 146 int order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt, 148 void order_test_destroy(struct evt_test *test, struct evt_options *opt); 150 void order_mempool_destroy(struct evt_test *test, struct evt_options *opt); 151 void order_eventdev_destroy(struct evt_test *test, struct evt_options *opt);
|
| H A D | test_pipeline_common.h | 194 int pipeline_test_result(struct evt_test *test, struct evt_options *opt); 196 int pipeline_test_setup(struct evt_test *test, struct evt_options *opt); 197 int pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt); 202 int pipeline_mempool_setup(struct evt_test *test, struct evt_options *opt); 203 int pipeline_event_port_setup(struct evt_test *test, struct evt_options *opt, 206 int pipeline_launch_lcores(struct evt_test *test, struct evt_options *opt, 209 void pipeline_test_destroy(struct evt_test *test, struct evt_options *opt); 210 void pipeline_eventdev_destroy(struct evt_test *test, struct evt_options *opt); 211 void pipeline_ethdev_destroy(struct evt_test *test, struct evt_options *opt); 212 void pipeline_ethdev_rx_stop(struct evt_test *test, struct evt_options *opt); [all …]
|
| H A D | evt_test.c | 28 if (!strncmp(entry->test.name, name, strlen(name))) in evt_test_get() 29 return &entry->test; in evt_test_get() 40 if (entry->test.name) in evt_test_dump_names() 41 printf("\t %s\n", entry->test.name); in evt_test_dump_names()
|
| /dpdk/app/test-mldev/ |
| H A D | ml_main.c | 13 struct ml_test *test; variable 44 test = ml_test_get(opt.test_name); in main() 45 if (test == NULL) { in main() 50 if (test->ops.test_result == NULL) { in main() 56 if (test->ops.opt_check) { in main() 57 if (test->ops.opt_check(&opt)) { in main() 64 if (test->ops.cap_check) { in main() 65 if (test->ops.cap_check(&opt) == false) { in main() 74 if (test->ops.opt_dump) in main() 75 test->ops.opt_dump(&opt); in main() [all …]
|
| H A D | test_model_ops.c | 68 test_model_ops_setup(struct ml_test *test, struct ml_options *opt) in test_model_ops_setup() argument 76 test_model_ops = rte_zmalloc_socket(test->name, sizeof(struct test_model_ops), in test_model_ops_setup() 83 test->test_priv = test_model_ops; in test_model_ops_setup() 84 t = ml_test_priv(test); in test_model_ops_setup() 109 test_model_ops_destroy(struct ml_test *test, struct ml_options *opt) in test_model_ops_destroy() argument 115 t = ml_test_priv(test); in test_model_ops_destroy() 120 test_model_ops_mldev_setup(struct ml_test *test, struct ml_options *opt) in test_model_ops_mldev_setup() argument 124 ret = ml_test_device_configure(test, opt); in test_model_ops_mldev_setup() 128 ret = ml_test_device_start(test, opt); in test_model_ops_mldev_setup() 135 ml_test_device_close(test, opt); in test_model_ops_mldev_setup() [all …]
|
| H A D | test_inference_ordered.c | 13 test_inference_ordered_driver(struct ml_test *test, struct ml_options *opt) in test_inference_ordered_driver() argument 19 t = ml_test_priv(test); in test_inference_ordered_driver() 21 ret = ml_inference_mldev_setup(test, opt); in test_inference_ordered_driver() 25 ret = ml_inference_mem_setup(test, opt); in test_inference_ordered_driver() 31 ret = ml_model_load(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 36 ret = ml_model_start(test, opt, &t->model[fid], fid); in test_inference_ordered_driver() 40 ret = ml_inference_iomem_setup(test, opt, fid); in test_inference_ordered_driver() 45 ret = ml_inference_launch_cores(test, opt, fid, fid); in test_inference_ordered_driver() 53 ret = ml_inference_result(test, opt, fid); in test_inference_ordered_driver() 57 ml_inference_iomem_destroy(test, opt, fid); in test_inference_ordered_driver() [all …]
|
| H A D | test_inference_interleave.c | 13 test_inference_interleave_driver(struct ml_test *test, struct ml_options *opt) in test_inference_interleave_driver() argument 19 t = ml_test_priv(test); in test_inference_interleave_driver() 21 ret = ml_inference_mldev_setup(test, opt); in test_inference_interleave_driver() 25 ret = ml_inference_mem_setup(test, opt); in test_inference_interleave_driver() 31 ret = ml_model_load(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 35 ret = ml_model_start(test, opt, &t->model[fid], fid); in test_inference_interleave_driver() 39 ret = ml_inference_iomem_setup(test, opt, fid); in test_inference_interleave_driver() 45 ret = ml_inference_launch_cores(test, opt, 0, opt->nb_filelist - 1); in test_inference_interleave_driver() 55 ret = ml_inference_result(test, opt, fid); in test_inference_interleave_driver() 59 ml_inference_iomem_destroy(test, opt, fid); in test_inference_interleave_driver() [all …]
|
| H A D | test_device_ops.c | 43 test_device_setup(struct ml_test *test, struct ml_options *opt) in test_device_setup() argument 50 test_device = rte_zmalloc_socket(test->name, sizeof(struct test_device), in test_device_setup() 57 test->test_priv = test_device; in test_device_setup() 58 t = ml_test_priv(test); in test_device_setup() 79 test_device_destroy(struct ml_test *test, struct ml_options *opt) in test_device_destroy() argument 85 t = ml_test_priv(test); in test_device_destroy() 90 test_device_reconfigure(struct ml_test *test, struct ml_options *opt) in test_device_reconfigure() argument 98 t = ml_test_priv(test); in test_device_reconfigure() 101 ret = ml_test_device_configure(test, opt); in test_device_reconfigure() 119 ret = ml_test_device_start(test, opt); in test_device_reconfigure() [all …]
|
| H A D | ml_test.h | 30 typedef int (*ml_test_setup_t)(struct ml_test *test, struct ml_options *opt); 31 typedef void (*ml_test_destroy_t)(struct ml_test *test, struct ml_options *opt); 32 typedef int (*ml_test_driver_t)(struct ml_test *test, struct ml_options *opt); 33 typedef int (*ml_test_result_t)(struct ml_test *test, struct ml_options *opt); 52 struct ml_test test; member 58 ml_test_priv(struct ml_test *test) in ml_test_priv() argument 60 return test->test_priv; in ml_test_priv() 64 void ml_test_register(struct ml_test_entry *test); 71 _ml_test_entry_##nm.test.name = RTE_STR(nm); \ 72 memcpy(&_ml_test_entry_##nm.test.ops, &nm, sizeof(struct ml_test_ops)); \
|
| H A D | test_inference_common.h | 67 int test_inference_setup(struct ml_test *test, struct ml_options *opt); 68 void test_inference_destroy(struct ml_test *test, struct ml_options *opt); 70 int ml_inference_mldev_setup(struct ml_test *test, struct ml_options *opt); 71 int ml_inference_mldev_destroy(struct ml_test *test, struct ml_options *opt); 72 int ml_inference_iomem_setup(struct ml_test *test, struct ml_options *opt, uint16_t fid); 73 void ml_inference_iomem_destroy(struct ml_test *test, struct ml_options *opt, uint16_t fid); 74 int ml_inference_mem_setup(struct ml_test *test, struct ml_options *opt); 75 void ml_inference_mem_destroy(struct ml_test *test, struct ml_options *opt); 76 int ml_inference_result(struct ml_test *test, struct ml_options *opt, uint16_t fid); 77 int ml_inference_launch_cores(struct ml_test *test, struct ml_options *opt, uint16_t start_fid,
|
| H A D | ml_test.c | 24 if (!strncmp(entry->test.name, name, strlen(name))) in ml_test_get() 25 return &entry->test; in ml_test_get() 37 if (entry->test.name) in ml_test_dump_names() 38 printf("\t %s\n", entry->test.name); in ml_test_dump_names() 39 f(entry->test.name); in ml_test_dump_names()
|
| H A D | test_model_common.c | 15 ml_model_load(struct ml_test *test, struct ml_options *opt, struct ml_model *model, uint16_t fid) in ml_model_load() argument 20 RTE_SET_USED(test); in ml_model_load() 59 ml_model_unload(struct ml_test *test, struct ml_options *opt, struct ml_model *model, uint16_t fid) in ml_model_unload() argument 61 struct test_common *t = ml_test_priv(test); in ml_model_unload() 86 ml_model_start(struct ml_test *test, struct ml_options *opt, struct ml_model *model, uint16_t fid) in ml_model_start() argument 88 struct test_common *t = ml_test_priv(test); in ml_model_start() 113 ml_model_stop(struct ml_test *test, struct ml_options *opt, struct ml_model *model, uint16_t fid) in ml_model_stop() argument 115 struct test_common *t = ml_test_priv(test); in ml_model_stop()
|
| H A D | test_common.c | 130 ml_test_device_configure(struct ml_test *test, struct ml_options *opt) in ml_test_device_configure() argument 132 struct test_common *t = ml_test_priv(test); in ml_test_device_configure() 156 ml_test_device_close(struct ml_test *test, struct ml_options *opt) in ml_test_device_close() argument 158 struct test_common *t = ml_test_priv(test); in ml_test_device_close() 172 ml_test_device_start(struct ml_test *test, struct ml_options *opt) in ml_test_device_start() argument 174 struct test_common *t = ml_test_priv(test); in ml_test_device_start() 190 ml_test_device_stop(struct ml_test *test, struct ml_options *opt) in ml_test_device_stop() argument 192 struct test_common *t = ml_test_priv(test); in ml_test_device_stop()
|
| H A D | test_common.h | 25 int ml_test_device_configure(struct ml_test *test, struct ml_options *opt); 26 int ml_test_device_close(struct ml_test *test, struct ml_options *opt); 27 int ml_test_device_start(struct ml_test *test, struct ml_options *opt); 28 int ml_test_device_stop(struct ml_test *test, struct ml_options *opt);
|
| /dpdk/doc/guides/contributing/ |
| H A D | unit_test.rst | 8 tests to the in-tree DPDK test suites. 10 The DPDK test suite model is loosely based on the xUnit model, 11 where tests are grouped into test suites, and suites are run by runners. 21 The primary tools are the `dpdk-test` application, 22 and the ``meson test`` infrastructure. 26 There exists a bit of confusion with the test suite and test case separation 27 with respect to `dpdk-test` and ``meson test``. 28 Both have a concept of test suite and test case. 30 A test suite is a group of test cases, 31 and a test case represents the steps needed to test a particular set of code. [all …]
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | meson_ut.rst | 7 This section describes how to run test cases with the DPDK meson build system. 12 Grouping of test cases 23 These tests can be run using the argument to ``meson test`` as 28 $ meson test -C <build path> --suite DPDK:fast-tests 33 $ meson test --suite DPDK:fast-tests 38 $ meson test --suite fast-tests 40 If desired, additional arguments can be passed to the test run via the meson 41 ``--test-args`` option. 43 for the test, starting with the lowest number core - generally core 0. 46 $ meson test --suite fast-tests --test-args="-l 8-16" [all …]
|
| /dpdk/app/test/ |
| H A D | test_ring_stress.h | 29 struct test { struct 35 extern const struct test test_ring_mpmc_stress; argument 36 extern const struct test test_ring_rts_stress; 37 extern const struct test test_ring_hts_stress; 38 extern const struct test test_ring_mt_peek_stress; 39 extern const struct test test_ring_mt_peek_stress_zc; 40 extern const struct test test_ring_st_peek_stress; 41 extern const struct test test_ring_st_peek_stress_zc;
|
| H A D | test_per_lcore.c | 35 static RTE_DEFINE_PER_LCORE(unsigned, test) = 0x12345678; 40 if (RTE_PER_LCORE(test) != 0x12345678) in assign_vars() 42 RTE_PER_LCORE(test) = rte_lcore_id(); in assign_vars() 50 unsigned var = RTE_PER_LCORE(test); in display_vars() 57 RTE_PER_LCORE(test) = 0x12345678; in display_vars()
|
| /dpdk/doc/guides/tools/ |
| H A D | testmldev.rst | 4 dpdk-test-mldev Application 7 The ``dpdk-test-mldev`` tool is a Data Plane Development Kit (DPDK) application 9 This application has a generic framework to add new mldev based test cases 21 dpdk-test-mldev [EAL Options] -- [application options] 28 with the ``dpdk-test-mldev`` application. 47 The following are the command-line options supported by the test application. 49 ``--test <name>`` 50 Name of the test to execute. 68 Set the device ID of the ML device to be used for the test. 79 Maximum number of models supported by the test is ``8``. [all …]
|
| H A D | testbbdev.rst | 6 dpdk-test-bbdev Application 9 The ``dpdk-test-bbdev`` tool is a Data Plane Development Kit (DPDK) utility that 23 test-bbdev.py [-h] [-p TESTAPP_PATH] [-e EAL_PARAMS] [-t TIMEOUT] 39 Indicates the path to the bbdev test app. If not specified path is set based 40 on "../.." concatenated with "*/build/app/dpdk-test-bbdev*". 43 Specifies EAL arguments which are passed to the test app. For more details, 50 Defines test cases to run. If not specified all available tests are run. 54 ``./test-bbdev.py -c validation`` 55 Runs validation test suite 57 ``./test-bbdev.py -c latency throughput`` [all …]
|
| /dpdk/app/test-cmdline/ |
| H A D | cmdline_test.py | 15 def runTest(child, test): argument 16 child.send(test["Sequence"]) 17 if test["Result"] is None: 19 child.expect(test["Result"], 1) 65 for test in cmdline_test_data.tests: 66 testname = (test["Name"] + ":").ljust(30) 68 runTest(child, test)
|
| /dpdk/lib/eal/windows/include/ |
| H A D | fnmatch.h | 32 fnm_rangematch(const char *pattern, char test, int flags) in fnm_rangematch() argument 49 test = tolower((unsigned char)test); in fnm_rangematch() 71 if ((unsigned char)c <= (unsigned char)test && in fnm_rangematch() 72 (unsigned char)test <= (unsigned char)c2) in fnm_rangematch() 74 } else if (c == test) in fnm_rangematch() 100 char c, test; in fnmatch() local 146 while ((test = *string) != FNM_EOS) { in fnmatch() 150 if (test == '/' && flags & FNM_PATHNAME) in fnmatch()
|