Lines Matching refs:test_info
28 struct test_info { struct
70 struct test_info *test_info = tim->arg; in handle_expired_timer() local
72 test_info->expired_count++; in handle_expired_timer()
73 test_info->expired_timers[test_info->expired_timers_idx++] = tim; in handle_expired_timer()
82 struct test_info *test_info = arg; in timer_manage_loop() local
84 while (!test_info->exit_flag) { in timer_manage_loop()
90 rte_timer_alt_manage(test_info->timer_data_id, in timer_manage_loop()
96 rte_mempool_put_bulk(test_info->tim_mempool, in timer_manage_loop()
97 (void **)test_info->expired_timers, in timer_manage_loop()
98 test_info->expired_timers_idx); in timer_manage_loop()
100 test_info->expired_timers_idx = 0; in timer_manage_loop()
116 struct test_info *test_info; in test_timer_secondary() local
126 mz = rte_memzone_reserve(TEST_INFO_MZ_NAME, sizeof(*test_info), in test_timer_secondary()
128 test_info = mz->addr; in test_timer_secondary()
129 TEST_ASSERT_NOT_NULL(test_info, "Couldn't allocate memory for " in test_timer_secondary()
132 test_info->tim_mempool = rte_mempool_create("test_timer_mp", in test_timer_secondary()
136 ret = rte_timer_data_alloc(&test_info->timer_data_id); in test_timer_secondary()
140 unsigned int *main_lcorep = &test_info->main_lcore; in test_timer_secondary()
141 unsigned int *mgr_lcorep = &test_info->mgr_lcore; in test_timer_secondary()
142 unsigned int *sec_lcorep = &test_info->sec_lcore; in test_timer_secondary()
149 (void *)test_info, in test_timer_secondary()
158 test_info->exit_flag = 1; in test_timer_secondary()
162 rte_timer_alt_dump_stats(test_info->timer_data_id, stdout); in test_timer_secondary()
165 return test_info->expected_count == test_info->expired_count ? in test_timer_secondary()
174 test_info = mz->addr; in test_timer_secondary()
175 TEST_ASSERT_NOT_NULL(test_info, "Couldn't lookup memzone for " in test_timer_secondary()
179 rte_mempool_get(test_info->tim_mempool, (void **)&tim); in test_timer_secondary()
187 ret = rte_timer_alt_reset(test_info->timer_data_id, in test_timer_secondary()
189 test_info->mgr_lcore, NULL, in test_timer_secondary()
190 test_info); in test_timer_secondary()
194 test_info->expected_count++; in test_timer_secondary()
200 ret = rte_timer_alt_stop(test_info->timer_data_id, in test_timer_secondary()
203 test_info->expected_count--; in test_timer_secondary()
204 rte_mempool_put(test_info->tim_mempool, in test_timer_secondary()