| 116 | #define VOID_FP app_dpdk_test_fp() |
| 117 | |
| 118 | WORKER_DEFINE(GENERIC_VOID) |
| 119 | WORKER_DEFINE(GENERIC_U64) |
| 120 | WORKER_DEFINE(GENERIC_INT) |
| 121 | WORKER_DEFINE(GENERIC_FLOAT) |
| 122 | WORKER_DEFINE(GENERIC_DOUBLE) |
| 123 | WORKER_DEFINE(GENERIC_STR) |
| 124 | WORKER_DEFINE(VOID_FP) |
| 125 | |
| 126 | static void |
| 127 | run_test(const char *str, lcore_function_t f, struct test_data *data, size_t sz) |
| 128 | { |
| 129 | unsigned int id, worker = 0; |
| 130 | |
| 131 | memset(data, 0, sz); |
| 132 | data->nb_workers = rte_lcore_count() - 1; |
| 133 | RTE_LCORE_FOREACH_WORKER(id) |
| 134 | rte_eal_remote_launch(f, &data->ldata[worker++], id); |
| 135 | |
| 136 | wait_till_workers_are_ready(data); |
| 137 | rte_delay_ms(100); /* Wait for some time to accumulate the stats */ |
| 138 | signal_workers_to_finish(data); |
| 139 | |
| 140 | RTE_LCORE_FOREACH_WORKER(id) |
| 141 | rte_eal_wait_lcore(id); |
| 142 | |
| 143 | measure_perf(str, data); |
| 144 | } |
| 145 | |
| 146 | static int |
| 147 | test_trace_perf(void) |
nothing calls this directly
no test coverage detected