/external/valgrind/main/coregrind/ |
m_tooliface.c | 36 VgToolInterface VG_(tdict); 41 void VG_(basic_tool_funcs)( 48 VG_(tdict).tool_post_clo_init = post_clo_init; 49 VG_(tdict).tool_instrument = instrument; 50 VG_(tdict).tool_fini = fini; 58 VgDetails VG_(details) = { 69 extern void VG_(details_##detail)(type detail) \ 71 VG_(details).detail = detail; \ 85 VgNeeds VG_(needs) = { 101 Bool VG_(sanity_check_needs)(Char** failmsg [all...] |
pub_core_libcsignal.h | 46 extern Int VG_(sigfillset) ( vki_sigset_t* set ); 47 extern Int VG_(sigemptyset) ( vki_sigset_t* set ); 49 extern Bool VG_(isfullsigset) ( const vki_sigset_t* set ); 50 extern Bool VG_(isemptysigset) ( const vki_sigset_t* set ); 51 extern Bool VG_(iseqsigset) ( const vki_sigset_t* set1, 54 extern Int VG_(sigaddset) ( vki_sigset_t* set, Int signum ); 55 extern Int VG_(sigdelset) ( vki_sigset_t* set, Int signum ); 56 extern Int VG_(sigismember) ( const vki_sigset_t* set, Int signum ); 58 extern void VG_(sigaddset_from_set) ( vki_sigset_t* dst, vki_sigset_t* src ); 59 extern void VG_(sigdelset_from_set) ( vki_sigset_t* dst, vki_sigset_t* src ) [all...] |
m_commandline.c | 48 (void) VG_(addToXA)( xa, (void*)(&str) ); 64 VG_(snprintf)(filename, VKI_PATH_MAX, "%s/.valgrindrc", 66 fd = VG_(open)(filename, 0, VKI_S_IRUSR); 68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); 70 if (!res && stat_buf.uid == VG_(geteuid)() 73 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1); 75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); 82 VG_(message)(Vg_UserMsg, 86 VG_(close)(sr_Res(fd)); 92 // Add args from a string into VG_(args_for_valgrind), splitting th [all...] |
m_main.c | 50 #include "pub_core_syscall.h" // VG_(strerror) 58 #include "pub_core_seqmatch.h" // For VG_(string_match) 60 #include "pub_core_stacks.h" // For VG_(register_stack) 63 #include "pub_core_translate.h" // For VG_(translate) 83 VG_(print_translation_stats)(); 84 VG_(print_tt_tc_stats)(); 85 VG_(print_scheduler_stats)(); 86 VG_(print_ExeContext_stats)(); 87 VG_(print_errormgr_stats)(); 90 if (VG_(clo_verbosity) > 2) [all...] |
pub_core_commandline.h | 36 park them in VG_(args_for_client), VG_(args_for_valgrind) and 37 VG_(args_for_valgrind_extras). The latter are acquired from 40 extern void VG_(split_up_argv)( Int argc, HChar** argv );
|
pub_core_debugger.h | 39 extern void VG_(start_debugger) ( ThreadId tid );
|
pub_core_libcassert.h | 44 VG_(assert_fail) (/*isCore*//*BOGUS*/True, \ 51 (VG_(assert_fail) (/*isCore*/True, #expr, \ 58 (VG_(assert_fail) (/*isCore*/True, #expr, \ 64 extern void VG_(core_panic) ( Char* str ); 66 extern void VG_(core_panic_at) ( Char* str, UnwindStartRegs* ); 70 extern void VG_(unimplemented) ( Char* msg ) 74 extern void VG_(show_sched_status) ( void );
|
pub_core_libcfile.h | 43 extern Int VG_(safe_fd) ( Int oldfd ); 45 extern Int VG_(fcntl) ( Int fd, Int cmd, Addr arg ); 48 extern Bool VG_(resolve_filename) ( Int fd, HChar* buf, Int n_buf ); 51 extern Long VG_(fsize) ( Int fd ); 54 extern Bool VG_(is_dir) ( const HChar* f ); 60 extern Int VG_(connect_via_socket)( UChar* str ); 62 extern UInt VG_(htonl) ( UInt x ); 63 extern UInt VG_(ntohl) ( UInt x ); 64 extern UShort VG_(htons) ( UShort x ); 65 extern UShort VG_(ntohs) ( UShort x ) [all...] |
pub_core_stacks.h | 39 extern UWord VG_(register_stack) ( Addr start, Addr end ); 40 extern void VG_(deregister_stack) ( UWord id ); 41 extern void VG_(change_stack) ( UWord id, Addr start, Addr end ); 42 extern void VG_(stack_limits) ( Addr SP, Addr *start, Addr *end ); 45 void VG_(unknown_SP_update) ( Addr old_SP, Addr new_SP, UInt otag );
|
m_libcassert.c | 38 #include "pub_core_libcproc.h" // For VG_(gettid)() 41 #include "pub_core_tooliface.h" // For VG_(details).{name,bug_reports_to} 42 #include "pub_core_options.h" // For VG_(clo_xml) 145 void VG_(exit)( Int status ) 148 (void)VG_(do_syscall1)(__NR_exit_group, status ); 150 (void)VG_(do_syscall1)(__NR_exit, status ); 162 void VG_(show_sched_status) ( void ) 165 VG_(printf)("\nsched status:\n"); 166 VG_(printf)(" running_tid=%d\n", VG_(get_running_tid)()) [all...] |
pub_core_libcproc.h | 72 extern Char **VG_(env_setenv) ( Char ***envp, const Char* varname, 74 extern void VG_(env_unsetenv) ( Char **env, const Char *varname ); 75 extern void VG_(env_remove_valgrind_env_stuff) ( Char** env ); 76 extern Char **VG_(env_clone) ( Char **env_clone ); 79 extern Int VG_(getgroups)( Int size, UInt* list ); 80 extern Int VG_(ptrace)( Int request, Int pid, void *addr, void *data ); 83 extern void VG_(do_atfork_pre) ( ThreadId tid ); 84 extern void VG_(do_atfork_parent) ( ThreadId tid ); 85 extern void VG_(do_atfork_child) ( ThreadId tid );
|
m_errormgr.c | 42 #include "pub_core_libcproc.h" // For VG_(getpid)() 48 #include "pub_core_translate.h" // for VG_(translate)() 49 #include "pub_core_xarray.h" // VG_(xaprintf) et al 118 When errors are found and recorded with VG_(maybe_record_error)(), all 142 ExeContext* VG_(get_error_where) ( Error* err ) 147 ErrorKind VG_(get_error_kind) ( Error* err ) 152 Addr VG_(get_error_address) ( Error* err ) 157 Char* VG_(get_error_string) ( Error* err ) 162 void* VG_(get_error_extra) ( Error* err ) 167 UInt VG_(get_n_errs_found)( void [all...] |
/external/valgrind/main/include/ |
pub_tool_oset.h | 92 // called by VG_(OSetWord_Destroy)(). 102 extern OSet* VG_(OSetWord_Create) ( OSetAlloc_t alloc, HChar* cc, 104 extern void VG_(OSetWord_Destroy) ( OSet* os ); 135 // VG_(OSetWord_ResetIter)(oset); 136 // while ( VG_(OSetWord_Next)(oset, &val) ) { 143 // they will return False if VG_(OSetWord_Next)() is called without an 144 // intervening call to VG_(OSetWord_ResetIter)(). 146 extern Word VG_(OSetWord_Size) ( OSet* os ); 147 extern void VG_(OSetWord_Insert) ( OSet* os, UWord val ); 148 extern Bool VG_(OSetWord_Contains) ( OSet* os, UWord val ) [all...] |
pub_tool_aspacehl.h | 38 extern Addr* VG_(get_segment_starts) ( /*OUT*/Int* n_acquired );
|
pub_tool_xarray.h | 52 extern XArray* VG_(newXA) ( void*(*alloc_fn)(HChar*,SizeT), 58 extern void VG_(deleteXA) ( XArray* ); 63 extern void VG_(setCmpFnXA) ( XArray*, Int (*compar)(void*,void*) ); 68 extern Word VG_(addToXA) ( XArray*, void* elem ); 73 extern Word VG_(addBytesToXA) ( XArray* xao, void* bytesV, Word nbytes ); 77 extern void VG_(sortXA) ( XArray* ); 84 extern Bool VG_(lookupXA) ( XArray*, void* key, 87 /* A version of VG_(lookupXA) in which you can specify your own 92 VG_(lookupXA), which refuses to do anything (asserts) unless the 95 extern Bool VG_(lookupXA_UNSAFE) ( XArray* xao, void* key [all...] |
pub_tool_mallocfree.h | 40 extern void* VG_(malloc) ( HChar* cc, SizeT nbytes ); 41 extern void VG_(free) ( void* p ); 42 extern void* VG_(calloc) ( HChar* cc, SizeT n, SizeT bytes_per_elem ); 43 extern void* VG_(realloc) ( HChar* cc, void* p, SizeT size ); 44 extern Char* VG_(strdup) ( HChar* cc, const Char* s ); 48 extern SizeT VG_(malloc_usable_size)( void* p ); 53 extern void VG_(out_of_memory_NORETURN) ( HChar* who, SizeT szB );
|
pub_tool_libcprint.h | 38 extern UInt VG_(sprintf) ( Char* buf, const HChar* format, ... ) 41 extern UInt VG_(vsprintf) ( Char* buf, const HChar* format, va_list vargs ) 44 extern UInt VG_(snprintf) ( Char* buf, Int size, 48 extern UInt VG_(vsnprintf)( Char* buf, Int size, 54 extern void VG_(percentify)(ULong n, ULong m, UInt d, Int n_buf, char buf[]); 65 // VG_(fprintf)(). 68 #define OINK(nnn) VG_(message)(Vg_DebugMsg, "OINK %d\n",nnn) 84 extern UInt VG_(printf) ( const HChar *format, ... ) 86 extern UInt VG_(vprintf) ( const HChar *format, va_list vargs ) 96 extern UInt VG_(printf_xml) ( const HChar *format, ... [all...] |
pub_tool_wordfm.h | 64 the introduction of VG_(initIterAtFM), which allows iteration over 74 which becomes obvious if you use VG_(initIterFM), 75 VG_(initIterAtFM), VG_(nextIterFM), VG_(doneIterFM) to iterate over 79 WordFM* VG_(newFM) ( void* (*alloc_nofail)( HChar* cc, SizeT ), 86 void VG_(deleteFM) ( WordFM*, void(*kFin)(UWord), void(*vFin)(UWord) ); 92 Bool VG_(addToFM) ( WordFM* fm, UWord k, UWord v ); 95 Bool VG_(delFromFM) ( WordFM* fm, 99 Bool VG_(lookupFM) ( WordFM* fm, [all...] |
pub_tool_options.h | 52 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 54 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 63 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 65 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 73 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 75 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; \ 77 Long n = VG_(strtoll10)( val, &s ); \ 80 if ('\0' != s[0] || (qq_var) != n) VG_(fmsg_bad_option)(qq_arg, ""); \ 88 (VG_STREQN(VG_(strlen)(qq_option)+1, qq_arg, qq_option"=") && \ 90 Char* val = &(qq_arg)[ VG_(strlen)(qq_option)+1 ]; [all...] |
pub_tool_errormgr.h | 57 /* Useful in VG_(tdict).tool_error_matches_suppression(), 58 * VG_(tdict).tool_pp_Error(), etc */ 59 ExeContext* VG_(get_error_where) ( Error* err ); 60 ErrorKind VG_(get_error_kind) ( Error* err ); 61 Addr VG_(get_error_address) ( Error* err ); 62 Char* VG_(get_error_string) ( Error* err ); 63 void* VG_(get_error_extra) ( Error* err ); 69 'tid' can be found as for VG_(record_ExeContext)(). The `extra' field can 75 extern void VG_(maybe_record_error) ( ThreadId tid, ErrorKind ekind, 78 /* Similar to VG_(maybe_record_error)(), except this one doesn't record th [all...] |
pub_tool_libcfile.h | 40 /* Note that VG_(stat) and VG_(fstat) write to a 'struct vg_stat*' and 71 extern SysRes VG_(open) ( const Char* pathname, Int flags, Int mode ); 72 extern void VG_(close) ( Int fd ); 73 extern Int VG_(read) ( Int fd, void* buf, Int count); 74 extern Int VG_(write) ( Int fd, const void* buf, Int count); 75 extern Int VG_(pipe) ( Int fd[2] ); 76 extern OffT VG_(lseek) ( Int fd, OffT offset, Int whence ); 77 extern Int VG_(ftruncate) ( Int fd, OffT length ); 79 extern SysRes VG_(stat) ( const Char* file_name, struct vg_stat* buf ) [all...] |
/external/valgrind/main/coregrind/m_scheduler/ |
scheduler.c | 50 VG_(scheduler) therefore runs in each thread. It returns only when 68 #include "pub_core_errormgr.h" // For VG_(get_n_errs_found)() 83 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 87 #include "pub_core_translate.h" // For VG_(translate)() 89 #include "pub_core_debuginfo.h" // VG_(di_notify_pdb_debuginfo) 107 Bool VG_(in_generated_code) = False; 109 /* Counts downwards in VG_(run_innerloop). */ 110 UInt VG_(dispatch_ctr); 128 void VG_(print_scheduler_stats)(void) 130 VG_(message)(Vg_DebugMsg [all...] |
/external/valgrind/main/drd/ |
drd_error.c | 36 #include "pub_tool_libcfile.h" /* VG_(get_startup_wd)() */ 37 #include "pub_tool_libcprint.h" /* VG_(printf)() */ 39 #include "pub_tool_mallocfree.h" /* VG_(malloc), VG_(free) */ 40 #include "pub_tool_threadstate.h" /* VG_(get_pthread_id)() */ 41 #include "pub_tool_tooliface.h" /* VG_(needs_tool_errors)() */ 86 VG_(message)(Vg_UserMsg, 90 VG_(pp_ExeContext)(cl->any.first_observed_at); 100 = VG_(newXA)( VG_(malloc), "drd.error.drdr2.1" [all...] |
/external/valgrind/main/exp-ptrcheck/ |
pc_main.c | 131 if (VG_(clo_verbosity) >= 1 && sg_clo_enable_sg_checks) { 132 VG_(message)(Vg_UserMsg, 135 VG_(message)(Vg_UserMsg, 138 VG_(message)(Vg_UserMsg, 152 VG_(printf)("Ptrcheck doesn't work on Darwin yet, sorry.\n"); 153 VG_(exit)(1); 156 VG_(details_name) ("exp-ptrcheck"); 157 VG_(details_version) (NULL); 158 VG_(details_description) ("a heap, stack and global array " 160 VG_(details_copyright_author) [all...] |
/external/valgrind/main/coregrind/m_ume/ |
main.c | 37 #include "pub_core_libcassert.h" // VG_(exit), vg_assert 38 #include "pub_core_libcfile.h" // VG_(close) et al 39 #include "pub_core_libcprint.h" // VG_(message) 40 #include "pub_core_mallocfree.h" // VG_(strdup) 41 #include "pub_core_syscall.h" // VG_(mk_SysRes_Error) 42 #include "pub_core_options.h" // VG_(clo_xml) 56 { VG_(match_ELF), VG_(load_ELF) }, 58 { VG_(match_macho), VG_(load_macho) } [all...] |