Searched refs:ReadFromFile (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | sysinfo.cc | 207 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile() function 228 if (ReadFromFile(governor_file, &res) && res != "performance") in CpuScaling() 280 if (!ReadFromFile(StrCat(FPath, "type"), &info.type)) in GetCacheSizesFromKVFS() 282 if (!ReadFromFile(StrCat(FPath, "level"), &info.level)) in GetCacheSizesFromKVFS() 285 if (!ReadFromFile(StrCat(FPath, "shared_cpu_map"), &map_str)) in GetCacheSizesFromKVFS() 546 if (ReadFromFile("/sys/devices/system/cpu/cpu0/tsc_freq_khz", &freq) in GetCPUCyclesPerSecond() 551 ReadFromFile("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", in GetCPUCyclesPerSecond() 556 || ReadFromFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", in GetCPUCyclesPerSecond()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_file.cpp | 152 if (!ReadFromFile(fd, *buff + *read_len, size - *read_len, &just_read, in ReadFileToBuffer() 188 if (!ReadFromFile(fd, buff->data() + read_len, buff->size() - read_len, in ReadFileToVector()
|
| H A D | sanitizer_file.h | 63 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
|
| H A D | sanitizer_win.cpp | 613 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase() 629 if (!ReadFromFile(fd, buf, buf_size, &bytes_read) || bytes_read != buf_size) in GetPreferredBase() 764 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
| H A D | sanitizer_posix.cpp | 175 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
| H A D | sanitizer_symbolizer_libcdep.cpp | 532 bool ret = ReadFromFile(input_fd_, &buffer_[size_before], in ReadFromSymbolizer()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_libc_test.cpp | 164 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST() 169 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST()
|
| H A D | sanitizer_linux_test.cpp | 265 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST()
|