Home
last modified time | relevance | path

Searched refs:syscall_ (Results 1 – 16 of 16) sorted by relevance

/test/dittosuite/test/
Dwrite_file_test.cpp45 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 …]
Dread_file_test.cpp47 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 …]
Dinvalidate_cache_test.cpp26 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()
Dclose_file_test.cpp41 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/
Dinvalidate_cache.cpp24 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()
Dread_write_file.cpp60 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()
Dread_directory.cpp32 DIR* directory = syscall_.OpenDir(directory_name_); in RunSingle()
39 while ((entry = syscall_.ReadDir(directory)) != nullptr) { in RunSingle()
53 syscall_.CloseDir(directory); in RunSingle()
Dresize_file.cpp29 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()
Dmultithreading_utils.cpp30 "] 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()
Dopen_file.cpp62 } while (FileExists(syscall_, path_name_)); in SetUpSingle()
86 int fd = syscall_.Open(path_name_, open_flags, open_mode); in RunSingle()
Dclose_file.cpp28 if (syscall_.Close(fd) != 0) { in RunSingle()
Dinstruction.cpp26 syscall_(params.syscall_), in Instruction()
Ddelete_file.cpp36 if (syscall_.Unlink(path_name_) == -1) { in RunSingle()
/test/dittosuite/include/ditto/
Dmultithreading_utils.h38 SyscallInterface& syscall_; variable
43 SchedAttr(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAttr()
52 SyscallInterface& syscall_; variable
57 SchedAffinity(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAffinity()
Dinstruction.h40 : 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/
Dinstruction_test.h34 MockSyscall syscall_;