Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2021 → Rev 1787

/trunk/kernel/test/mm/slab1/test.c/slab1.c
34,10 → 34,6
#include <panic.h>
#include <memstr.h>
 
#ifdef CONFIG_BENCH
#include <arch/cycle.h>
#endif
 
#define VAL_COUNT 1024
 
void * data[VAL_COUNT];
157,15 → 153,8
}
 
void test_slab1(void)
void test(void)
{
#ifdef CONFIG_BENCH
uint64_t t0 = get_cycle();
#endif
testsimple();
testthreads();
#ifdef CONFIG_BENCH
uint64_t dt = get_cycle() - t0;
printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
#endif
}