Home
last modified time | relevance | path

Searched refs:sr_Res (Results 1 – 25 of 30) sorted by relevance

12

/external/valgrind/coregrind/
Dm_libcproc.c286 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
290 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
399 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
416 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
426 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
441 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
453 if (sr_isError(res) && sr_Res(res) == VKI_ENOSYS) { in VG_()
477 if (!sr_isError(res) && sr_Res(res) > 0) { in VG_()
479 pid[sr_Res(res)] = '\0'; in VG_()
489 return sr_Res(res); in VG_()
[all …]
Dm_libcfile.c173 return sr_Res (sr); in VG_()
202 ret = (Int)(Word)sr_Res(res); in VG_()
222 ret = (Int)(Word)sr_Res(res); in VG_()
235 fd[0] = (Int)sr_Res(res); in VG_()
251 fd[0] = (Int)sr_Res(res); in VG_()
272 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
277 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
432 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
559 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
568 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
[all …]
Dm_commandline.c71 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc()
77 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc()
88 VG_(close)(sr_Res(fd)); in read_dot_valgrindrc()
Dm_libcprint.c334 fp->fd = sr_Res(res); in VG_()
659 VG_(sprintf)(buf, "Success(0x%lx)", sr_Res(sr)); in VG_()
672 VG_(sprintf)(buf, "Success(0x%lx:0x%lx)", sr_ResHI(sr), sr_Res(sr)); in VG_()
Dm_libcsignal.c359 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
464 sr_isError(sr) ? sr_Err(sr) : sr_Res(sr)); in VG_()
Dm_transtab.c1457 sec->tc = (ULong*)(Addr)sr_Res(sres); in initialiseSector()
1466 sec->tt = (TTEntry*)(Addr)sr_Res(sres); in initialiseSector()
1481 sec->htt = (TTEno*)(Addr)sr_Res(sres); in initialiseSector()
2194 unredir_tc = (ULong *)(Addr)sr_Res(sres); in init_unredir_tt_tc()
Dm_mallocfree.c859 sb = (Superblock*)(Addr)sr_Res(sres); in newSuperblock()
868 sb = (Superblock*)(Addr)sr_Res(sres); in newSuperblock()
1761 array = (Superblock**)(Addr)sr_Res(sres); in VG_()
Dm_main.c1071 tmp_log_fd = sr_Res(sres); in main_process_cmd_line_options()
1130 tmp_xml_fd = sr_Res(sres); in main_process_cmd_line_options()
1469 Int n, fdno = sr_Res(fd); in print_preamble()
Dm_machine.c630 fh = sr_Res(fd); in VG_()
719 fh = sr_Res(fd); in VG_()
/external/valgrind/coregrind/m_ume/
Dmain.c81 fd = sr_Res(res); in VG_()
104 if (sr_isError(res) || sr_Res(res) != bufsz) { in VG_()
108 bufsz = sr_Res(res); in VG_()
147 vg_assert2(sr_Res(res) >= 0 && sr_Res(res) < EXE_HANDLER_COUNT, in VG_()
150 ret = (*exe_handlers[sr_Res(res)].load_fn)(fd, exe, info); in VG_()
163 Int fd = sr_Res(res); in is_hash_bang_file()
179 Int fd = sr_Res(res); in is_binary_file()
Dmacho.c135 fd = sr_Res(res); in open_dylinker()
417 *out_stack_start = (vki_uint8_t*)sr_Res(res); in handle_lcmain()
519 if (sr_isError(res) || sr_Res(res) != sizeof(mh)) { in load_thin_file()
731 if (sr_isError(res) || sr_Res(res) != sizeof(fh)) { in load_fat_file()
748 if (sr_isError(res) || sr_Res(res) != sizeof(arch)) { in load_fat_file()
793 if (sr_isError(res) || sr_Res(res) != sizeof(magic)) { in load_mach_file()
Delf.c101 if (sr_isError(sres) || sr_Res(sres) != sizeof(e->e)) { in readelf()
140 if (sr_isError(sres) || sr_Res(sres) != phsz) { in readelf()
381 intfd = sr_Res(sres); in VG_()
Dscript.c96 len = sr_Res(res); in VG_()
/external/valgrind/coregrind/m_gdbserver/
Dremote-utils.c133 fd = sr_Res(o); in open_fifo()
186 fd = sr_Res(o); in VG_()
233 || (sr_Res(ret) > 0 && poll_cond(write_remote_desc_ok.revents))) { in ensure_write_remote_desc()
401 shared_mem_fd = sr_Res(o); in remote_open()
418 addr_shared = sr_Res (res); in remote_open()
566 || (sr_Res(ret) && poll_cond(remote_desc_pollfdread_activity.revents))) { in remote_desc_activity()
576 retval = sr_Res(ret); in remote_desc_activity()
956 if (sr_isError(ret) || sr_Res(ret) != 1) { in readchar()
960 dlog(0, "readchar: poll got %d, expecting 1\n", (int)sr_Res(ret)); in readchar()
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-common.c93 return sr_Res(sres); in ML_()
261 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
281 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
293 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
391 stack = (VgStack*)(Addr)sr_Res(sres); in VG_()
Daspacemgr-linux.c2203 if (sr_Res(sres) != start) { in VG_()
2207 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2272 if (sr_Res(sres) != start) { in VG_()
2276 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2330 if (sr_Res(sres) != advised) { in VG_()
2334 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2427 if (sr_Res(sres) != advised) { in VG_()
2431 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2439 seg.start = sr_Res(sres); in VG_()
2455 return sr_isError(sres) ? NULL : (void*)sr_Res(sres); in VG_()
[all …]
/external/valgrind/include/
Dpub_tool_basics.h191 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
223 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-main.c972 gst->guest_EAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
986 gst->guest_RAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1002 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1020 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1036 gst->guest_R0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1050 gst->guest_X0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1127 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1137 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1155 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1174 gst->guest_r0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
[all …]
Dsyswrap-generic.c877 while ((ret = VG_(getdents64)(sr_Res(f), &d, sizeof(d))) != 0) { in VG_()
885 if (fno != sr_Res(f)) in VG_()
895 VG_(lseek)(sr_Res(f), d.d_off, VKI_SEEK_SET); in VG_()
899 VG_(close)(sr_Res(f)); in VG_()
1409 if (!ML_(fd_allowed)(sr_Res(res), "socket", tid, True)) { in ML_()
1410 VG_(close)(sr_Res(res)); in ML_()
1414 ML_(record_fd_open_nameless)(tid, sr_Res(res)); in ML_()
1455 if (!ML_(fd_allowed)(sr_Res(res), "accept", tid, True)) { in ML_()
1456 VG_(close)(sr_Res(res)); in ML_()
1465 ML_(record_fd_open_nameless)(tid, sr_Res(res)); in ML_()
[all …]
Dsyswrap-mips32-linux.c479 (Addr)sr_Res(sres), /* addr kernel actually assigned */ in mips_PRE_sys_mmap()
487 di_handle = VG_(di_notify_mmap)( (Addr)sr_Res(sres), in mips_PRE_sys_mmap()
491 (Addr)sr_Res(sres), /* addr kernel actually assigned */ in mips_PRE_sys_mmap()
501 vg_assert(sr_Res(sres) == arg1); in mips_PRE_sys_mmap()
Dpriv_types_n_macros.h331 return sr_Res(st->sres); in getRES()
/external/valgrind/coregrind/m_debuginfo/
Dimage.c619 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) { in ML_()
620 VG_(close)(sr_Res(fd)); in ML_()
628 VG_(close)(sr_Res(fd)); in ML_()
634 img->source.fd = sr_Res(fd); in ML_()
Ddebuginfo.c998 actual_fd = sr_Res(fd); in VG_()
1015 if (sr_Res(preadres) == 0) in VG_()
1017 vg_assert(sr_Res(preadres) > 0 && sr_Res(preadres) <= sizeof(buf1k) ); in VG_()
1021 if (!ML_(is_elf_object_file)( buf1k, (SizeT)sr_Res(preadres), False )) in VG_()
1024 if (!ML_(is_macho_object_file)( buf1k, (SizeT)sr_Res(preadres) )) in VG_()
1364 fd_pdbimage = sr_Res(sres); in VG_()
1381 void* pdbimage = (void*)sr_Res(sres); in VG_()
/external/valgrind/coregrind/m_initimg/
Dinitimg-linux.c98 VG_(cl_exec_fd) = sr_Res(res); in load_client()
896 vg_assert(sr_Res(sres) == anon_start); in setup_client_dataseg()
Dinitimg-darwin.c85 VG_(cl_exec_fd) = sr_Res(res); in load_client()

12