Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 6 of 6) sorted by relevance

/test/dittosuite/src/
Dread_write_file.cpp60 int64_t file_size = GetFileSize(syscall_, fd); in SetUpSingle() local
63 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() local
146 if (syscall_.FAdvise(fd, 0, file_size, fadvise_) != 0) { in SetUpSingle()
Dresize_file.cpp29 int64_t file_size = GetFileSize(syscall_, fd); in RunSingle() local
31 if (size_ > file_size) { in RunSingle()
35 } else if (size_ < file_size) { in RunSingle()
Dsampler.cpp33 void BandwidthSampler::Measure(const size_t file_size, const timespec& duration) { in Measure() argument
34 double bandwidth = file_size * 1e6 / TimespecToNanos(duration); // currently bytes/milliseconds in Measure()
/test/dittosuite/test/
Dwrite_file_test.cpp150 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
160 buf->st_size = file_size; in TEST_F()
189 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
199 buf->st_size = file_size; in TEST_F()
228 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
238 buf->st_size = file_size; in TEST_F()
Dread_file_test.cpp152 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
162 buf->st_size = file_size; in TEST_F()
191 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
201 buf->st_size = file_size; in TEST_F()
230 int64_t file_size = 1024 * 1024 * 1024; // 1GB in TEST_F() local
240 buf->st_size = file_size; in TEST_F()
/test/dittosuite/include/ditto/
Dsampler.h45 void Measure(size_t file_size, const timespec& duration);