/trunk/kernel/test/btree/btree1.def |
---|
0,0 → 1,6 |
{ |
"btree1", |
"Test B-tree operations", |
&test_btree1, |
true |
}, |
/trunk/kernel/test/btree/btree1.c |
---|
31,17 → 31,10 |
#include <adt/btree.h> |
#include <debug.h> |
#ifdef CONFIG_BENCH |
#include <arch/cycle.h> |
#endif |
static void *data = (void *) 0xdeadbeef; |
void test_btree1(void) |
char * test_btree1(void) |
{ |
#ifdef CONFIG_BENCH |
uint64_t t0 = get_cycle(); |
#endif |
btree_t t; |
int i; |
163,8 → 156,6 |
btree_remove(&t, 36, NULL); |
btree_print(&t); |
#ifdef CONFIG_BENCH |
uint64_t dt = get_cycle() - t0; |
printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); |
#endif |
return NULL; |
} |