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

    r50661ab rf272cb8  
    3636#include <align.h>
    3737
     38#ifdef CONFIG_BENCH
     39#include <arch/cycle.h>
     40#endif
     41
    3842#define MAX_FRAMES 1024
    3943#define MAX_ORDER 8
    4044#define TEST_RUNS 2
    4145
    42 void test(void) {
     46void test_falloc1(void) {
     47#ifdef CONFIG_BENCH
     48        uint64_t t0 = get_cycle();
     49#endif
    4350        uintptr_t * frames = (uintptr_t *) malloc(MAX_FRAMES*sizeof(uintptr_t), 0);
    4451        int results[MAX_ORDER+1];
     
    8996       
    9097        printf("Test passed.\n");
     98#ifdef CONFIG_BENCH
     99        uint64_t dt = get_cycle() - t0;
     100        printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
     101#endif
    91102}
    92103
Note: See TracChangeset for help on using the changeset viewer.