#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define NUM_ARGS (3)
#define TYPE_R (1)
#define TYPE_WR (2)
#define UNIT_KB (1024)
#define UNIT_MB (1024*1024)
#define LOOP (1)
static pthread_t tid[4];
static int cnt;
void* thread_write();
void* thread_read();
void* thread_cnt();
void* thread_cnt_clear();
void* thread_log();
int measure_bitrate_read(unsigned int len);
int measure_bitrate_write(unsigned int len);
unsigned int read_tlen;
unsigned int write_tlen;
int ok_cntnok_cnt;
void main(int argc char* argv[])
{
// int nCor=0;
// int nIncor=0;
if(argc < 2){
printf(“ mem_test r/w/d file name\n“);
exit(0);
}
printf(“ TEST start \n“);
read_tlen = 0;
write_tlen = 0;
pthr
评论
共有 条评论