Searched refs:TST_BLK_SIZE (Results 1 - 1 of 1) sorted by relevance

/system/extras/tests/ext4/
H A Drand_emmc_perf.c34 #define TST_BLK_SIZE 4096 macro
91 TST_BLK_SIZE, avg_usecs);
93 TST_BLK_SIZE, max_usecs);
114 char buf[TST_BLK_SIZE] = { 0 };
126 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) {
149 char buf[TST_BLK_SIZE] = { 0 };
156 if (lseek64(fd, (rand() % max_blocks) * TST_BLK_SIZE, SEEK_SET) < 0) {
180 printf("%.0f %dbyte iops/sec\n", (float)iops * 1000 / msecs, TST_BLK_SIZE);
239 /* Size is given in megabytes, so compute the number of TST_BLK_SIZE blocks. */
240 max_blocks = atoll(argv[optind]) * ((1024*1024) / TST_BLK_SIZE);
[all...]

Completed in 72 milliseconds