/external/valgrind/drd/ |
drd_error.c | 35 #include "pub_tool_libcfile.h" /* VG_(get_startup_wd)() */ 36 #include "pub_tool_libcprint.h" /* VG_(printf)() */ 38 #include "pub_tool_mallocfree.h" /* VG_(malloc), VG_(free) */ 39 #include "pub_tool_options.h" /* VG_(clo_xml) */ 40 #include "pub_tool_threadstate.h" /* VG_(get_pthread_id)() */ 41 #include "pub_tool_tooliface.h" /* VG_(needs_tool_errors)() */ 63 if (VG_(clo_xml)) { 64 VG_(printf_xml)(" <trace><text>"); 65 VG_(vprintf_xml)(format, vargs) [all...] |
/external/valgrind/coregrind/ |
pub_core_libcfile.h | 43 extern Int VG_(safe_fd) ( Int oldfd ); 44 extern Int VG_(fcntl) ( Int fd, Int cmd, Addr arg ); 47 extern Bool VG_(resolve_filename) ( Int fd, const HChar** buf ); 50 extern Long VG_(fsize) ( Int fd ); 53 extern SysRes VG_(getxattr) ( const HChar* file_name, const HChar* attr_name, 57 extern Bool VG_(is_dir) ( const HChar* f ); 63 extern Int VG_(connect_via_socket)( const HChar* str ); 65 extern UInt VG_(htonl) ( UInt x ); 66 extern UInt VG_(ntohl) ( UInt x ); 67 extern UShort VG_(htons) ( UShort x ) [all...] |
m_tooliface.c | 34 #include "pub_core_transtab.h" /* VG_(ok_to_discard_translations) */ 37 VgToolInterface VG_(tdict); 42 void VG_(basic_tool_funcs)( 50 VG_(tdict).tool_post_clo_init = post_clo_init; 51 VG_(tdict).tool_instrument = instrument; 52 VG_(tdict).tool_fini = fini; 60 VgDetails VG_(details) = { 71 extern void VG_(details_##detail)(type detail) \ 73 VG_(details).detail = detail; \ 87 VgNeeds VG_(needs) = [all...] |
pub_core_translate.h | 34 #include "pub_core_basics.h" // VG_ macro 42 Bool VG_(translate) ( ThreadId tid, 49 extern void VG_(print_translation_stats) ( void );
|
m_aspacehl.c | 43 Addr* VG_(get_segment_starts) ( UInt kind_mask, /*OUT*/Int* n_acquired ) 50 starts = VG_(malloc)( "main.gss.1", n_starts * sizeof(Addr) ); 51 r = VG_(am_get_segment_starts)( kind_mask, starts, n_starts ); 54 VG_(free)(starts);
|
pub_core_coredump.h | 41 extern void VG_(make_coredump) ( ThreadId tid, const vki_siginfo_t *si,
|
m_libcassert.c | 40 #include "pub_core_libcproc.h" // For VG_(gettid)() 45 #include "pub_core_tooliface.h" // For VG_(details).{name,bug_reports_to} 46 #include "pub_core_options.h" // For VG_(clo_xml) 265 if (status != 0 && VG_(gdbserver_stop_at) (VgdbStopAt_ValgrindAbExit)) { 266 if (VG_(gdbserver_init_done)()) { 267 VG_(umsg)("(action at valgrind abnormal exit) vgdb me ... \n"); 268 VG_(gdbserver) (atid); 270 VG_(umsg)("(action at valgrind abnormal exit) " 274 if (VG_(gdbserver_init_done)()) { 277 VG_(gdbserver_exit) (atid [all...] |
pub_core_transtab.h | 54 FastCacheEntry VG_(tt_fast) [VG_TT_FAST_SIZE]; 59 /* Initialises the TC, using VG_(clo_num_transtab_sectors) 60 and VG_(clo_avg_transtab_entry_size). 61 VG_(clo_num_transtab_sectors) must be >= MIN_N_SECTORS 63 extern void VG_(init_tt_tc) ( void ); 86 void VG_(add_to_transtab)( const VexGuestExtents* vge, 102 void VG_(tt_tc_do_chaining) ( void* from__patch_addr, 107 extern Bool VG_(search_transtab) ( /*OUT*/Addr* res_hcode, 113 extern void VG_(discard_translations) ( Addr start, ULong range, 116 extern void VG_(print_tt_tc_stats) ( void ) [all...] |
m_trampoline.S | 54 .global VG_(trampoline_stuff_start) 55 VG_(trampoline_stuff_start): 57 .global VG_(x86_linux_SUBST_FOR_sigreturn) 58 VG_(x86_linux_SUBST_FOR_sigreturn): 68 .global VG_(x86_linux_SUBST_FOR_rt_sigreturn) 69 VG_(x86_linux_SUBST_FOR_rt_sigreturn): 90 .global VG_(x86_linux_REDIR_FOR_index) 91 .type VG_(x86_linux_REDIR_FOR_index), @function 92 VG_(x86_linux_REDIR_FOR_index): 113 .size VG_(x86_linux_REDIR_FOR_index), .-VG_(x86_linux_REDIR_FOR_index [all...] |
/external/valgrind/include/ |
pub_tool_libcprint.h | 34 #include "pub_tool_basics.h" // VG_ macro 52 extern UInt VG_(sprintf) ( HChar* buf, const HChar* format, ... ) 55 extern UInt VG_(vsprintf) ( HChar* buf, const HChar* format, va_list vargs ) 58 extern UInt VG_(snprintf) ( HChar* buf, Int size, 62 extern UInt VG_(vsnprintf)( HChar* buf, Int size, 74 // VG_(fprintf)(). 77 #define OINK(nnn) VG_(message)(Vg_DebugMsg, "OINK %d\n",nnn) 93 extern UInt VG_(printf) ( const HChar *format, ... ) 95 extern UInt VG_(vprintf) ( const HChar *format, va_list vargs ) 98 extern UInt VG_(printf_xml) ( const HChar *format, ... [all...] |
pub_tool_sparsewa.h | 55 SparseWA* VG_(newSWA) ( void*(*alloc_nofail)(const HChar* cc, SizeT), 60 void VG_(deleteSWA) ( SparseWA* swa ); 64 Bool VG_(addToSWA) ( SparseWA* swa, UWord key, UWord val ); 68 Bool VG_(delFromSWA) ( SparseWA* swa, 75 Bool VG_(lookupSWA) ( const SparseWA* swa, 80 void VG_(initIterSWA) ( SparseWA* swa ); 86 Bool VG_(nextIterSWA)( SparseWA* swa, 92 UWord VG_(sizeSWA) ( const SparseWA* swa );
|
pub_tool_aspacehl.h | 34 #include "pub_tool_basics.h" // VG_ macro 42 extern Addr* VG_(get_segment_starts)( UInt kind_mask, /*OUT*/Int* n_acquired );
|
pub_tool_signals.h | 43 extern void VG_(set_fault_catcher)(void (*catcher)(Int sig, Addr addr));
|
pub_tool_threadstate.h | 45 extern ThreadId VG_(get_running_tid) ( void );
|
pub_tool_transtab.h | 34 #include "pub_tool_basics.h" // VG_ macro and primitive types 36 void VG_(discard_translations_safely) ( Addr start, SizeT len,
|
pub_tool_execontext.h | 52 // short-lived stack trace, use VG_(get_StackTrace)(). 54 // If called from generated code, use VG_(get_running_tid)() to get the 63 ExeContext* VG_(record_ExeContext) ( ThreadId tid, Word first_ip_delta ); 65 // Trivial version of VG_(record_ExeContext), which just records the 72 ExeContext* VG_(record_depth_1_ExeContext)(ThreadId tid, Word first_ip_delta); 77 extern void VG_(apply_ExeContext)( void(*action)(UInt n, Addr ip), 84 extern Bool VG_(eq_ExeContext) ( VgRes res, const ExeContext* e1, 88 extern void VG_(pp_ExeContext) ( ExeContext* ec ); 94 extern UInt VG_(get_ECU_from_ExeContext)( const ExeContext* e ); 97 extern Int VG_(get_ExeContext_n_ips)( const ExeContext* e ) [all...] |
pub_tool_libcfile.h | 34 #include "pub_tool_basics.h" // VG_ macro 43 /* Note that VG_(stat) and VG_(fstat) write to a 'struct vg_stat*' and 74 extern SysRes VG_(mknod) ( const HChar* pathname, Int mode, UWord dev ); 75 extern SysRes VG_(open) ( const HChar* pathname, Int flags, Int mode ); 78 extern Int VG_(fd_open) (const HChar* pathname, Int flags, Int mode); 79 extern void VG_(close) ( Int fd ); 80 extern Int VG_(read) ( Int fd, void* buf, Int count); 81 extern Int VG_(write) ( Int fd, const void* buf, Int count); 82 extern Int VG_(pipe) ( Int fd[2] ) [all...] |
/external/valgrind/coregrind/m_gdbserver/ |
valgrind-low-s390x.c | 123 ThreadState* tst = VG_(get_ThreadState)(tid); 134 case 1: VG_(transfer) (&s390x->guest_IA, buf, dir, size, mod); break; 135 case 2: VG_(transfer) (&s390x->guest_r0, buf, dir, size, mod); break; 136 case 3: VG_(transfer) (&s390x->guest_r1, buf, dir, size, mod); break; 137 case 4: VG_(transfer) (&s390x->guest_r2, buf, dir, size, mod); break; 138 case 5: VG_(transfer) (&s390x->guest_r3, buf, dir, size, mod); break; 139 case 6: VG_(transfer) (&s390x->guest_r4, buf, dir, size, mod); break; 140 case 7: VG_(transfer) (&s390x->guest_r5, buf, dir, size, mod); break; 141 case 8: VG_(transfer) (&s390x->guest_r6, buf, dir, size, mod); break; 142 case 9: VG_(transfer) (&s390x->guest_r7, buf, dir, size, mod); break [all...] |
/external/valgrind/coregrind/m_demangle/ |
vg_libciface.h | 48 #define atoi(_str) VG_(strtoll10)((_str), NULL) 49 #define free(_pt) VG_(arena_free) (VG_AR_DEMANGLE,(_pt)) 50 #define memcmp(_s1,_s2,_sz) VG_(memcmp)((_s1),(_s2),(_sz)) 51 #define memcpy(_dd,_ss,_sz) VG_(memcpy)((_dd),(_ss),(_sz)) 52 #define memset(_ss,_cc,_sz) VG_(memset)((_ss),(_cc),(_sz)) 53 #define realloc(_cc,_pt,_sz) VG_(arena_realloc)(VG_AR_DEMANGLE,(_cc),(_pt),(_sz)) 54 #define sprintf(_buf,_fmt,_args...) VG_(sprintf)((_buf),(_fmt),(_args)) 55 #define strcat(_dd,_ss) VG_(strcat)((_dd),(_ss)) 56 #define strchr(_ss,_cc) VG_(strchr)((_ss),(_cc)) 57 #define strcmp(_s1,_s2) VG_(strcmp)((_s1),(_s2) [all...] |
/external/valgrind/coregrind/m_coredump/ |
coredump-macho.c | 38 void VG_(make_coredump)(ThreadId tid, const vki_siginfo_t *si, ULong max_size)
|
/external/valgrind/coregrind/m_initimg/ |
initimg-darwin.c | 59 /* Load the client whose name is VG_(argv_the_exename). */ 68 vg_assert( VG_(args_the_exename) != NULL); 69 exe_name = ML_(find_executable)( VG_(args_the_exename) ); 72 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); 73 VG_(exit)(127); // 127 is Posix NOTFOUND 76 VG_(memset)(info, 0, sizeof(*info)); 77 ret = VG_(do_exec)(exe_name, info); 83 res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR); 85 VG_(cl_exec_fd) = sr_Res(res) [all...] |
initimg-pathscan.c | 96 HChar buf[VG_(strlen)(entry) + 1 + VG_(strlen)(executable_name_in) + 1]; 98 VG_(sprintf)(buf, "%s/%s", entry, executable_name_in); 101 if (VG_(is_dir)(buf)) 107 if (VG_(access)(buf, True/*r*/, False/*w*/, True/*x*/) == 0) { 108 VG_(free)(executable_name_out); 109 executable_name_out = VG_(strdup)("match_executable", buf); 111 } else if (VG_(access)(buf, True/*r*/, False/*w*/, False/*x*/) == 0 114 executable_name_out = VG_(strdup)("match_executable", buf); 126 if (VG_(strchr)(exec, '/')) [all...] |
/external/valgrind/coregrind/m_sigframe/ |
sigframe-common.c | 36 #include "pub_core_aspacemgr.h" // VG_(am_find_nsegment) 37 #include "pub_core_signals.h" // VG_(extend_stack) 38 #include "pub_core_libcprint.h" // VG_(umsg) 66 stackseg = VG_(am_find_nsegment)(addr); 67 } else if (VG_(am_addr_is_in_extensible_client_stack)(addr)) { 68 if (VG_(extend_stack)(tid, addr)) { 69 stackseg = VG_(am_find_nsegment)(addr); 71 VG_(printf)("frame=%#lx seg=%#lx-%#lx\n", 74 } else if ((stackseg = VG_(am_find_nsegment)(addr)) && 75 VG_(am_is_valid_for_client)(addr, 1 [all...] |
/external/valgrind/coregrind/m_dispatch/ |
dispatch-x86-linux.S | 42 /*--- The dispatch loop. VG_(disp_run_translations) is ---*/ 53 void VG_(disp_run_translations)( UWord* two_words, 58 .globl VG_(disp_run_translations) 59 .type VG_(disp_run_translations), @function 60 VG_(disp_run_translations): 93 cmpl $0, VG_(machine_x86_have_mxcsr) 109 VG_(cp_...) below. */ 135 # cmpl $0, VG_(machine_x86_have_mxcsr) 169 .global VG_(disp_cp_chain_me_to_slowEP) 170 VG_(disp_cp_chain_me_to_slowEP) [all...] |
dispatch-mips32-linux.S | 43 /*--- The dispatch loop. VG_(disp_run_translations) is ---*/ 54 void VG_(disp_run_translations)( UWord* two_words, 60 .globl VG_(disp_run_translations) 61 VG_(disp_run_translations): 97 VG_(cp_...) below. */ 145 .global VG_(disp_cp_chain_me_to_slowEP) 146 VG_(disp_cp_chain_me_to_slowEP): 160 .global VG_(disp_cp_chain_me_to_fastEP) 161 VG_(disp_cp_chain_me_to_fastEP): 175 .global VG_(disp_cp_xindir [all...] |