Home | History | Annotate | Download | only in sdcard

Lines Matching refs:WRITE

55 //  write:       Open a file write some random data and close.
68 // For read/write tests, size is the number of Kbytes to use.
74 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
128 printf("sdcard_perf_test --test=write|read|read_write|open_create [options]\n\n"
137 " -s --sync: fsync|sync Use fsync or sync in write test. Default: no sync call.\n"
353 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk
358 // iteration to last longer and have concurrent read/write
379 ssize_t written = write(fd, chunk, chunk_size);
382 fprintf(stderr, "Write failed %d %s.", errno, strerror(errno));
410 // WRITE TEST
422 fprintf(stderr, "Open write failed.");
454 ssize_t s = write(fd, dest, chunk_size);
457 fprintf(stderr, "Failed to write.\n");
490 // TODO: write the pid at the beginning like in the write
491 // test. Have a mode where we check the write was correct.
509 // READ WRITE
511 // Mix of read and write test. Even PID run the write test. Odd PID
574 case TestCase::WRITE: