|
Coda Distributed File System
|
#include <stdlib.h>#include <unistd.h>#include <signal.h>#include <stdio.h>#include <ctype.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/time.h>#include <sys/resource.h>#include <string.h>#include <time.h>#include <rvm/rvm.h>#include <rvm/rvm_statistics.h>#include <rvm/rvm_segment.h>#include <rvm/rds.h>#include <cthreads.h>
Classes | |
| struct | list_entry_s |
| struct | block_t |
| struct | str_name_entry_t |
Typedefs | |
| typedef struct list_entry_s | list_entry_t |
Functions | |
| int | main (int argc, char **argv) |
| #define ABORT_DEFAULT 10 |
| #define ALIGNED_LEN | ( | addr, | |
| len | |||
| ) |
| #define BLOCK_SIZE_DEFAULT 10000 |
| #define BYTE_SKEW | ( | len | ) | ((rvm_length_t)(len) & ~LENGTH_MASK) |
| #define CHK_ALLOC_DEFAULT 0 |
| #define CHK_RANGE_DEFAULT 0 |
| #define CHOP_TO_LENGTH | ( | len | ) | ((rvm_length_t)((rvm_length_t)(len) & LENGTH_MASK)) |
| #define CODA_ASSERT | ( | ex | ) |
| #define CRITICAL | ( | lock, | |
| body | |||
| ) |
| #define CYCLES_DEFAULT -1 |
| #define FLUSH_DEFAULT 20 |
| #define incr_cur | ( | _i | ) | cmd_cur = &cmd_cur[_i] |
| #define LENGTH_MASK ((rvm_length_t)(~(sizeof(rvm_length_t) - 1))) |
| #define MAX_FLAGS 15 /* maximum number of flag codes */ |
| #define MOBY_MOD_SIZE_DEFAULT 1000000 |
| #define MOD_SIZE_DEFAULT 10000 |
| #define OP_CNT_DEFAULT 1000 |
| #define PRE_ALLOC_DEFAULT 1000 |
| #define RANGES_DEFAULT 100 |
| #define RESTORE_DEFAULT 20 |
| #define ROUND_TO_LENGTH | ( | len | ) |
| #define RVM_MAJOR_VERSION 1 |
| #define RVM_MINOR_VERSION 3 |
| #define SEED_DEFAULT 1 |
| #define THREADS_DEFAULT 25 |
| #define TRANS_DEFAULT 10 |
| typedef struct list_entry_s list_entry_t |
| enum key_id_t |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| int abort_frac |
| rvm_bool_t all_tests |
| list_entry_t alloc_list |
| RVM_MUTEX alloc_list_lock |
| int blk_cnt |
| RVM_CONDITION blk_code |
| int chk_alloc |
| rvm_bool_t chk_block |
| RVM_CONDITION chk_code |
| RVM_MUTEX chk_lock = MUTEX_INITIALIZER |
| int chk_range_frac |
| rvm_bool_t chk_sum_sw |
| int cycle |
| char DataFileName[MAXPATHLEN+1] |
| rvm_offset_t DataLen |
| rvm_bool_t do_private_map |
| int epoch_trunc_frac |
| rvm_length_t flush_buf_len |
| int flush_frac |
| int incr_trunc_time |
| RVM_CONDITION init_cv |
| RVM_MUTEX init_lock |
| struct timeval init_time |
| int* last |
| char LogFileName[MAXPATHLEN+1] |
| int max_block_size |
| int max_cycles |
| int max_moby_size |
| int max_mod_size |
| int max_op_cnt |
| int max_ranges |
| rvm_length_t max_read_len |
| int max_trans |
| rvm_bool_t moby_test |
| rvm_bool_t no_yield_sw |
|
extern |
| int nthreads = 0 |
| int num_pre_alloc |
| int op_cnt |
| rvm_length_t optimizations |
| FILE* para_file |
| FILE* PlumberFile |
| char PlumberFileName[MAXPATHLEN+1] |
| rvm_bool_t pre_alloc_trunc |
|
extern |
| rvm_length_t rec_buf_len |
|
extern |
| int restore_frac |
| int seed |
| rvm_bool_t show_brk |
| static void Terminate | ( | void | ) | = rvm_false |
| RVM_CONDITION thread_exit_code |
| RVM_MUTEX thread_lock = MUTEX_INITIALIZER |
| cthread_t* threads |
| rvm_bool_t time_tests |
| int trunc_frac |
| rvm_bool_t vm_protect_sw |
| rvm_bool_t vm_test |