/test/dittosuite/test/ |
D | write_file_test.cpp | 45 EXPECT_CALL(syscall_, FSync(fd_)); in TEST_F() 48 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 54 EXPECT_CALL(syscall_, Write(fd_, _, MockSyscall::kDefaultFileSize, 0)); in TEST_F() 57 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 64 EXPECT_CALL(syscall_, Write(fd_, _, MockSyscall::kDefaultFileSize, 0)).Times(repeat); in TEST_F() 67 (Instruction::Params){syscall_, repeat}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 73 EXPECT_CALL(syscall_, Write(fd_, _, MockSyscall::kDefaultFileSize, 0)); in TEST_F() 76 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 83 EXPECT_CALL(syscall_, Write(fd_, _, MockSyscall::kDefaultFileSize, 0)).Times(repeat); in TEST_F() 86 (Instruction::Params){syscall_, repeat}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() [all …]
|
D | read_file_test.cpp | 47 EXPECT_CALL(syscall_, FAdvise(fd_, 0, MockSyscall::kDefaultFileSize, fadvise)); in TEST_F() 50 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 56 EXPECT_CALL(syscall_, Read(fd_, _, MockSyscall::kDefaultFileSize, 0)); in TEST_F() 59 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 66 EXPECT_CALL(syscall_, Read(fd_, _, MockSyscall::kDefaultFileSize, 0)).Times(repeat); in TEST_F() 69 (Instruction::Params){syscall_, repeat}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 75 EXPECT_CALL(syscall_, Read(fd_, _, MockSyscall::kDefaultFileSize, 0)); in TEST_F() 78 (Instruction::Params){syscall_, 1}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() 85 EXPECT_CALL(syscall_, Read(fd_, _, MockSyscall::kDefaultFileSize, 0)).Times(repeat); in TEST_F() 88 (Instruction::Params){syscall_, repeat}, -1, MockSyscall::kDefaultFileSize, 0, in TEST_F() [all …]
|
D | invalidate_cache_test.cpp | 26 EXPECT_CALL(syscall_, Sync()); in TEST_F() 27 EXPECT_CALL(syscall_, Open("/proc/sys/vm/drop_caches", O_WRONLY, 0)); in TEST_F() 28 EXPECT_CALL(syscall_, Write(_, _, sizeof(char), 0)); in TEST_F() 29 EXPECT_CALL(syscall_, Close(_)); in TEST_F() 31 dittosuite::InvalidateCache instruction((Instruction::Params){syscall_, 1}); in TEST_F()
|
D | close_file_test.cpp | 41 EXPECT_CALL(syscall_, Close(fd_)); in TEST_F() 43 dittosuite::CloseFile instruction((Instruction::Params){syscall_, 1}, input_key_); in TEST_F() 49 EXPECT_CALL(syscall_, Close(_)).WillRepeatedly(Return(-1)); in TEST_F() 51 dittosuite::CloseFile instruction((Instruction::Params){syscall_, 1}, input_key_); in TEST_F()
|
/test/dittosuite/src/ |
D | invalidate_cache.cpp | 24 syscall_.Sync(); in RunSingle() 27 int fd = syscall_.Open(cache_file, O_WRONLY, 0); in RunSingle() 33 if (syscall_.Write(fd, &data, sizeof(char), 0) == -1) { in RunSingle() 37 if (syscall_.Close(fd) == -1) { in RunSingle()
|
D | read_write_file.cpp | 60 int64_t file_size = GetFileSize(syscall_, fd); in SetUpSingle() 72 "). File path:" + GetFilePath(syscall_, fd)); in SetUpSingle() 125 if (syscall_.Write(fd, buffer_.get(), unit.count, unit.offset) == -1) { in RunSingle() 130 if (fsync_ && syscall_.FSync(fd) != 0) { in RunSingle() 144 int64_t file_size = GetFileSize(syscall_, fd); in SetUpSingle() 146 if (syscall_.FAdvise(fd, 0, file_size, fadvise_) != 0) { in SetUpSingle() 156 if (syscall_.Read(fd, buffer_.get(), unit.count, unit.offset) == -1) { in RunSingle()
|
D | read_directory.cpp | 32 DIR* directory = syscall_.OpenDir(directory_name_); in RunSingle() 39 while ((entry = syscall_.ReadDir(directory)) != nullptr) { in RunSingle() 53 syscall_.CloseDir(directory); in RunSingle()
|
D | resize_file.cpp | 29 int64_t file_size = GetFileSize(syscall_, fd); in RunSingle() 32 if (syscall_.FAllocate(fd, 0, 0, size_) != 0) { in RunSingle() 36 if (syscall_.FTruncate(fd, size_) != 0) { in RunSingle()
|
D | multithreading_utils.cpp | 30 "] to thread: " + std::to_string(syscall_.GetTid())); in Set() 32 int ret = syscall_.SchedSetattr(0 /* self */, sched_attr_, 0 /* still not implemented */); in Set() 93 "] to thread: " + std::to_string(syscall_.GetTid())); in Set()
|
D | open_file.cpp | 62 } while (FileExists(syscall_, path_name_)); in SetUpSingle() 86 int fd = syscall_.Open(path_name_, open_flags, open_mode); in RunSingle()
|
D | close_file.cpp | 28 if (syscall_.Close(fd) != 0) { in RunSingle()
|
D | instruction.cpp | 26 syscall_(params.syscall_), in Instruction()
|
D | delete_file.cpp | 36 if (syscall_.Unlink(path_name_) == -1) { in RunSingle()
|
/test/dittosuite/include/ditto/ |
D | multithreading_utils.h | 38 SyscallInterface& syscall_; variable 43 SchedAttr(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAttr() 52 SyscallInterface& syscall_; variable 57 SchedAffinity(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAffinity()
|
D | instruction.h | 40 : syscall_(syscall), repeat_(repeat), period_us_(period_us), offset_us_(offset_us) {} in syscall_() function 41 SyscallInterface& syscall_; member 79 SyscallInterface& syscall_; variable
|
/test/dittosuite/test/include/ |
D | instruction_test.h | 34 MockSyscall syscall_;
|