Searched refs:fd (Results 1 - 25 of 39) sorted by relevance

12

/art/runtime/hprof/
H A Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
/art/runtime/base/
H A Dfile_magic.cc31 ScopedFd fd(open(filename, O_RDONLY, 0));
32 if (fd.get() == -1) {
36 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic)));
41 if (lseek(fd.get(), 0, SEEK_SET) != 0) {
46 return fd;
/art/runtime/
H A Dzip_archive.cc77 static void SetCloseOnExec(int fd) { argument
79 int flags = fcntl(fd, F_GETFD);
81 PLOG(WARNING) << "fcntl(" << fd << ", F_GETFD) failed";
84 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
86 PLOG(WARNING) << "fcntl(" << fd << ", F_SETFD, " << flags << ") failed";
106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { argument
108 DCHECK_GT(fd, 0);
111 const int32_t error = OpenArchiveFd(fd, filename, &handle);
H A Dzip_archive_test.cc52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); local
53 ASSERT_NE(-1, fd);
57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize));
H A Dmonitor_android.cc60 int fd = open("/proc/self/cmdline", O_RDONLY);
63 read(fd, procName, sizeof(procName) - 1);
64 close(fd);
H A Dmem_map.h86 int fd,
95 fd,
115 int fd,
216 int fd,
83 MapFile(size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, const char* filename, std::string* error_msg) argument
H A Dsignal_catcher.cc109 int fd = open(stack_trace_file_.c_str(), O_APPEND | O_CREAT | O_WRONLY, 0666); local
110 if (fd == -1) {
114 std::unique_ptr<File> file(new File(fd, stack_trace_file_, true));
H A Dmem_map.cc263 int fd,
265 void* actual = mmap(ptr, page_aligned_byte_count, prot, flags, fd, offset);
304 ScopedFd fd(-1);
322 fd.reset(ashmem_create_region(debug_friendly_name.c_str(), page_aligned_byte_count));
323 if (fd.get() == -1) {
337 fd.get(),
352 fd.get(),
377 int fd,
425 fd,
438 page_aligned_expected, page_aligned_byte_count, prot, flags, fd,
259 TryMemMapLow4GB(void* ptr, size_t page_aligned_byte_count, int prot, int flags, int fd, off_t offset) argument
373 MapFileAtAddress(uint8_t* expected_ptr, size_t byte_count, int prot, int flags, int fd, off_t start, bool low_4gb, bool reuse, const char* filename, std::string* error_msg) argument
770 MapInternal(void* addr, size_t length, int prot, int flags, int fd, off_t offset, bool low_4gb) argument
[all...]
H A Dzip_archive.h62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
H A Dprofiler.cc274 int fd = open(full_name.c_str(), O_RDWR); local
275 if (fd < 0) {
283 int err = flock(fd, LOCK_EX);
290 profile_table_.ReadPrevious(fd, options_.GetProfileType());
293 lseek(fd, 0, SEEK_SET);
303 int n = ::write(fd, p, length);
309 if (ftruncate(fd, full_length) == -1) {
314 err = flock(fd, LOCK_UN);
320 ::close(fd);
727 static bool ReadProfileLine(int fd, st argument
743 ReadPrevious(int fd, ProfileDataType type) argument
[all...]
/art/runtime/jdwp/
H A Djdwp_adb.cc130 * Receive a file descriptor from ADB. The fd can be used to communicate
309 int fd; local
314 fd = control_sock_;
315 if (fd >= 0) {
316 FD_SET(fd, &readfds);
317 if (maxfd < fd) {
318 maxfd = fd;
321 fd = clientSock;
322 if (fd >= 0) {
323 FD_SET(fd,
[all...]
H A Djdwp_socket.cc199 static int SetNoDelay(int fd) { argument
201 int cc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on));
387 int fd; local
392 fd = listenSock;
393 if (fd >= 0) {
394 FD_SET(fd, &readfds);
395 if (maxfd < fd) {
396 maxfd = fd;
399 fd = clientSock;
400 if (fd >
[all...]
/art/compiler/utils/mips64/
H A Dassembler_mips64.h236 void AddS(FpuRegister fd, FpuRegister fs, FpuRegister ft);
237 void SubS(FpuRegister fd, FpuRegister fs, FpuRegister ft);
238 void MulS(FpuRegister fd, FpuRegister fs, FpuRegister ft);
239 void DivS(FpuRegister fd, FpuRegister fs, FpuRegister ft);
240 void AddD(FpuRegister fd, FpuRegister fs, FpuRegister ft);
241 void SubD(FpuRegister fd, FpuRegister fs, FpuRegister ft);
242 void MulD(FpuRegister fd, FpuRegister fs, FpuRegister ft);
243 void DivD(FpuRegister fd, FpuRegister fs, FpuRegister ft);
244 void SqrtS(FpuRegister fd, FpuRegister fs);
245 void SqrtD(FpuRegister fd, FpuRegiste
[all...]
H A Dassembler_mips64.cc156 void Mips64Assembler::EmitFR(int opcode, int fmt, FpuRegister ft, FpuRegister fs, FpuRegister fd, argument
160 CHECK_NE(fd, kNoFpuRegister);
165 static_cast<uint32_t>(fd) << kFdShift |
701 void Mips64Assembler::AddS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument
702 EmitFR(0x11, 0x10, ft, fs, fd, 0x0);
705 void Mips64Assembler::SubS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument
706 EmitFR(0x11, 0x10, ft, fs, fd, 0x1);
709 void Mips64Assembler::MulS(FpuRegister fd, FpuRegister fs, FpuRegister ft) { argument
710 EmitFR(0x11, 0x10, ft, fs, fd, 0x2);
713 void Mips64Assembler::DivS(FpuRegister fd, FpuRegiste argument
717 AddD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
721 SubD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
725 MulD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
729 DivD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
733 SqrtS(FpuRegister fd, FpuRegister fs) argument
737 SqrtD(FpuRegister fd, FpuRegister fs) argument
741 AbsS(FpuRegister fd, FpuRegister fs) argument
745 AbsD(FpuRegister fd, FpuRegister fs) argument
749 MovS(FpuRegister fd, FpuRegister fs) argument
753 MovD(FpuRegister fd, FpuRegister fs) argument
757 NegS(FpuRegister fd, FpuRegister fs) argument
761 NegD(FpuRegister fd, FpuRegister fs) argument
765 RoundLS(FpuRegister fd, FpuRegister fs) argument
769 RoundLD(FpuRegister fd, FpuRegister fs) argument
773 RoundWS(FpuRegister fd, FpuRegister fs) argument
777 RoundWD(FpuRegister fd, FpuRegister fs) argument
781 TruncLS(FpuRegister fd, FpuRegister fs) argument
785 TruncLD(FpuRegister fd, FpuRegister fs) argument
789 TruncWS(FpuRegister fd, FpuRegister fs) argument
793 TruncWD(FpuRegister fd, FpuRegister fs) argument
797 CeilLS(FpuRegister fd, FpuRegister fs) argument
801 CeilLD(FpuRegister fd, FpuRegister fs) argument
805 CeilWS(FpuRegister fd, FpuRegister fs) argument
809 CeilWD(FpuRegister fd, FpuRegister fs) argument
813 FloorLS(FpuRegister fd, FpuRegister fs) argument
817 FloorLD(FpuRegister fd, FpuRegister fs) argument
821 FloorWS(FpuRegister fd, FpuRegister fs) argument
825 FloorWD(FpuRegister fd, FpuRegister fs) argument
829 SelS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
833 SelD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
837 RintS(FpuRegister fd, FpuRegister fs) argument
841 RintD(FpuRegister fd, FpuRegister fs) argument
845 ClassS(FpuRegister fd, FpuRegister fs) argument
849 ClassD(FpuRegister fd, FpuRegister fs) argument
853 MinS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
857 MinD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
861 MaxS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
865 MaxD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
869 CmpUnS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
873 CmpEqS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
877 CmpUeqS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
881 CmpLtS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
885 CmpUltS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
889 CmpLeS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
893 CmpUleS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
897 CmpOrS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
901 CmpUneS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
905 CmpNeS(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
909 CmpUnD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
913 CmpEqD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
917 CmpUeqD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
921 CmpLtD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
925 CmpUltD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
929 CmpLeD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
933 CmpUleD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
937 CmpOrD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
941 CmpUneD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
945 CmpNeD(FpuRegister fd, FpuRegister fs, FpuRegister ft) argument
949 Cvtsw(FpuRegister fd, FpuRegister fs) argument
953 Cvtdw(FpuRegister fd, FpuRegister fs) argument
957 Cvtsd(FpuRegister fd, FpuRegister fs) argument
961 Cvtds(FpuRegister fd, FpuRegister fs) argument
965 Cvtsl(FpuRegister fd, FpuRegister fs) argument
969 Cvtdl(FpuRegister fd, FpuRegister fs) argument
[all...]
/art/runtime/openjdkjvm/
H A DOpenjdkJvm.cc77 int fd = TEMP_FAILURE_RETRY(open(fname, flags & ~JVM_O_DELETE, mode)); local
78 if (fd < 0) {
93 return fd;
97 JNIEXPORT jint JVM_Close(jint fd) { argument
99 return close(fd);
103 JNIEXPORT jint JVM_Read(jint fd, char* buf, jint nbytes) { argument
104 return TEMP_FAILURE_RETRY(read(fd, buf, nbytes));
108 JNIEXPORT jint JVM_Write(jint fd, char* buf, jint nbytes) { argument
109 return TEMP_FAILURE_RETRY(write(fd, buf, nbytes));
113 JNIEXPORT jlong JVM_Lseek(jint fd, jlon argument
198 JVM_Sync(jint fd) argument
236 JVM_SetSockOpt(jint fd, int level, int optname, const char* optval, int optlen) argument
241 JVM_SocketShutdown(jint fd, jint howto) argument
245 JVM_GetSockOpt(jint fd, int level, int optname, char* optval, int* optlen) argument
253 JVM_GetSockName(jint fd, struct sockaddr* addr, int* addrlen) argument
260 JVM_SocketAvailable(jint fd, jint* result) argument
268 JVM_Send(jint fd, char* buf, jint nBytes, jint flags) argument
272 JVM_SocketClose(jint fd) argument
277 JVM_Listen(jint fd, jint count) argument
281 JVM_Connect(jint fd, struct sockaddr* addr, jint addrlen) argument
[all...]
/art/runtime/jit/
H A Doffline_profiling_info.cc87 int fd = flock.GetFile()->Fd(); local
91 ProfileLoadSatus status = fileInfo.LoadInternal(fd, &error);
127 bool result = Save(fd);
141 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { argument
143 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count));
179 bool ProfileCompilationInfo::Save(int fd) { argument
181 DCHECK_GE(fd, 0);
187 WriteBuffer(fd, kProfileMagic, sizeof(kProfileMagic));
188 WriteBuffer(fd, kProfileVersion, sizeof(kProfileVersion));
193 if (!WriteBuffer(fd, buffe
314 testEOF(int fd) argument
343 FillFromFd( int fd, const std::string& source, std::string* error) argument
364 ReadProfileHeader( int fd, uint16_t* number_of_lines, std::string* error) argument
393 ReadProfileLineHeader( int fd, ProfileLineHeader* line_header, std::string* error) argument
423 ReadProfileLine( int fd, const ProfileLineHeader& line_header, std::string* error) argument
459 Load(int fd) argument
471 LoadInternal( int fd, std::string* error) argument
[all...]
H A Doffline_profiling_info.h48 bool Load(int fd);
52 bool Save(int fd);
134 ProfileLoadSatus FillFromFd(int fd,
155 ProfileLoadSatus LoadInternal(int fd, std::string* error);
157 ProfileLoadSatus ReadProfileHeader(int fd,
161 ProfileLoadSatus ReadProfileLineHeader(int fd,
164 ProfileLoadSatus ReadProfileLine(int fd,
/art/compiler/utils/mips/
H A Dassembler_mips.h245 void AddS(FRegister fd, FRegister fs, FRegister ft);
246 void SubS(FRegister fd, FRegister fs, FRegister ft);
247 void MulS(FRegister fd, FRegister fs, FRegister ft);
248 void DivS(FRegister fd, FRegister fs, FRegister ft);
249 void AddD(FRegister fd, FRegister fs, FRegister ft);
250 void SubD(FRegister fd, FRegister fs, FRegister ft);
251 void MulD(FRegister fd, FRegister fs, FRegister ft);
252 void DivD(FRegister fd, FRegister fs, FRegister ft);
253 void SqrtS(FRegister fd, FRegister fs);
254 void SqrtD(FRegister fd, FRegiste
[all...]
H A Dassembler_mips.cc163 void MipsAssembler::EmitFR(int opcode, int fmt, FRegister ft, FRegister fs, FRegister fd, argument
167 CHECK_NE(fd, kNoFRegister);
172 static_cast<uint32_t>(fd) << kFdShift |
844 void MipsAssembler::AddS(FRegister fd, FRegister fs, FRegister ft) { argument
845 EmitFR(0x11, 0x10, ft, fs, fd, 0x0);
848 void MipsAssembler::SubS(FRegister fd, FRegister fs, FRegister ft) { argument
849 EmitFR(0x11, 0x10, ft, fs, fd, 0x1);
852 void MipsAssembler::MulS(FRegister fd, FRegister fs, FRegister ft) { argument
853 EmitFR(0x11, 0x10, ft, fs, fd, 0x2);
856 void MipsAssembler::DivS(FRegister fd, FRegiste argument
860 AddD(FRegister fd, FRegister fs, FRegister ft) argument
864 SubD(FRegister fd, FRegister fs, FRegister ft) argument
868 MulD(FRegister fd, FRegister fs, FRegister ft) argument
872 DivD(FRegister fd, FRegister fs, FRegister ft) argument
876 SqrtS(FRegister fd, FRegister fs) argument
880 SqrtD(FRegister fd, FRegister fs) argument
884 AbsS(FRegister fd, FRegister fs) argument
888 AbsD(FRegister fd, FRegister fs) argument
892 MovS(FRegister fd, FRegister fs) argument
896 MovD(FRegister fd, FRegister fs) argument
900 NegS(FRegister fd, FRegister fs) argument
904 NegD(FRegister fd, FRegister fs) argument
1048 CmpUnS(FRegister fd, FRegister fs, FRegister ft) argument
1053 CmpEqS(FRegister fd, FRegister fs, FRegister ft) argument
1058 CmpUeqS(FRegister fd, FRegister fs, FRegister ft) argument
1063 CmpLtS(FRegister fd, FRegister fs, FRegister ft) argument
1068 CmpUltS(FRegister fd, FRegister fs, FRegister ft) argument
1073 CmpLeS(FRegister fd, FRegister fs, FRegister ft) argument
1078 CmpUleS(FRegister fd, FRegister fs, FRegister ft) argument
1083 CmpOrS(FRegister fd, FRegister fs, FRegister ft) argument
1088 CmpUneS(FRegister fd, FRegister fs, FRegister ft) argument
1093 CmpNeS(FRegister fd, FRegister fs, FRegister ft) argument
1098 CmpUnD(FRegister fd, FRegister fs, FRegister ft) argument
1103 CmpEqD(FRegister fd, FRegister fs, FRegister ft) argument
1108 CmpUeqD(FRegister fd, FRegister fs, FRegister ft) argument
1113 CmpLtD(FRegister fd, FRegister fs, FRegister ft) argument
1118 CmpUltD(FRegister fd, FRegister fs, FRegister ft) argument
1123 CmpLeD(FRegister fd, FRegister fs, FRegister ft) argument
1128 CmpUleD(FRegister fd, FRegister fs, FRegister ft) argument
1133 CmpOrD(FRegister fd, FRegister fs, FRegister ft) argument
1138 CmpUneD(FRegister fd, FRegister fs, FRegister ft) argument
1143 CmpNeD(FRegister fd, FRegister fs, FRegister ft) argument
1160 MovfS(FRegister fd, FRegister fs, int cc) argument
1166 MovfD(FRegister fd, FRegister fs, int cc) argument
1172 MovtS(FRegister fd, FRegister fs, int cc) argument
1178 MovtD(FRegister fd, FRegister fs, int cc) argument
1184 SelS(FRegister fd, FRegister fs, FRegister ft) argument
1189 SelD(FRegister fd, FRegister fs, FRegister ft) argument
1194 ClassS(FRegister fd, FRegister fs) argument
1199 ClassD(FRegister fd, FRegister fs) argument
1204 MinS(FRegister fd, FRegister fs, FRegister ft) argument
1209 MinD(FRegister fd, FRegister fs, FRegister ft) argument
1214 MaxS(FRegister fd, FRegister fs, FRegister ft) argument
1219 MaxD(FRegister fd, FRegister fs, FRegister ft) argument
1224 TruncLS(FRegister fd, FRegister fs) argument
1228 TruncLD(FRegister fd, FRegister fs) argument
1232 TruncWS(FRegister fd, FRegister fs) argument
1236 TruncWD(FRegister fd, FRegister fs) argument
1240 Cvtsw(FRegister fd, FRegister fs) argument
1244 Cvtdw(FRegister fd, FRegister fs) argument
1248 Cvtsd(FRegister fd, FRegister fs) argument
1252 Cvtds(FRegister fd, FRegister fs) argument
1256 Cvtsl(FRegister fd, FRegister fs) argument
1260 Cvtdl(FRegister fd, FRegister fs) argument
1264 FloorWS(FRegister fd, FRegister fs) argument
1268 FloorWD(FRegister fd, FRegister fs) argument
[all...]
/art/profman/
H A Dprofman.cc55 static bool FdIsValid(int fd) { argument
56 return fd != kInvalidFd;
84 UsageError(" --dump-output-to-fd=<number>: redirects --dump-info-for output to a file");
91 UsageError(" --profile-file-fd=<number>: same as --profile-file but accepts a file descriptor.");
96 UsageError(" all the files specified with --profile-file or --profile-file-fd.");
100 UsageError(" --reference-profile-file-fd=<number>: same as --reference-profile-file but");
105 UsageError(" apk-fd to find dex files");
107 UsageError(" --apk-fd=<number>: file descriptor containing an open APK to");
148 } else if (option.starts_with("--dump-output-to-fd=")) {
149 ParseUintOption(option, "--dump-output-to-fd",
206 DumpOneProfile(const std::string& banner, const std::string& filename, int fd, const std::vector<const DexFile*>* dex_files, std::string* dump) argument
217 std::cerr << "Cannot load profile info from fd=" << fd << "\\n"; local
322 int fd; local
[all...]
H A Dprofile_assistant.cc76 static bool InitFlock(int fd, ScopedFlock& flock, std::string* error) { argument
77 DCHECK_GE(fd, 0);
79 File file(fd, false);
/art/compiler/utils/
H A Dswap_space_test.cc36 int fd = scratch.GetFd(); local
39 SwapSpace pool(fd, 1 * MB);
/art/runtime/base/unix_file/
H A Dfd_file.cc42 FdFile::FdFile(int fd, bool check_usage) argument
44 fd_(fd), auto_close_(true), read_only_mode_(false) {
47 FdFile::FdFile(int fd, const std::string& path, bool check_usage) argument
48 : FdFile(fd, path, check_usage, false) {
51 FdFile::FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) argument
53 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) {
207 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { argument
209 return read(fd, buf, count);
213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument
216 ssize_t bytes_read = TEMP_FAILURE_RETRY(read_func(fd, pt
[all...]
H A Dfd_file.h38 FdFile(int fd, bool checkUsage);
39 FdFile(int fd, const std::string& path, bool checkUsage);
40 FdFile(int fd, const std::string& path, bool checkUsage, bool read_only_mode);
/art/runtime/native/
H A Ddalvik_system_VMDebug.cc99 int fd = dup(originalFd); local
100 if (fd < 0) {
111 Trace::Start(traceFilename.c_str(), fd, bufferSize, flags, Trace::TraceOutputMode::kFile,
198 * static void dumpHprofData(String fileName, FileDescriptor fd)
207 ThrowNullPointerException("fileName == null && fd == null");
219 filename = "[fd]";
222 int fd = -1; local
224 fd = jniGetFDFromFileDescriptor(env, javaFd);
225 if (fd < 0) {
232 hprof::DumpHeap(filename.c_str(), fd, fals
[all...]

Completed in 394 milliseconds

12