Home
last modified time | relevance | path

Searched refs:ReadFromFile (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/third-party/benchmark/src/
H A Dsysinfo.cc207 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 Dsanitizer_file.cpp152 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 Dsanitizer_file.h63 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
H A Dsanitizer_win.cpp613 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 Dsanitizer_posix.cpp175 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_symbolizer_libcdep.cpp532 bool ret = ReadFromFile(input_fd_, &buffer_[size_before], in ReadFromSymbolizer()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cpp164 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST()
169 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST()
H A Dsanitizer_linux_test.cpp265 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST()