Changeset f272cb8 in mainline for kernel/test/mm/slab1.c


Ignore:
Timestamp:
2006-12-11T19:19:28Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
70b6de1
Parents:
50661ab
Message:

integrate more tests

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/slab1.c

    r50661ab rf272cb8  
    3434#include <panic.h>
    3535#include <memstr.h>
     36
     37#ifdef CONFIG_BENCH
     38#include <arch/cycle.h>
     39#endif
    3640
    3741#define VAL_COUNT   1024
     
    154158}
    155159
    156 void test(void)
     160void test_slab1(void)
    157161{
     162#ifdef CONFIG_BENCH
     163        uint64_t t0 = get_cycle();
     164#endif
    158165        testsimple();
    159166        testthreads();
     167#ifdef CONFIG_BENCH
     168        uint64_t dt = get_cycle() - t0;
     169        printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
     170#endif
    160171}
Note: See TracChangeset for help on using the changeset viewer.