Lines Matching refs:s

110 test_empty_pop(struct rte_stack *s)  in test_empty_pop()  argument
119 rte_stack_pop(s, objs, bulk_sizes[0]); in test_empty_pop()
128 struct rte_stack *s; member
141 struct rte_stack *s; in bulk_push_pop() local
143 s = args->s; in bulk_push_pop()
152 rte_stack_push(s, objs, size); in bulk_push_pop()
153 rte_stack_pop(s, objs, size); in bulk_push_pop()
169 run_on_core_pair(struct lcore_pair *cores, struct rte_stack *s, in run_on_core_pair() argument
179 args[0].s = args[1].s = s; in run_on_core_pair()
199 run_on_n_cores(struct rte_stack *s, lcore_function_t fn, int n) in run_on_n_cores() argument
215 args[lcore_id].s = s; in run_on_n_cores()
226 args[lcore_id].s = s; in run_on_n_cores()
252 test_single_push_pop(struct rte_stack *s) in test_single_push_pop() argument
261 rte_stack_push(s, &obj, 1); in test_single_push_pop()
262 rte_stack_pop(s, &obj, 1); in test_single_push_pop()
273 test_bulk_push_pop(struct rte_stack *s) in test_bulk_push_pop() argument
283 rte_stack_push(s, objs, bulk_sizes[sz]); in test_bulk_push_pop()
284 rte_stack_pop(s, objs, bulk_sizes[sz]); in test_bulk_push_pop()
301 struct rte_stack *s; in __test_stack_perf() local
305 s = rte_stack_create(STACK_NAME, STACK_SIZE, rte_socket_id(), flags); in __test_stack_perf()
306 if (s == NULL) { in __test_stack_perf()
313 test_single_push_pop(s); in __test_stack_perf()
316 test_empty_pop(s); in __test_stack_perf()
319 test_bulk_push_pop(s); in __test_stack_perf()
323 run_on_core_pair(&cores, s, bulk_push_pop); in __test_stack_perf()
327 run_on_core_pair(&cores, s, bulk_push_pop); in __test_stack_perf()
331 run_on_core_pair(&cores, s, bulk_push_pop); in __test_stack_perf()
335 run_on_n_cores(s, bulk_push_pop, rte_lcore_count()); in __test_stack_perf()
337 rte_stack_free(s); in __test_stack_perf()