Lines Matching refs:test_info

37 struct test_info {  struct
79 struct test_info *test_info = tim->arg; in handle_expired_timer() local
81 test_info->expired_count++; in handle_expired_timer()
82 test_info->expired_timers[test_info->expired_timers_idx++] = tim; in handle_expired_timer()
91 struct test_info *test_info = arg; in timer_manage_loop() local
93 while (!test_info->exit_flag) { in timer_manage_loop()
99 rte_timer_alt_manage(test_info->timer_data_id, in timer_manage_loop()
105 rte_mempool_put_bulk(test_info->tim_mempool, in timer_manage_loop()
106 (void **)test_info->expired_timers, in timer_manage_loop()
107 test_info->expired_timers_idx); in timer_manage_loop()
109 test_info->expired_timers_idx = 0; in timer_manage_loop()
125 struct test_info *test_info; in test_timer_secondary() local
135 mz = rte_memzone_reserve(TEST_INFO_MZ_NAME, sizeof(*test_info), in test_timer_secondary()
139 test_info = mz->addr; in test_timer_secondary()
141 test_info->tim_mempool = rte_mempool_create("test_timer_mp", in test_timer_secondary()
145 ret = rte_timer_data_alloc(&test_info->timer_data_id); in test_timer_secondary()
149 unsigned int *main_lcorep = &test_info->main_lcore; in test_timer_secondary()
150 unsigned int *mgr_lcorep = &test_info->mgr_lcore; in test_timer_secondary()
151 unsigned int *sec_lcorep = &test_info->sec_lcore; in test_timer_secondary()
158 (void *)test_info, in test_timer_secondary()
167 test_info->exit_flag = 1; in test_timer_secondary()
171 rte_timer_alt_dump_stats(test_info->timer_data_id, stdout); in test_timer_secondary()
174 return test_info->expected_count == test_info->expired_count ? in test_timer_secondary()
185 test_info = mz->addr; in test_timer_secondary()
188 rte_mempool_get(test_info->tim_mempool, (void **)&tim); in test_timer_secondary()
196 ret = rte_timer_alt_reset(test_info->timer_data_id, in test_timer_secondary()
198 test_info->mgr_lcore, NULL, in test_timer_secondary()
199 test_info); in test_timer_secondary()
203 test_info->expected_count++; in test_timer_secondary()
209 ret = rte_timer_alt_stop(test_info->timer_data_id, in test_timer_secondary()
212 test_info->expected_count--; in test_timer_secondary()
213 rte_mempool_put(test_info->tim_mempool, in test_timer_secondary()