Changeset 50661ab in mainline for kernel/test/btree/btree1.c


Ignore:
Timestamp:
2006-12-11T19:00:04Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f272cb8
Parents:
319e60e
Message:

integrate more tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/test/btree/btree1.c

    r319e60e r50661ab  
    3232#include <debug.h>
    3333
     34#ifdef CONFIG_BENCH
     35#include <arch/cycle.h>
     36#endif
     37
    3438void *data = (void *) 0xdeadbeef;
    3539
    36 void test(void)
     40void test_btree1(void)
    3741{
     42#ifdef CONFIG_BENCH
     43        uint64_t t0 = get_cycle();
     44#endif
    3845        btree_t t;
    3946        int i;
     
    157164
    158165        btree_print(&t);
     166#ifdef CONFIG_BENCH
     167        uint64_t dt = get_cycle() - t0;
     168        printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
     169#endif
    159170}
Note: See TracChangeset for help on using the changeset viewer.