Go to the source code of this file.
Data Structures | |
struct | test_params_t |
Functions | |
void | print_usage () |
void | print_keys (ADIO_Offset *offsets, int size) |
void | print_params (test_params_t *params) |
int | run_test (test_params_t *test) |
void | fill_random_test (test_params_t *params) |
void | init_predefined_test (test_params_t *params, int index) |
void | dumb_sort (test_params_t *params) |
int | main (int argc, char **argv) |
int print_usage | ( | void | ) |
Definition at line 170 of file heap_test.c.
Referenced by main().
void print_keys | ( | ADIO_Offset * | offsets, | |
int | size | |||
) |
Definition at line 182 of file heap_test.c.
Referenced by print_params(), and run_test().
void print_params | ( | test_params_t * | params | ) |
Definition at line 188 of file heap_test.c.
References test_params_t::action_arr, test_params_t::action_arr_sz, test_params_t::action_count_arr, test_params_t::correct_order, test_params_t::heap_size, test_params_t::offsets, print_keys(), and test_params_t::verify.
Referenced by main().
int run_test | ( | test_params_t * | test | ) |
Definition at line 249 of file heap_test.c.
References test_params_t::action_arr, test_params_t::action_arr_sz, test_params_t::action_count_arr, ADIOI_Heap_insert(), build_heap(), test_params_t::correct_order, free(), test_params_t::heap_size, malloc(), test_params_t::name, heap_t::nodes, heap_node_t::offset, test_params_t::offsets, test_params_t::print, print_keys(), heap_node_t::proc, heap_t::size, and test_params_t::verify.
Referenced by main().
void fill_random_test | ( | test_params_t * | params | ) |
Definition at line 211 of file heap_test.c.
References test_params_t::heap_size, test_params_t::offsets, order, and stats::time().
Referenced by main().
void init_predefined_test | ( | test_params_t * | params, | |
int | index | |||
) |
Definition at line 330 of file heap_test.c.
References test_params_t::action_arr, test_params_t::action_arr_sz, test_params_t::action_count_arr, test_params_t::correct_order, test_params_t::heap_size, malloc(), test_params_t::name, test_params_t::offsets, and test_params_t::verify.
Referenced by main().
void dumb_sort | ( | test_params_t * | params | ) |
Definition at line 232 of file heap_test.c.
References test_params_t::correct_order, test_params_t::heap_size, and test_params_t::offsets.
Referenced by main().
Definition at line 39 of file heap_test.c.
References test_params_t::action_arr, test_params_t::action_arr_sz, test_params_t::action_count_arr, test_params_t::correct_order, dumb_sort(), fill_random_test(), test_params_t::heap_size, init_predefined_test(), malloc(), test_params_t::name, test_params_t::offsets, test_params_t::print, print(), print_params(), print_usage(), RANDOM, run_test(), and test_params_t::verify.