Searched refs:file_size (Results 1 – 6 of 6) sorted by relevance
60 int64_t file_size = GetFileSize(syscall_, fd); in SetUpSingle() local63 size_ = file_size; in SetUpSingle()66 block_size_ = file_size; in SetUpSingle()69 if (block_size_ > file_size) { in SetUpSingle()71 ") is greater than total file size (" + std::to_string(file_size) + in SetUpSingle()91 if (offset > file_size - block_size_) { in SetUpSingle()100 std::uniform_int_distribution<> uniform_distribution(0, file_size - block_size_); in SetUpSingle()144 int64_t file_size = GetFileSize(syscall_, fd); in SetUpSingle() local146 if (syscall_.FAdvise(fd, 0, file_size, fadvise_) != 0) { in SetUpSingle()
29 int64_t file_size = GetFileSize(syscall_, fd); in RunSingle() local31 if (size_ > file_size) { in RunSingle()35 } else if (size_ < file_size) { in RunSingle()
33 void BandwidthSampler::Measure(const size_t file_size, const timespec& duration) { in Measure() argument34 double bandwidth = file_size * 1e6 / TimespecToNanos(duration); // currently bytes/milliseconds in Measure()
150 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local160 buf->st_size = file_size; in TEST_F()189 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local199 buf->st_size = file_size; in TEST_F()228 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local238 buf->st_size = file_size; in TEST_F()
152 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local162 buf->st_size = file_size; in TEST_F()191 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local201 buf->st_size = file_size; in TEST_F()230 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local240 buf->st_size = file_size; in TEST_F()
45 void Measure(size_t file_size, const timespec& duration);