Home
last modified time | relevance | path

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

12

/external/valgrind/main/coregrind/
Dm_libcproc.c284 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
288 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
403 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
413 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
428 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
440 if (sr_isError(res) && sr_Res(res) == VKI_ENOSYS) { in VG_()
458 if (!sr_isError(res) && sr_Res(res) > 0) { in VG_()
460 pid[sr_Res(res)] = '\0'; in VG_()
470 return sr_Res(res); in VG_()
486 return sr_Res( VG_(do_syscall0)(__NR_getpid) ); in VG_()
[all …]
Dm_libcfile.c139 return sr_Res (sr); in VG_()
168 ret = (Int)(Word)sr_Res(res); in VG_()
188 ret = (Int)(Word)sr_Res(res); in VG_()
204 fd[0] = (Int)sr_Res(res); in VG_()
225 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
230 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
241 return sr_isError(res) ? (-1) : sr_Res(res); in VG_()
375 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
461 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
470 return sr_isError(res) ? -1 : sr_Res(res); in VG_()
[all …]
Dm_commandline.c68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc()
75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc()
86 VG_(close)(sr_Res(fd)); in read_dot_valgrindrc()
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_mallocfree.c729 memfs_fd = sr_Res(sres); in MemfsOpen()
762 char *mem = (char*)sr_Res(sres); in MemfsAlloc()
770 VG_(printf)("... ok; res=%p\n", (void*)sr_Res(sres)); in MemfsAlloc()
827 sb = (Superblock*)(AddrH)sr_Res(sres); in newSuperblock()
849 sb = (Superblock*)(AddrH)sr_Res(sres); in newSuperblock()
1580 array = (Superblock**)(AddrH)sr_Res(sres); in VG_()
Dm_transtab.c780 sec->tc = (ULong*)(AddrH)sr_Res(sres); in initialiseSector()
789 sec->tt = (TTEntry*)(AddrH)sr_Res(sres); in initialiseSector()
1415 unredir_tc = (ULong *)(AddrH)sr_Res(sres); in init_unredir_tt_tc()
/external/valgrind/main/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.c125 fd = sr_Res(res); in open_dylinker()
458 if (sr_isError(res) || sr_Res(res) != sizeof(mh)) { in load_thin_file()
650 if (sr_isError(res) || sr_Res(res) != sizeof(fh)) { in load_fat_file()
667 if (sr_isError(res) || sr_Res(res) != sizeof(arch)) { in load_fat_file()
712 if (sr_isError(res) || sr_Res(res) != sizeof(magic)) { in load_mach_file()
Delf.c103 if (sr_isError(sres) || sr_Res(sres) != sizeof(e->e)) { in readelf()
143 if (sr_isError(sres) || sr_Res(sres) != phsz) { in readelf()
380 intfd = sr_Res(sres);
Dscript.c96 len = sr_Res(res); in VG_()
/external/valgrind/main/coregrind/m_aspacemgr/
Daspacemgr-common.c100 return sr_Res(sres); in ML_()
252 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
264 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
276 return sr_isError(res) ? -1 : sr_Res(res); in ML_()
369 stack = (VgStack*)(AddrH)sr_Res(sres); in VG_()
Daspacemgr-linux.c2275 if (sr_Res(sres) != start) { in VG_()
2279 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2344 if (sr_Res(sres) != start) { in VG_()
2348 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2402 if (sr_Res(sres) != advised) { in VG_()
2406 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2499 if (sr_Res(sres) != advised) { in VG_()
2503 (void)ML_(am_do_munmap_NO_NOTIFY)( sr_Res(sres), length ); in VG_()
2511 seg.start = sr_Res(sres); in VG_()
2527 return sr_isError(sres) ? NULL : (void*)sr_Res(sres); in VG_()
[all …]
/external/valgrind/main/include/
Dpub_tool_basics.h197 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
222 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() function
/external/valgrind/main/coregrind/m_debuginfo/
Dreadelf.c1023 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) { in open_debug_file()
1024 VG_(close)(sr_Res(fd)); in open_debug_file()
1034 ( *size, VKI_PROT_READ, sr_Res(fd), 0 ); in open_debug_file()
1036 VG_(close)(sr_Res(fd)); in open_debug_file()
1042 Char* debug_buildid = find_buildid(sr_Res(sres), *size); in open_debug_file()
1044 SysRes res = VG_(am_munmap_valgrind)(sr_Res(sres), *size); in open_debug_file()
1058 calccrc = calc_gnu_debuglink_crc32(0, (UChar*)sr_Res(sres), *size); in open_debug_file()
1060 SysRes res = VG_(am_munmap_valgrind)(sr_Res(sres), *size); in open_debug_file()
1072 return sr_Res(sres); in open_debug_file()
1124 if (VG_(fstat)(sr_Res(fd), &stat_buf) != 0) { in find_ad_hoc_debug_image()
[all …]
Dreadmacho.c182 ( size, VKI_PROT_READ, sr_Res(fd), 0 ); in map_image_aboard()
188 VG_(close)(sr_Res(fd)); in map_image_aboard()
190 ii->img = (UChar*)sr_Res(sres); in map_image_aboard()
Ddebuginfo.c842 actual_fd = sr_Res(fd); in VG_()
859 if (sr_Res(preadres) == 0) in VG_()
861 vg_assert(sr_Res(preadres) > 0 && sr_Res(preadres) <= sizeof(buf1k) ); in VG_()
865 if (!ML_(is_elf_object_file)( buf1k, (SizeT)sr_Res(preadres) )) in VG_()
868 if (!ML_(is_macho_object_file)( buf1k, (SizeT)sr_Res(preadres) )) in VG_()
1195 fd_pdbimage = sr_Res(sres); in VG_()
1212 void* pdbimage = (void*)sr_Res(sres); in VG_()
/external/valgrind/main/coregrind/m_syswrap/
Dsyswrap-main.c824 gst->guest_EAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
838 gst->guest_RAX = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
854 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
872 gst->guest_GPR3 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
888 gst->guest_R0 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
965 gst->guest_r2 = sr_Res(canonical->sres); in putSyscallStatusIntoGuestState()
1407 (ULong)sr_Res(sci->status.sres)); in VG_()
1515 (ULong)sr_Res(sci->status.sres) ); in VG_()
1543 (ULong)sr_Res(sci->status.sres) ); in VG_()
1999 (Long)(sr_isError(sres) ? sr_Err(sres) : sr_Res(sres)) ); in VG_()
Dsyswrap-generic.c795 while ((ret = VG_(getdents)(sr_Res(f), &d, sizeof(d))) != 0) { in VG_()
803 if (fno != sr_Res(f)) in VG_()
813 VG_(lseek)(sr_Res(f), d.d_off, VKI_SEEK_SET); in VG_()
817 VG_(close)(sr_Res(f)); in VG_()
1273 if (!ML_(fd_allowed)(sr_Res(res), "socket", tid, True)) { in ML_()
1274 VG_(close)(sr_Res(res)); in ML_()
1278 ML_(record_fd_open_nameless)(tid, sr_Res(res)); in ML_()
1319 if (!ML_(fd_allowed)(sr_Res(res), "accept", tid, True)) { in ML_()
1320 VG_(close)(sr_Res(res)); in ML_()
1329 ML_(record_fd_open_nameless)(tid, sr_Res(res)); in ML_()
[all …]
/external/valgrind/main/coregrind/m_gdbserver/
Dremote-utils.c72 fd = sr_Res(o); in open_fifo()
130 fd = sr_Res(o); in set_ptracer()
314 shared_mem_fd = sr_Res(o); in remote_open()
331 addr_shared = sr_Res (res); in remote_open()
/external/valgrind/tsan/
Dcommon_util.cc99 ret = sr_Res(sres); in OpenFileReadOnly()
Dts_util.cc460 int fd = sr_Res(sres); in OpenFileWriteStringAndClose()
/external/valgrind/main/callgrind/
Dcommand.c125 fd = (Int) sr_Res(res); in setup_control()
184 else fd = (Int) sr_Res(res); in createRes()
387 fd = (Int) sr_Res(res); in CLG_()
/external/valgrind/main/exp-bbv/
Dbbv_main.c119 pctrace_fd = sr_Res(sres); in dumpPcFile()
160 return sr_Res(sres); in open_tracefile()
/external/valgrind/main/coregrind/m_initimg/
Dinitimg-linux.c99 VG_(cl_exec_fd) = sr_Res(res); in load_client()
851 vg_assert(sr_Res(sres) == anon_start); in setup_client_dataseg()
Dinitimg-darwin.c86 VG_(cl_exec_fd) = sr_Res(res); in load_client()

12