#include <syscall.h>#include "tests/arc4.h"#include "tests/lib.h"#include "tests/main.h"Go to the source code of this file.
Defines | |
| #define | CHUNK_SIZE (126 * 512) |
| #define | CHUNK_CNT 16 |
| #define | DATA_SIZE (CHUNK_CNT * CHUNK_SIZE) |
Functions | |
| static void | init (void) |
| static void | sort_chunks (void) |
| static void | merge (void) |
| static void | verify (void) |
| void | test_main (void) |
Variables | |
| unsigned char | buf1 [DATA_SIZE] |
| unsigned char | buf2 [DATA_SIZE] |
| size_t | histogram [256] |
| #define CHUNK_CNT 16 |
Definition at line 15 of file page-merge-seq.c.
| #define CHUNK_SIZE (126 * 512) |
Definition at line 14 of file page-merge-seq.c.
| #define DATA_SIZE (CHUNK_CNT * CHUNK_SIZE) |
Definition at line 16 of file page-merge-seq.c.
| static void init | ( | void | ) | [static] |
Definition at line 24 of file page-merge-seq.c.
References arc4_crypt(), arc4_init(), buf1, histogram, arc4::i, and msg().
| static void merge | ( | void | ) | [static] |
Definition at line 73 of file page-merge-seq.c.
References buf1, buf2, CHUNK_CNT, CHUNK_SIZE, arc4::i, and msg().
Referenced by parallel_merge(), and test_main().
| static void sort_chunks | ( | void | ) | [static] |
Definition at line 39 of file page-merge-seq.c.
References buf1, CHECK, CHUNK_CNT, CHUNK_SIZE, close(), create(), exec(), arc4::i, msg(), open(), quiet, read(), wait(), and write().
Referenced by parallel_merge(), and test_main().
| void test_main | ( | void | ) |
Definition at line 131 of file page-merge-seq.c.
References init(), merge(), sort_chunks(), and verify().
| static void verify | ( | void | ) | [static] |
Definition at line 108 of file page-merge-seq.c.
References buf2, fail(), histogram, and msg().
Referenced by parallel_merge(), and test_main().
| unsigned char buf1[DATA_SIZE] |
Definition at line 18 of file page-merge-seq.c.
| unsigned char buf2[DATA_SIZE] |
Definition at line 18 of file page-merge-seq.c.
Definition at line 19 of file page-merge-seq.c.
1.5.6