/external/valgrind/main/helgrind/ |
hg_basics.c | 49 p = VG_(malloc)( cc, n ); 51 VG_(memset)(p, 0, n); 58 VG_(free)(p); 63 return VG_(strdup)( cc, s );
|
hg_errors.c | 42 #include "pub_tool_options.h" // VG_(clo_xml) 62 return string_table ? (ULong)VG_(sizeFM)(string_table) : 0; 66 return (Word)VG_(strcmp)( (HChar*)s1, (HChar*)s2 ); 75 string_table = VG_(newFM)( HG_(zalloc), "hg.sts.1", 79 if (VG_(lookupFM)( string_table, 82 if (0) VG_(printf)("string_table_strdup: %p -> %p\n", str, copy ); 87 VG_(addToFM)( string_table, (Word)copy, (Word)copy ); 99 return map_LockN_to_P ? (ULong)VG_(sizeFM)(map_LockN_to_P) : 0; 119 map_LockN_to_P = VG_(newFM)( HG_(zalloc), "hg.mLPfLN.1", 123 if (!VG_(lookupFM)( map_LockN_to_P, NULL, (Word*)&lkp, (Word)lkn)) [all...] |
hg_main.c | 52 #include "pub_tool_debuginfo.h" // VG_(find_seginfo), VG_(seginfo_soname) 55 #include "pub_tool_libcproc.h" // VG_(atfork) 56 #include "pub_tool_aspacemgr.h" // VG_(am_is_valid_for_client) 211 VG_(deleteBag)( lk->heldBy ); 212 VG_(memset)(lk, 0xAA, sizeof(*lk)); 234 = VG_(record_ExeContext)(tid, 0/*first_ip_delta*/); 246 lk->heldBy = VG_(newBag)( HG_(zalloc), "hg.lNaw.1", HG_(free) ); 247 VG_(addToBag)( lk->heldBy, (Word)thr ); 255 tl_assert(VG_(sizeUniqueBag(lk->heldBy)) == 1) [all...] |
/external/valgrind/main/callgrind/ |
dump.c | 124 VG_(free)(dump_array); 150 VG_(write)(fd, (void*)buf, len); 164 VG_(write)(fwrite_fd, (void*)fwrite_buf, fwrite_pos); 176 VG_(write)(fd, (void*)buf, len); 180 VG_(strncpy)(fwrite_buf + fwrite_pos, buf, len); 193 /*n =*/ VG_(sprintf)(buf, "(%d)\n", obj->number); 195 /*n =*/ VG_(sprintf)(buf, "(%d) %s\n", 200 /*n =*/ VG_(sprintf)(buf, "%s\n", obj->name); 207 VG_(sprintf)(buf+n, "mp=%p %p %p\n", 220 VG_(sprintf)(buf, "(%d)\n", file->number) [all...] |
/external/valgrind/main/coregrind/ |
m_execontext.c | 34 #include "pub_core_libcprint.h" // For VG_(message)() 38 #include "pub_core_machine.h" // VG_(get_IP) 40 #include "pub_core_threadstate.h" // VG_(is_valid_tid) 138 ec_htab = VG_(arena_malloc)(VG_AR_EXECTXT, "execontext.iEs1", 148 void VG_(print_ExeContext_stats) ( void ) 151 VG_(message)(Vg_DebugMsg, 155 VG_(message)(Vg_DebugMsg, 162 VG_(message)(Vg_DebugMsg, 170 void VG_(pp_ExeContext) ( ExeContext* ec ) 172 VG_(pp_StackTrace)( ec->ips, ec->n_ips ) [all...] |
m_stacktrace.c | 35 #include "pub_core_aspacemgr.h" // For VG_(is_addressable)() 41 #include "pub_core_stacks.h" // VG_(stack_limits) 44 #include "pub_core_clientstate.h" // VG_(client__dl_sysinfo_int80) 68 UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known, 100 VG_(printf)("max_n_ips=%d fp_min=0x%lx fp_max_orig=0x%lx, " 177 VG_(printf)(" ipsF[%d]=0x%08lx\n", i-1, ips[i-1]); 185 if ( VG_(use_CF_info)( &uregs, fp_min, fp_max ) ) { 191 VG_(printf)(" ipsC[%d]=0x%08lx\n", i-1, ips[i-1]); 198 if ( VG_(use_FPO_info)( &uregs.xip, &uregs.xsp, &uregs.xbp, 205 VG_(printf)(" ipsC[%d]=0x%08lx\n", i-1, ips[i-1]) [all...] |
m_translate.c | 36 #include "pub_core_machine.h" // VG_(fnptr_to_fnentry) 37 // VG_(get_SP) 38 // VG_(machine_get_VexArchInfo) 44 #include "pub_core_debuginfo.h" // VG_(get_fnname_w_offset) 45 #include "pub_core_redir.h" // VG_(redir_do_lookup) 47 #include "pub_core_signals.h" // VG_(synth_fault_{perms,mapping} 48 #include "pub_core_stacks.h" // VG_(unknown_SP_update)() 49 #include "pub_core_tooliface.h" // VG_(tdict) 53 #include "pub_core_dispatch.h" // VG_(run_innerloop__dispatch_{un}profiled) 54 // VG_(run_a_noredir_translation__return_point [all...] |
m_seqmatch.c | 34 #include "pub_core_libcbase.h" // VG_(strlen) 42 Bool VG_(generic_match) ( 102 if (VG_(generic_match)( matchAll, 172 Bool VG_(string_match) ( const Char* patt, const Char* input ) 174 return VG_(generic_match)( 176 (void*)patt, sizeof(UChar), VG_(strlen)(patt), 0, 177 (void*)input, sizeof(UChar), VG_(strlen)(input), 0,
|
m_hashtable.c | 67 VgHashTable VG_(HT_construct) ( HChar* name ) 72 VgHashTable table = VG_(calloc)("hashtable.Hc.1", 74 table->chains = VG_(calloc)("hashtable.Hc.2", 1, sz); 83 Int VG_(HT_count_nodes) ( VgHashTable table ) 115 VG_(debugLog)( 123 chains = VG_(calloc)("hashtable.resize.1", 1, sz); 136 VG_(free)(table->chains); 142 void VG_(HT_add_node) ( VgHashTable table, void* vnode ) 158 void* VG_(HT_lookup) ( VgHashTable table, UWord key ) 172 void* VG_(HT_remove) ( VgHashTable table, UWord key [all...] |
/external/valgrind/main/include/ |
pub_tool_basics_asm.h | 44 // VG_/ML_ in both asm and C files. 52 # define VG_(str) VGAPPEND( vgPlain_, str) 55 # define VG_(str) VGAPPEND(_vgPlain_, str)
|
pub_tool_seqmatch.h | 73 Bool VG_(generic_match) ( 85 Bool VG_(string_match) ( const Char* pat, const Char* str );
|
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-aix5.c | 43 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 44 #include "pub_core_transtab.h" // VG_(discard_translations) 60 #include "pub_core_sigframe.h" // VG_(sigframe_destroy) 78 ThreadState* tst = VG_(get_ThreadState)(tid); 94 stack = VG_(am_alloc_VgStack)( &initial_SP ); 108 VG_(printf)( "stack for tid %d at %p; init_SP=%p\n", 129 changes_size = VG_(am_aix5_reread_procmap_howmany_directives)(); 130 changes = VG_(arena_malloc)(VG_AR_CORE, "syswrap-aix5.arpalou.1", 135 VG_(am_aix5_reread_procmap)( changes, &changes_used ); 140 ULong di_handle = VG_(di_aix5_notify_segchange) [all...] |
syswrap-generic.c | 38 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 40 #include "pub_core_transtab.h" // VG_(discard_translations) 42 #include "pub_core_clientstate.h" // VG_(brk_base), VG_(brk_limit) 51 #include "pub_core_machine.h" // VG_(get_SP) 56 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 80 ret = VG_(am_is_valid_for_client_or_free_or_resvn) 84 VG_(printf)("%s: test=%#lx-%#lx ret=%d\n", 88 VG_(message)(Vg_UserMsg, "Warning: client syscall %s tried " 91 if (VG_(clo_verbosity) > 1) [all...] |
syswrap-ppc64-aix5.c | 48 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 64 void VG_(show_open_fds) ( void ) 70 Int c = VG_(count_living_threads)(); 74 void VG_(reap_threads)(ThreadId self) 78 VG_(vg_yield)(); 79 VG_(poll_signals)(self); 83 void VG_(init_preopened_fds) ( void ) 95 ThreadState* tst = VG_(get_ThreadState)(tid); 97 VG_(debugLog)(1, "syswrap-aix64", 104 VG_(acquire_BigLock)(tid, "thread_wrapper(starting new thread)") [all...] |
/external/valgrind/main/drd/ |
drd_hb.c | 29 #include "pub_tool_errormgr.h" /* VG_(maybe_record_error)() */ 31 #include "pub_tool_libcprint.h" /* VG_(printf)() */ 32 #include "pub_tool_machine.h" /* VG_(get_IP)() */ 33 #include "pub_tool_mallocfree.h" /* VG_(malloc)(), VG_(free)()*/ 34 #include "pub_tool_threadstate.h" /* VG_(get_running_tid)() */ 95 p->oset = VG_(OSetGen_Create)(0, 0, VG_(malloc), "drd.hb", 96 VG_(free)); 108 VG_(OSetGen_ResetIter)(p->oset) [all...] |
drd_segment.c | 31 #include "pub_tool_libcbase.h" // VG_(strlen)() 32 #include "pub_tool_libcprint.h" // VG_(printf)() 33 #include "pub_tool_machine.h" // VG_(get_SP)() 34 #include "pub_tool_mallocfree.h" // VG_(malloc)(), VG_(free)() 77 if (vg_created != VG_INVALID_THREADID && VG_(get_SP)(vg_created) != 0) 78 sg->stacktrace = VG_(record_ExeContext)(vg_created, 0); 94 VG_(message)(Vg_DebugMsg, "New segment for thread %d with vc %s\n", 96 VG_(free)(vc); 120 sg = VG_(malloc)("drd.segment.sn.1", sizeof(*sg)) [all...] |
drd_mutex.c | 31 #include "pub_tool_errormgr.h" // VG_(maybe_record_error)() 33 #include "pub_tool_libcbase.h" // VG_(strlen) 34 #include "pub_tool_libcprint.h" // VG_(message)() 35 #include "pub_tool_libcproc.h" // VG_(read_millisecond_timer)() 36 #include "pub_tool_machine.h" // VG_(get_IP)() 37 #include "pub_tool_threadstate.h" // VG_(get_running_tid)() 93 VG_(message)(Vg_UserMsg, 106 VG_(maybe_record_error)(VG_(get_running_tid)(), 108 VG_(get_IP)(VG_(get_running_tid)()) [all...] |
/external/valgrind/main/coregrind/m_dispatch/ |
dispatch-amd64-linux.S | 42 /*--- The dispatch loop. VG_(run_innerloop) is used to ---*/ 52 UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); 56 .globl VG_(run_innerloop) 57 .type VG_(run_innerloop), @function 58 VG_(run_innerloop): 62 /* ----- entry point to VG_(run_innerloop) ----- */ 78 movq VG_(dispatch_ctr)@GOTPCREL(%rip), %r15 83 /* 0(%rsp) holds cached copy of VG_(dispatch_ctr) */ 110 je VG_(run_innerloop__dispatch_unprofiled) 111 jmp VG_(run_innerloop__dispatch_profiled [all...] |
/external/valgrind/main/coregrind/m_debuginfo/ |
storage.c | 41 #include "pub_core_options.h" /* VG_(clo_verbosity) */ 65 if (VG_(clo_xml)) 70 VG_(message)(Vg_DebugMsg, "WARNING: Serious error when " 72 if (True || VG_(clo_verbosity) < 2) { 75 VG_(message)(Vg_DebugMsg, 79 VG_(message)(Vg_DebugMsg, "%s\n", msg); 83 if (VG_(clo_verbosity) >= 2) 84 VG_(message)(Vg_DebugMsg, "%s\n", msg); 93 VG_(printf)( "%5d: %#8lx .. %#8lx (%d) %s\n", 106 VG_(printf)("Unknown"); [all...] |
/external/valgrind/main/coregrind/m_aspacemgr/ |
aspacemgr-common.c | 58 (void)VG_(do_syscall1)(__NR_exit_group, status); 60 (void)VG_(do_syscall1)(__NR_exit, status); 69 VG_(debugLog)(0, "aspacem", "Valgrind: FATAL: %s\n", what); 70 VG_(debugLog)(0, "aspacem", "Exiting now.\n"); 76 VG_(debugLog)(0, "aspacem", 78 VG_(debugLog)(0, "aspacem", " Increase it and rebuild. " 88 VG_(debugLog)(0, "aspacem", 90 VG_(debugLog)(0, "aspacem", " %s\n", expr); 91 VG_(debugLog)(0, "aspacem", " at %s:%d (%s)\n", file,line,fn); 92 VG_(debugLog)(0, "aspacem", "Exiting now.\n") [all...] |
/external/valgrind/main/memcheck/ |
mc_leakcheck.c | 288 // VG_(printf)("find chunk for %p = ", ptr); 324 // VG_(printf)("%d\n", retVal); 343 mallocs = (MC_Chunk**) VG_(HT_to_array)( MC_(malloc_list), &n_mallocs ); 349 VG_(ssort)(mallocs, n_mallocs, sizeof(VgHashNode*), compare_MC_Chunks); 353 malloc_chunk_holds_a_pool_chunk = VG_(calloc)( "mc.fas.1", 360 VG_(HT_ResetIter)(MC_(mempool_list)); 361 while ( (mp = VG_(HT_Next)(MC_(mempool_list))) ) { 362 VG_(HT_ResetIter)(mp->chunks); 363 while ( (mc = VG_(HT_Next)(mp->chunks)) ) { 390 chunks = VG_(malloc)("mc.fas.2", sizeof(VgHashNode*) * (n_chunks)) [all...] |
/external/valgrind/main/lackey/ |
lk_main.c | 179 #include "pub_tool_machine.h" // VG_(fnptr_to_fnentry) 214 VG_(printf)( 226 VG_(printf)( 362 VG_(fnptr_to_fnentry)( &increment_detail ), 371 VG_(umsg)(" Type Loads Stores AluOps\n"); 372 VG_(umsg)(" -------------------------------------------\n"); 374 VG_(umsg)(" %4s %'12llu %'12llu %'12llu\n", 444 VG_(printf)("I %08lx,%lu\n", addr, size); 449 VG_(printf)(" L %08lx,%lu\n", addr, size); 454 VG_(printf)(" S %08lx,%lu\n", addr, size) [all...] |
/external/valgrind/main/coregrind/m_sigframe/ |
sigframe-amd64-darwin.c | 108 void VG_(sigframe_create) ( ThreadId tid, 127 tst = VG_(get_ThreadState)(tid); 136 VG_(memset)(&frame->lower_guardzone, 0, 512); 137 VG_(memset)(&frame->gst, 0, sizeof(VexGuestAMD64State)); 138 VG_(memset)(&frame->gshadow1, 0, sizeof(VexGuestAMD64State)); 139 VG_(memset)(&frame->gshadow2, 0, sizeof(VexGuestAMD64State)); 140 VG_(memset)(&frame->fake_siginfo, 0, sizeof(frame->fake_siginfo)); 141 VG_(memset)(&frame->fake_ucontext, 0, sizeof(frame->fake_ucontext)); 158 VG_(set_SP)(tid, rsp); 162 VG_(set_IP)(tid, (ULong)handler) [all...] |
sigframe-x86-darwin.c | 111 void VG_(sigframe_create) ( ThreadId tid, 130 tst = VG_(get_ThreadState)(tid); 139 VG_(memset)(&frame->lower_guardzone, 0, 512); 140 VG_(memset)(&frame->gst, 0, sizeof(VexGuestX86State)); 141 VG_(memset)(&frame->gshadow1, 0, sizeof(VexGuestX86State)); 142 VG_(memset)(&frame->gshadow2, 0, sizeof(VexGuestX86State)); 143 VG_(memset)(&frame->fake_siginfo, 0, sizeof(frame->fake_siginfo)); 144 VG_(memset)(&frame->fake_ucontext, 0, sizeof(frame->fake_ucontext)); 161 VG_(set_SP)(tid, esp); 165 VG_(set_IP)(tid, (UInt)handler) [all...] |
/external/valgrind/main/massif/ |
ms_main.c | 81 // VG_(bsearch) function. 224 if (VG_(clo_verbosity) > verb) { \ 225 VG_(dmsg)("Massif: " format, ##args); \ 230 if (VG_(clo_stats)) { \ 231 VG_(dmsg)("Massif: " format, ##args); \ 311 alloc_fns = VG_(newXA)(VG_(malloc), "ms.main.iaf.1", 312 VG_(free), sizeof(Char*)); 313 #define DO(x) { Char* s = x; VG_(addToXA)(alloc_fns, &s); } 363 ignore_fns = VG_(newXA)(VG_(malloc), "ms.main.iif.1" [all...] |