Searched refs:syscall (Results 1 – 6 of 6) sorted by relevance
| /test/dittosuite/ |
| D | dittotrace.cpp | 48 Syscall syscall; in ProcessLine() local 50 syscall.name = line.substr(0, line.find('(')); in ProcessLine() 52 syscall.return_value = line.substr(line.find(')')); in ProcessLine() 53 syscall.return_value = syscall.return_value.substr(syscall.return_value.find("= ") + 2); in ProcessLine() 60 if (part.size() != 0) syscall.arguments.push_back(part); in ProcessLine() 63 if (part.size() != 0) syscall.arguments.push_back(part); in ProcessLine() 65 return syscall; in ProcessLine() 150 for (const auto& syscall : syscalls) { in main() local 151 if (syscall.name == "openat" && in main() 152 syscall.arguments[1].find(absolute_path) != std::string::npos) { in main() [all …]
|
| /test/dittosuite/src/ |
| D | utils.cpp | 28 int64_t GetFileSize(SyscallInterface& syscall, int fd) { in GetFileSize() argument 30 if (syscall.FStat(fd, &sb) == -1) { in GetFileSize() 36 std::string GetFilePath(SyscallInterface& syscall, int fd) { in GetFilePath() argument 38 if (syscall.ReadLink("/proc/self/fd/" + std::to_string(fd), file_path, sizeof(file_path)) == -1) { in GetFilePath() 44 bool FileExists(SyscallInterface& syscall, const std::string& path_name) { in FileExists() argument 45 return syscall.Access(path_name, F_OK) != -1; in FileExists()
|
| D | syscall.cpp | 25 static Syscall syscall; in GetSyscall() local 26 return syscall; in GetSyscall() 62 long ret = syscall(SYS_gettid); in GetTid() 90 long ret = syscall(__NR_sched_setattr, pid, &attr, flags); in SchedSetattr()
|
| /test/dittosuite/include/ditto/ |
| D | utils.h | 26 int64_t GetFileSize(SyscallInterface& syscall, int fd); 27 std::string GetFilePath(SyscallInterface& syscall, int fd); 28 bool FileExists(SyscallInterface& syscall, const std::string& path_name);
|
| D | multithreading_utils.h | 43 SchedAttr(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAttr() argument 57 SchedAffinity(SyscallInterface& syscall) : syscall_(syscall) {} in SchedAffinity() argument
|
| D | instruction.h | 38 Params(SyscallInterface& syscall, int repeat = 1, uint64_t period_us = 0, 40 : syscall_(syscall), repeat_(repeat), period_us_(period_us), offset_us_(offset_us) {} in syscall_()
|