/art/runtime/jdwp/ |
D | jdwp_adb.cc | 309 int fd; in ProcessIncoming() local 314 fd = control_sock_; in ProcessIncoming() 315 if (fd >= 0) { in ProcessIncoming() 316 FD_SET(fd, &readfds); in ProcessIncoming() 317 if (maxfd < fd) { in ProcessIncoming() 318 maxfd = fd; in ProcessIncoming() 321 fd = clientSock; in ProcessIncoming() 322 if (fd >= 0) { in ProcessIncoming() 323 FD_SET(fd, &readfds); in ProcessIncoming() 324 if (maxfd < fd) { in ProcessIncoming() [all …]
|
D | jdwp_socket.cc | 197 static int SetNoDelay(int fd) { in SetNoDelay() argument 199 int cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); in SetNoDelay() 360 int fd; in ProcessIncoming() local 365 fd = listenSock; in ProcessIncoming() 366 if (fd >= 0) { in ProcessIncoming() 367 FD_SET(fd, &readfds); in ProcessIncoming() 368 if (maxfd < fd) { in ProcessIncoming() 369 maxfd = fd; in ProcessIncoming() 372 fd = clientSock; in ProcessIncoming() 373 if (fd >= 0) { in ProcessIncoming() [all …]
|
/art/runtime/ |
D | zip_archive.cc | 77 static void SetCloseOnExec(int fd) { in SetCloseOnExec() argument 79 int flags = fcntl(fd, F_GETFD); in SetCloseOnExec() 81 PLOG(WARNING) << "fcntl(" << fd << ", F_GETFD) failed"; in SetCloseOnExec() 84 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in SetCloseOnExec() 86 PLOG(WARNING) << "fcntl(" << fd << ", F_SETFD, " << flags << ") failed"; in SetCloseOnExec() 106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument 108 DCHECK_GT(fd, 0); in OpenFromFd() 111 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
|
D | mem_map.cc | 245 int fd) { in TryMemMapLow4GB() argument 246 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, 0); in TryMemMapLow4GB() 279 ScopedFd fd(-1); in MapAnonymous() local 297 fd.reset(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count)); in MapAnonymous() 298 if (fd.get() == -1) { in MapAnonymous() 360 fd.get()); in MapAnonymous() 396 fd.get()); in MapAnonymous() 411 actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous() 422 void* actual = mmap(expected_ptr, page_aligned_byte_count, prot, flags, fd.get(), 0); in MapAnonymous() 431 flags, fd.get(), strerror(saved_errno)); in MapAnonymous() [all …]
|
D | zip_archive_test.cc | 52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); in TEST_F() local 53 ASSERT_NE(-1, fd); in TEST_F() 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F()
|
D | monitor_android.cc | 60 int fd = open("/proc/self/cmdline", O_RDONLY); in LogContentionEvent() local 63 read(fd, procName, sizeof(procName) - 1); in LogContentionEvent() 64 close(fd); in LogContentionEvent()
|
D | dex_file.cc | 61 ScopedFd fd(open(filename, O_RDONLY, 0)); in OpenAndReadMagic() local 62 if (fd.get() == -1) { in OpenAndReadMagic() 66 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); in OpenAndReadMagic() 71 if (lseek(fd.get(), 0, SEEK_SET) != 0) { in OpenAndReadMagic() 76 return fd.release(); in OpenAndReadMagic() 95 ScopedFd fd(OpenAndReadMagic(file_part, &magic, error_msg)); in GetChecksum() local 96 if (fd.get() == -1) { in GetChecksum() 102 ZipArchive::OpenFromFd(fd.release(), filename, error_msg)); in GetChecksum() 119 DexFile::OpenFile(fd.release(), filename, false, error_msg)); in GetChecksum() 134 ScopedFd fd(OpenAndReadMagic(filename, &magic, error_msg)); in Open() local [all …]
|
D | mem_map.h | 77 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, in MapFile() argument 80 nullptr, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile() 90 static MemMap* MapFileAtAddress(uint8_t* addr, size_t byte_count, int prot, int flags, int fd,
|
D | profiler.cc | 272 int fd = open(full_name.c_str(), O_RDWR); in WriteProfile() local 273 if (fd < 0) { in WriteProfile() 281 int err = flock(fd, LOCK_EX); in WriteProfile() 288 profile_table_.ReadPrevious(fd, options_.GetProfileType()); in WriteProfile() 291 lseek(fd, 0, SEEK_SET); in WriteProfile() 301 int n = ::write(fd, p, length); in WriteProfile() 307 ftruncate(fd, full_length); in WriteProfile() 310 err = flock(fd, LOCK_UN); in WriteProfile() 316 ::close(fd); in WriteProfile() 718 static bool ReadProfileLine(int fd, std::string& line) { in ReadProfileLine() argument [all …]
|
D | signal_catcher.cc | 109 int fd = open(stack_trace_file_.c_str(), O_APPEND | O_CREAT | O_WRONLY, 0666); in Output() local 110 if (fd == -1) { in Output() 114 std::unique_ptr<File> file(new File(fd, stack_trace_file_, true)); in Output()
|
D | common_runtime_test.cc | 73 int fd = mkstemp(&filename_[0]); in ScratchFile() local 74 CHECK_NE(-1, fd); in ScratchFile() 75 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile() 81 int fd = open(filename_.c_str(), O_RDWR | O_CREAT, 0666); in ScratchFile() local 82 CHECK_NE(-1, fd); in ScratchFile() 83 file_.reset(new File(fd, GetFilename(), true)); in ScratchFile()
|
D | zip_archive.h | 62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
|
D | profiler.h | 110 void ReadPrevious(int fd, ProfileDataType type);
|
/art/runtime/base/unix_file/ |
D | fd_file.cc | 31 FdFile::FdFile(int fd, bool check_usage) in FdFile() argument 33 fd_(fd), auto_close_(true) { in FdFile() 36 FdFile::FdFile(int fd, const std::string& path, bool check_usage) in FdFile() argument 38 fd_(fd), file_path_(path), auto_close_(true) { in FdFile() 181 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { in ReadIgnoreOffset() argument 183 return read(fd, buf, count); in ReadIgnoreOffset() 187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { in ReadFullyGeneric() argument 190 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, ptr, byte_count, offset)); in ReadFullyGeneric()
|
D | fd_file.h | 38 explicit FdFile(int fd, bool checkUsage); 39 explicit FdFile(int fd, const std::string& path, bool checkUsage);
|
/art/compiler/utils/mips64/ |
D | assembler_mips64.h | 160 void AddS(FpuRegister fd, FpuRegister fs, FpuRegister ft); 161 void SubS(FpuRegister fd, FpuRegister fs, FpuRegister ft); 162 void MulS(FpuRegister fd, FpuRegister fs, FpuRegister ft); 163 void DivS(FpuRegister fd, FpuRegister fs, FpuRegister ft); 164 void AddD(FpuRegister fd, FpuRegister fs, FpuRegister ft); 165 void SubD(FpuRegister fd, FpuRegister fs, FpuRegister ft); 166 void MulD(FpuRegister fd, FpuRegister fs, FpuRegister ft); 167 void DivD(FpuRegister fd, FpuRegister fs, FpuRegister ft); 168 void MovS(FpuRegister fd, FpuRegister fs); 169 void MovD(FpuRegister fd, FpuRegister fs); [all …]
|
D | assembler_mips64.cc | 71 void Mips64Assembler::EmitFR(int opcode, int fmt, FpuRegister ft, FpuRegister fs, FpuRegister fd, in EmitFR() argument 75 CHECK_NE(fd, kNoFpuRegister); in EmitFR() 80 static_cast<uint32_t>(fd) << kFdShift | in EmitFR() 514 void Mips64Assembler::AddS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { in AddS() argument 515 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); in AddS() 518 void Mips64Assembler::SubS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { in SubS() argument 519 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); in SubS() 522 void Mips64Assembler::MulS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { in MulS() argument 523 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); in MulS() 526 void Mips64Assembler::DivS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { in DivS() argument [all …]
|
/art/compiler/utils/mips/ |
D | assembler_mips.h | 109 void AddS(FRegister fd, FRegister fs, FRegister ft); 110 void SubS(FRegister fd, FRegister fs, FRegister ft); 111 void MulS(FRegister fd, FRegister fs, FRegister ft); 112 void DivS(FRegister fd, FRegister fs, FRegister ft); 113 void AddD(DRegister fd, DRegister fs, DRegister ft); 114 void SubD(DRegister fd, DRegister fs, DRegister ft); 115 void MulD(DRegister fd, DRegister fs, DRegister ft); 116 void DivD(DRegister fd, DRegister fs, DRegister ft); 117 void MovS(FRegister fd, FRegister fs); 118 void MovD(DRegister fd, DRegister fs); [all …]
|
D | assembler_mips.cc | 71 void MipsAssembler::EmitFR(int opcode, int fmt, FRegister ft, FRegister fs, FRegister fd, int funct… in EmitFR() argument 74 CHECK_NE(fd, kNoFRegister); in EmitFR() 79 static_cast<int32_t>(fd) << kFdShift | in EmitFR() 345 void MipsAssembler::AddS(FRegister fd, FRegister fs, FRegister ft) { in AddS() argument 346 EmitFR(0x11, 0x10, ft, fs, fd, 0x0); in AddS() 349 void MipsAssembler::SubS(FRegister fd, FRegister fs, FRegister ft) { in SubS() argument 350 EmitFR(0x11, 0x10, ft, fs, fd, 0x1); in SubS() 353 void MipsAssembler::MulS(FRegister fd, FRegister fs, FRegister ft) { in MulS() argument 354 EmitFR(0x11, 0x10, ft, fs, fd, 0x2); in MulS() 357 void MipsAssembler::DivS(FRegister fd, FRegister fs, FRegister ft) { in DivS() argument [all …]
|
/art/compiler/utils/ |
D | swap_space_test.cc | 36 int fd = scratch.GetFd(); in SwapTest() local 39 SwapSpace pool(fd, 1 * MB); in SwapTest()
|
D | swap_space.cc | 66 SwapSpace::SwapSpace(int fd, size_t initial_size) in SwapSpace() argument 67 : fd_(fd), in SwapSpace()
|
D | swap_space.h | 61 SwapSpace(int fd, size_t initial_size);
|
/art/runtime/hprof/ |
D | hprof.h | 24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
|
D | hprof.cc | 411 Hprof(const char* output_filename, int fd, bool direct_to_ddms) in Hprof() argument 413 fd_(fd), in Hprof() 1215 void DumpHeap(const char* filename, int fd, bool direct_to_ddms) { in DumpHeap() argument 1226 Hprof hprof(filename, fd, direct_to_ddms); in DumpHeap()
|
/art/runtime/native/ |
D | dalvik_system_VMDebug.cc | 99 int fd = dup(originalFd); in VMDebug_startMethodTracingFd() local 100 if (fd < 0) { in VMDebug_startMethodTracingFd() 111 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, Trace::TraceOutputMode::kFile, in VMDebug_startMethodTracingFd() 222 int fd = -1; in VMDebug_dumpHprofData() local 224 fd = jniGetFDFromFileDescriptor(env, javaFd); in VMDebug_dumpHprofData() 225 if (fd < 0) { in VMDebug_dumpHprofData() 232 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData()
|