Flash Translation Layer
1.0
|
main program for test the interface More...
#include <assert.h>
#include <climits>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <glib.h>
#include "include/module.h"
#include "include/flash.h"
#include "include/page.h"
#include "include/log.h"
#include "include/device.h"
Macros | |
#define | USE_RANDOM_WAIT |
#define | RAND_WORKLOAD |
#define | DEVICE_PATH "/dev/nvme0n2" |
#define | WRITE_SIZE ((size_t)8192 * 8192) |
#define | NR_ERASE (10) |
#define | BLOCK_SIZE ((size_t)4096) |
Functions | |
void * | read_thread (void *data) |
void * | write_thread (void *data) |
void * | overwrite_thread (void *data) |
void * | erase_thread (void *data) |
int | main (void) |
Variables | |
int | is_check [WRITE_SIZE/BLOCK_SIZE] |
gint | is_overwrite = 0 |
main program for test the interface
#define BLOCK_SIZE ((size_t)4096) |
#define DEVICE_PATH "/dev/nvme0n2" |
#define NR_ERASE (10) |
#define RAND_WORKLOAD |
#define USE_RANDOM_WAIT |
#define WRITE_SIZE ((size_t)8192 * 8192) |
void* erase_thread | ( | void * | data | ) |
int main | ( | void | ) |
void* overwrite_thread | ( | void * | data | ) |
void* read_thread | ( | void * | data | ) |
void* write_thread | ( | void * | data | ) |
int is_check[WRITE_SIZE/BLOCK_SIZE] |
gint is_overwrite = 0 |