Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/
H A Dsysinfo.cc199 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile() function
218 if (ReadFromFile(governor_file, &res) && res != "performance") return true; in CpuScalingEnabled()
267 if (!ReadFromFile(StrCat(FPath, "type"), &info.type)) in GetCacheSizesFromKVFS()
269 if (!ReadFromFile(StrCat(FPath, "level"), &info.level)) in GetCacheSizesFromKVFS()
272 if (!ReadFromFile(StrCat(FPath, "shared_cpu_map"), &map_str)) in GetCacheSizesFromKVFS()
444 if (ReadFromFile("/sys/devices/system/cpu/cpu0/tsc_freq_khz", &freq) in GetCPUCyclesPerSecond()
447 || ReadFromFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", in GetCPUCyclesPerSecond()
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/src/
H A Dsysinfo.cc201 bool ReadFromFile(std::string const& fname, ArgT* arg) { in ReadFromFile() function
220 if (ReadFromFile(governor_file, &res) && res != "performance") return true; in CpuScalingEnabled()
269 if (!ReadFromFile(StrCat(FPath, "type"), &info.type)) in GetCacheSizesFromKVFS()
271 if (!ReadFromFile(StrCat(FPath, "level"), &info.level)) in GetCacheSizesFromKVFS()
274 if (!ReadFromFile(StrCat(FPath, "shared_cpu_map"), &map_str)) in GetCacheSizesFromKVFS()
483 if (ReadFromFile("/sys/devices/system/cpu/cpu0/tsc_freq_khz", &freq) in GetCPUCyclesPerSecond()
486 || ReadFromFile("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq", in GetCPUCyclesPerSecond()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_file.cc119 if (!ReadFromFile(fd, *buff + *read_len, size - *read_len, &just_read, in ReadFileToBuffer()
155 if (!ReadFromFile(fd, buff->data() + read_len, buff->size() - read_len, in ReadFileToVector()
H A Dsanitizer_file.h62 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
H A Dsanitizer_win.cc538 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase()
555 if (!ReadFromFile(fd, &buf[0], sizeof(buf), &bytes_read) || in GetPreferredBase()
687 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_rtems.cc211 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_posix.cc174 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_symbolizer_libcdep.cc457 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_file.cc121 if (!ReadFromFile(fd, *buff + *read_len, size - *read_len, &just_read, in ReadFileToBuffer()
157 if (!ReadFromFile(fd, buff->data() + read_len, buff->size() - read_len, in ReadFileToVector()
H A Dsanitizer_file.h64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
H A Dsanitizer_win.cc536 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase()
553 if (!ReadFromFile(fd, &buf[0], sizeof(buf), &bytes_read) || in GetPreferredBase()
685 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_rtems.cc211 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_posix.cc179 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_symbolizer_libcdep.cc459 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_file.cpp147 if (!ReadFromFile(fd, *buff + *read_len, size - *read_len, &just_read, in ReadFileToBuffer()
183 if (!ReadFromFile(fd, buff->data() + read_len, buff->size() - read_len, in ReadFileToVector()
H A Dsanitizer_file.h64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
H A Dsanitizer_win.cpp586 if (!ReadFromFile(fd, &dos_header, sizeof(dos_header), &bytes_read) || in GetPreferredBase()
602 if (!ReadFromFile(fd, buf, buf_size, &bytes_read) || bytes_read != buf_size) in GetPreferredBase()
737 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_posix.cpp172 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
H A Dsanitizer_symbolizer_libcdep.cpp522 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cc154 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST()
159 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST()
H A Dsanitizer_linux_test.cc281 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST()