/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/src/ |
H A D | sysinfo.cc | 199 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 D | sysinfo.cc | 201 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 D | sanitizer_file.cc | 119 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 D | sanitizer_file.h | 62 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
|
H A D | sanitizer_win.cc | 538 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 D | sanitizer_rtems.cc | 211 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
H A D | sanitizer_posix.cc | 174 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
H A D | sanitizer_symbolizer_libcdep.cc | 457 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_file.cc | 121 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 D | sanitizer_file.h | 64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
|
H A D | sanitizer_win.cc | 536 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 D | sanitizer_rtems.cc | 211 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
H A D | sanitizer_posix.cc | 179 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
H A D | sanitizer_symbolizer_libcdep.cc | 459 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_file.cpp | 147 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 D | sanitizer_file.h | 64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
|
H A D | sanitizer_win.cpp | 586 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 D | sanitizer_posix.cpp | 172 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() function
|
H A D | sanitizer_symbolizer_libcdep.cpp | 522 bool success = ReadFromFile(input_fd_, buffer + read_len, in ReadFromSymbolizer()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_libc_test.cc | 154 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST() 159 EXPECT_TRUE(ReadFromFile(fd, buf, len2, &bytes_read)); in TEST()
|
H A D | sanitizer_linux_test.cc | 281 while (ReadFromFile(pipe_fds[0], ptr, 256, &bytes_read)) { in TEST()
|