Lines Matching refs:tp
181 parse_args(int argc, char **argv, struct test_params *tp) in parse_args() argument
203 tp->iter_max = DEFAULT_ITER; in parse_args()
211 tp->num_ops = strtol(optarg, NULL, 10); in parse_args()
216 tp->burst_sz = strtol(optarg, NULL, 10); in parse_args()
217 TEST_ASSERT(tp->burst_sz <= MAX_BURST, in parse_args()
237 tp->test_to_run[num_tests] = t; in parse_args()
239 TEST_ASSERT(tp->test_to_run[num_tests] != NULL, in parse_args()
253 snprintf(tp->test_vector_filename, in parse_args()
254 sizeof(tp->test_vector_filename), in parse_args()
260 tp->snr = strtod(optarg, NULL); in parse_args()
265 tp->iter_max = strtol(optarg, NULL, 10); in parse_args()
270 tp->num_lcores = strtol(optarg, NULL, 10); in parse_args()
271 TEST_ASSERT(tp->num_lcores <= RTE_MAX_LCORE, in parse_args()
277 tp->init_device = true; in parse_args()
287 if (tp->num_ops == 0) { in parse_args()
291 tp->num_ops = DEFAULT_OPS; in parse_args()
293 if (tp->burst_sz == 0) { in parse_args()
297 tp->burst_sz = DEFAULT_BURST; in parse_args()
299 if (tp->num_lcores == 0) { in parse_args()
303 tp->num_lcores = rte_lcore_count(); in parse_args()
306 TEST_ASSERT(tp->burst_sz <= tp->num_ops, in parse_args()
308 tp->burst_sz, tp->num_ops); in parse_args()
310 tp->num_tests = num_tests; in parse_args()
327 run_parsed_tests(struct test_params *tp) in run_parsed_tests() argument
332 for (i = 0; i < tp->num_tests; ++i) in run_parsed_tests()
333 ret |= (int) tp->test_to_run[i]->callback(); in run_parsed_tests()