Home
last modified time | relevance | path

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

12

/external/valgrind/coregrind/
Dm_libcfile.c185 return sr_Res (sr); in VG_()
214 ret = (Int)(Word)sr_Res(res); in VG_()
234 ret = (Int)(Word)sr_Res(res); in VG_()
247 fd[0] = (Int)sr_Res(res); in VG_()
263 fd[0] = (Int)sr_Res(res); in VG_()
274 fd[0] = (Int)sr_Res(res); in VG_()
296 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
301 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
305 return sr_isError(res) ? (-1) : ((ULong)sr_ResHI(res) << 32 | sr_Res(res)); in VG_()
309 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
[all …]
Dm_libcproc.c354 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
358 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
533 return sr_Res(res); in VG_()
606 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
623 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
633 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
648 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
660 if (sr_isError(res) && sr_Res(res) == VKI_ENOSYS) { in VG_()
684 if (!sr_isError(res) && sr_Res(res) > 0) { in VG_()
686 pid[sr_Res(res)] = '\0'; 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_libcsignal.c422 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
527 sr_isError(sr) ? sr_Err(sr) : sr_Res(sr)); in VG_()
550 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
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_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.c1050 tmp_log_fd = sr_Res(sres); in main_process_cmd_line_options()
1109 tmp_xml_fd = sr_Res(sres); in main_process_cmd_line_options()
1448 Int n, fdno = sr_Res(fd); in print_preamble()
/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.c139 fd = sr_Res(res); in open_dylinker()
421 *out_stack_start = (vki_uint8_t*)sr_Res(res); in handle_lcmain()
523 if (sr_isError(res) || sr_Res(res) != sizeof(mh)) { in load_thin_file()
735 if (sr_isError(res) || sr_Res(res) != sizeof(fh)) { in load_fat_file()
752 if (sr_isError(res) || sr_Res(res) != sizeof(arch)) { in load_fat_file()
797 if (sr_isError(res) || sr_Res(res) != sizeof(magic)) { in load_mach_file()
Delf.c106 if (sr_isError(sres) || sr_Res(sres) != sizeof(e->e)) { in readelf()
145 if (sr_isError(sres) || sr_Res(sres) != phsz) { in readelf()
409 intfd = sr_Res(sres); in VG_()
Dscript.c89 len = sr_Res(res); in VG_()
/external/valgrind/include/
Dpub_tool_basics.h223 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
262 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
289 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
339 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
/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()
404 shared_mem_fd = sr_Res(o); in remote_open()
421 addr_shared = sr_Res (res); in remote_open()
569 || (sr_Res(ret) && poll_cond(remote_desc_pollfdread_activity.revents))) { in remote_desc_activity()
579 retval = sr_Res(ret); in remote_desc_activity()
959 if (sr_isError(ret) || sr_Res(ret) != 1) { in readchar()
963 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_()
278 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
303 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
315 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
444 stack = (VgStack*)(Addr)sr_Res(sres); in VG_()
Daspacemgr-linux.c2384 if (sr_Res(sres) != start) { in VG_()
2388 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2453 if (sr_Res(sres) != start) { in VG_()
2457 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2511 if (sr_Res(sres) != advised) { in VG_()
2515 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2608 if (sr_Res(sres) != advised) { in VG_()
2612 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2620 seg.start = sr_Res(sres); in VG_()
2636 return sr_isError(sres) ? NULL : (void*)sr_Res(sres); in VG_()
[all …]
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c902 while ((ret = VG_(getdents64)(sr_Res(f), &d, sizeof(d))) != 0) { in VG_()
910 if (fno != sr_Res(f)) in VG_()
920 VG_(lseek)(sr_Res(f), d.d_off, VKI_SEEK_SET); in VG_()
924 VG_(close)(sr_Res(f)); in VG_()
940 while ((ret = VG_(getdents64)(sr_Res(f), (struct vki_dirent64 *) buf, in VG_()
950 if (fno != sr_Res(f)) in VG_()
965 VG_(close)(sr_Res(f)); in VG_()
1472 if (!ML_(fd_allowed)(sr_Res(res), "socket", tid, True)) { in ML_()
1473 VG_(close)(sr_Res(res)); in ML_()
1477 ML_(record_fd_open_nameless)(tid, sr_Res(res)); in ML_()
[all …]
Dsyswrap-main.c1143 gst->guest_EAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1157 gst->guest_RAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1173 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1191 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1207 gst->guest_R0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1221 gst->guest_X0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1298 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1308 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1326 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1345 gst->guest_r0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
[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()
/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.c1003 actual_fd = sr_Res(fd); in VG_()
1020 if (sr_Res(preadres) == 0) in VG_()
1022 vg_assert(sr_Res(preadres) > 0 && sr_Res(preadres) <= sizeof(buf1k) ); in VG_()
1026 if (!ML_(is_elf_object_file)( buf1k, (SizeT)sr_Res(preadres), False )) in VG_()
1029 if (!ML_(is_macho_object_file)( buf1k, (SizeT)sr_Res(preadres) )) in VG_()
1369 fd_pdbimage = sr_Res(sres); in VG_()
1386 void* pdbimage = (void*)sr_Res(sres); in VG_()
/external/valgrind/coregrind/m_coredump/
Dcoredump-solaris.c137 return sr_Res(VG_(do_syscall0)(SYS_getuid)); in get_uid()
142 return sr_Res(VG_(do_syscall0)(SYS_getgid)); in get_gid()
163 return sr_Res(sres); in get_zoneid()
902 core_fd = sr_Res(sres); in VG_()
/external/valgrind/coregrind/m_initimg/
Dinitimg-linux.c98 VG_(cl_exec_fd) = sr_Res(res); in load_client()
902 vg_assert(sr_Res(sres) == anon_start); in setup_client_dataseg()
Dinitimg-darwin.c85 VG_(cl_exec_fd) = sr_Res(res); in load_client()
Dinitimg-solaris.c105 VG_(cl_exec_fd) = sr_Res(res); in load_client()

12