Changeset f272cb8 in mainline for kernel/test/mm/falloc2.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/falloc2.c

    r50661ab rf272cb8  
    3838#include <memstr.h>
    3939#include <arch.h>
     40
     41#ifdef CONFIG_BENCH
     42#include <arch/cycle.h>
     43#endif
    4044
    4145#define MAX_FRAMES 256
     
    102106
    103107
    104 void test(void)
     108void test_falloc2(void)
    105109{
     110#ifdef CONFIG_BENCH
     111        uint64_t t0 = get_cycle();
     112#endif
    106113        int i;
    107114
     
    121128
    122129        printf("Test passed.\n");
     130#ifdef CONFIG_BENCH
     131        uint64_t dt = get_cycle() - t0;
     132        printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
     133#endif
    123134}
Note: See TracChangeset for help on using the changeset viewer.