/external/valgrind/main/coregrind/m_aspacemgr/ |
aspacemgr-aix5.c | 222 if (VG_(clo_sanity_level >= 3)) { \ 225 VG_(debugLog)(0,"aspace", "sanity check failed, " \ 240 Bool VG_(am_aix5_sbrk_allowed) = True; 291 if (0 == VG_(strcmp)(str, &strtab[off])) 293 off += VG_(strlen)(&strtab[off]) + 1; 296 len = VG_(strlen)(str); 368 VG_(debugLog)(logLevel, "aspacem", 375 VG_(debugLog)(logLevel, "aspacem", 390 VG_(debugLog)(logLevel, "aspacem", 401 VG_(debugLog)(logLevel, "aspacem" [all...] |
/external/valgrind/main/drd/ |
drd_vc.c | 29 #include "pub_tool_libcbase.h" // VG_(memcpy) 30 #include "pub_tool_libcprint.h" // VG_(printf) 31 #include "pub_tool_mallocfree.h" // VG_(malloc), VG_(free) 59 VG_(memcpy)(vc->vc, vcelem, size * sizeof(vcelem[0])); 244 VG_(printf)("%s", str); 245 VG_(free)(str); 251 * The caller must call VG_(free)() on the return value of this function. 263 str = VG_(realloc)("drd.vc.aprint.1", str, reserved); 266 size += VG_(snprintf)(str, reserved, "[") [all...] |
drd_thread.c | 38 #include "pub_tool_libcbase.h" // VG_(strlen)() 39 #include "pub_tool_libcprint.h" // VG_(printf)() 40 #include "pub_tool_libcproc.h" // VG_(getenv)() 42 #include "pub_tool_mallocfree.h" // VG_(malloc)(), VG_(free)() 43 #include "pub_tool_options.h" // VG_(clo_backtrace_size) 44 #include "pub_tool_threadstate.h" // VG_(get_pthread_id)() 198 VG_(printf)( 267 * VG_(track_pre_thread_ll_create)(). The Valgrind core invokes this handler 298 * VG_(track_pre_thread_first_insn)() [all...] |
drd_bitmap2_node.c | 38 #include "pub_tool_libcprint.h" /* VG_(message)() */ 39 #include "pub_tool_mallocfree.h" /* VG_(malloc), VG_(free) */ 76 p = VG_(malloc)("drd.bitmap.bac", 112 VG_(free)(p); 124 return VG_(malloc)(ec, szB); 176 VG_(free)(bm2);
|
drd_suppression.c | 29 #include "pub_tool_stacktrace.h" // VG_(get_and_pp_StackTrace)() 30 #include "pub_tool_threadstate.h" // VG_(get_running_tid)() 68 VG_(message)(Vg_DebugMsg, "start suppression of 0x%lx sz %ld (%s)\n", 80 VG_(message)(Vg_DebugMsg, "finish suppression of 0x%lx sz %ld\n", 82 VG_(get_and_pp_StackTrace)(VG_(get_running_tid)(), 12); 156 VG_(message)(Vg_DebugMsg,
|
drd_bitmap.c | 32 #include "pub_tool_debuginfo.h" /* VG_(get_objname)() */ 34 #include "pub_tool_libcbase.h" /* VG_(memset) */ 35 #include "pub_tool_libcprint.h" /* VG_(printf) */ 36 #include "pub_tool_machine.h" /* VG_(get_IP)() */ 37 #include "pub_tool_mallocfree.h" /* VG_(malloc), VG_(free) */ 64 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); 75 VG_(free)(bm); 94 bm->oset = VG_(OSetGen_Create)(0, 0, DRD_(bm2_alloc_node), 103 VG_(OSetGen_Destroy)(bm->oset) [all...] |
drd_clientreq.c | 39 #include "pub_tool_debuginfo.h" // VG_(describe_IP)() 42 #include "pub_tool_libcprint.h" // VG_(message)() 43 #include "pub_tool_machine.h" // VG_(get_SP)() 45 #include "pub_tool_tooliface.h" // VG_(needs_...)() 61 VG_(needs_client_requests)(handle_client_request); 73 tl_assert(vg_tid == VG_(get_running_tid())); 90 VG_(maybe_record_error)(vg_tid, 92 VG_(get_IP)(vg_tid), 231 VG_(maybe_record_error)(vg_tid, 233 VG_(get_IP)(vg_tid) [all...] |
/external/valgrind/main/coregrind/m_debuginfo/ |
readelf.c | 45 #include "pub_core_tooliface.h" /* VG_(needs) */ 151 VG_(printf)("raw symbol [%4d]: ", i); 153 case STB_LOCAL: VG_(printf)("LOC "); break; 154 case STB_GLOBAL: VG_(printf)("GLO "); break; 155 case STB_WEAK: VG_(printf)("WEA "); break; 156 case STB_LOPROC: VG_(printf)("lop "); break; 157 case STB_HIPROC: VG_(printf)("hip "); break; 158 default: VG_(printf)("??? "); break; 161 case STT_NOTYPE: VG_(printf)("NOT "); break; 162 case STT_OBJECT: VG_(printf)("OBJ "); break [all...] |
d3basics.c | 45 #include "pub_core_aspacemgr.h" /* VG_(is_valid_for_client) */ 660 if (VG_(am_is_valid_for_client)( (Addr)uw1, sizeof(Addr), 672 if (VG_(am_is_valid_for_client)( (Addr)uw1, uw2, [all...] |
/external/valgrind/main/coregrind/ |
m_syscall.c | 63 SysRes VG_(mk_SysRes_x86_linux) ( Int val ) { 75 SysRes VG_(mk_SysRes_amd64_linux) ( Long val ) { 88 SysRes VG_(mk_SysRes_ppc32_linux) ( UInt val, UInt cr0so ) { 96 SysRes VG_(mk_SysRes_ppc64_linux) ( ULong val, ULong cr0so ) { 103 SysRes VG_(mk_SysRes_arm_linux) ( Int val ) { 115 SysRes VG_(mk_SysRes_Error) ( UWord err ) { 122 SysRes VG_(mk_SysRes_Success) ( UWord res ) { 136 SysRes VG_(mk_SysRes_ppc32_aix5) ( UInt res, UInt err ) { 144 SysRes VG_(mk_SysRes_ppc64_aix5) ( ULong res, ULong err ) { 153 SysRes VG_(mk_SysRes_Error) ( UWord err ) [all...] |
launcher-darwin.c | 246 VG_(debugLog_startup)(loglevel, "Stage 1"); 250 VG_(debugLog)(1, "launcher", "tool '%s' requested\n", toolname); 252 VG_(debugLog)(1, "launcher", 268 VG_(debugLog)(1, "launcher", "Using executable in app bundle: %s\n", newclient); 280 VG_(debugLog)(1, "launcher", "valgrind_lib = %s\n", valgrind_lib); 289 VG_(debugLog)(1, "launcher", "arch '%s' IS NOT installed\n", valid_archs[i].valgrind_name); 292 VG_(debugLog)(1, "launcher", "arch '%s' IS installed\n", valid_archs[i].valgrind_name); 329 VG_(debugLog)(1, "launcher", "using arch '%s' from --arch=%s\n", 334 VG_(debugLog)(1, "launcher", 341 VG_(debugLog)(1, "launcher", "selected arch '%s'\n", arch) [all...] |
pub_core_tooliface.h | 46 ( tl_assert2(VG_(tdict).fn, \ 48 VG_(tdict).fn(args) ) 52 if (VG_(tdict).track_##fn) \ 53 VG_(tdict).track_##fn(args); \ 75 extern VgDetails VG_(details); 98 extern VgNeeds VG_(needs); 115 // VG_(needs).core_errors 118 // VG_(needs).tool_errors 130 // VG_(needs).superblock_discards 133 // VG_(needs).command_line_option [all...] |
launcher-aix5.c | 696 VG_(debugLog)(1, "launcher", "parent: size of bootblock is %ld\n", 718 VG_(debugLog)(1, "launcher", 789 VG_(debugLog)(1, "launcher", 822 VG_(debugLog)(1, "launcher", [all...] |
/external/valgrind/main/coregrind/m_dispatch/ |
dispatch-ppc32-aix5.S | 47 /*--- The dispatch loop. VG_(run_innerloop) is used to ---*/ 90 UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); 101 /* ----- entry point to VG_(run_innerloop) ----- */ 258 beq VG_(run_innerloop__dispatch_unprofiled) 259 b VG_(run_innerloop__dispatch_profiled) 266 .globl VG_(run_innerloop__dispatch_unprofiled) 267 VG_(run_innerloop__dispatch_unprofiled): 278 Also set up & VG_(tt_fast) early in an attempt at better 297 add 5,5,4 /* & VG_(tt_fast)[entry#] */ 313 b VG_(run_innerloop__dispatch_unprofiled [all...] |
dispatch-ppc64-aix5.S | 47 /*--- The dispatch loop. VG_(run_innerloop) is used to ---*/ 88 UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); 100 /* ----- entry point to VG_(run_innerloop) ----- */ 246 beq VG_(run_innerloop__dispatch_unprofiled) 247 b VG_(run_innerloop__dispatch_profiled) 254 .globl VG_(run_innerloop__dispatch_unprofiled) 255 VG_(run_innerloop__dispatch_unprofiled): 268 ld 5,tocent__vgPlain_tt_fast(2) /* &VG_(tt_fast) */ 284 add 5,5,4 /* &VG_(tt_fast)[entry#] */ 300 b VG_(run_innerloop__dispatch_unprofiled [all...] |
/external/valgrind/tsan/ |
ts_util.h | 194 #define sprintf(arg1, arg2...) VG_(sprintf)((Char*)arg1, (HChar*)arg2) 195 #define vsnprintf(a1, a2, a3, a4) VG_(vsnprintf)((Char*)a1, a2, a3, a4) 196 #define getpid VG_(getpid) 197 #define strchr(a,b) VG_(strchr)((Char*)a,b) 198 #define strdup(a) (char*)VG_(strdup)((HChar*)"strdup", (const Char*)a) 199 #define snprintf(a,b,c...) VG_(snprintf)((Char*)a,b,c) 200 #define read VG_(read) 201 #define getenv(x) VG_(getenv)((Char*)x) 202 #define close VG_(close) 203 #define write VG_(write [all...] |
/external/valgrind/main/callgrind/ |
bb.c | 103 VG_(free)(bbs.table); 135 VG_(memset)(bb, 0, size); 146 bb->sect_kind = VG_(DebugInfo_sect_kind)(NULL, 0, offset + obj->offset); 162 VG_(printf)(" new_bb (instr %d, jmps %d, inv %s) [now %d]: ", 167 VG_(printf)("\n"); 204 di = VG_(find_DebugInfo)(addr); 210 offset = di ? VG_(DebugInfo_get_text_bias)(di):0; 212 Addr start = di ? VG_(DebugInfo_get_text_avma)(di) : 0; 218 CLG_ASSERT( obj->size == (di ? VG_(DebugInfo_get_text_size)(di) : 0) ); 261 VG_(message)(Vg_DebugMsg, [all...] |
global.h | 24 #include "pub_tool_machine.h" // VG_(fnptr_to_fnentry) 134 do { Int len = VG_(sprintf)(zz_buf, fmt, ## args); \ 135 VG_(write)(fd, (void*)zz_buf, len); \ 139 do { if (str) { Int len = VG_(strlen)(str); \ 140 VG_(write)(fd, (void*)str, len); } \ 141 else VG_(write)(fd, "(null)", 6); \ 145 do { if (str1) { Int len = VG_(strlen)(str1); \ 146 VG_(write)(fd, (void*)str1, len); } \ 147 else VG_(write)(fd, "(null)", 6); \ 148 if (str2) { Int len = VG_(strlen)(str2); [all...] |
callstack.c | 100 cs->entry = (call_entry*) VG_(realloc)("cl.callstack.ess.1", 110 VG_(printf)(" call stack enlarged to %d entries\n", 126 VG_(message)(Vg_DebugMsg, 134 VG_(sprintf)(trigger, "--dump-before=%s", fn->name); 156 VG_(sprintf)(trigger, "--dump-after=%s", fn->name); 171 VG_(message)(Vg_DebugMsg, 280 VG_(printf)("%s> %s(0x%x, 0x%x, ...) [%s / %#lx]\n", spaces[s%4]+40-s, bb->fn->name, 288 VG_(printf)("+ %2d ", CLG_(current_call_stack).sp); 290 VG_(printf)(", SP %#lx, RA %#lx\n", sp, ret_addr); 293 VG_(printf)(" Pushed ") [all...] |
/external/valgrind/main/memcheck/ |
mc_main.c | 54 #define DEBUG(fmt, args...) //VG_(printf)(fmt, ## args) 298 new_sm = VG_(am_shadow_alloc)(sizeof(SecMap)); 300 VG_(out_of_memory_NORETURN)( "memcheck:allocate new SecMap", 302 VG_(memcpy)(new_sm, dist_sm, sizeof(SecMap)); 401 auxmap_L2 = VG_(OSetGen_Create)( /*keyOff*/ offsetof(AuxMapEnt,base), 403 VG_(malloc), "mc.iaLL.1", VG_(free) ); 432 if (VG_(OSetGen_Size)(auxmap_L2) != 0) 443 VG_(OSetGen_ResetIter)(auxmap_L2); 444 while ( (elem = VG_(OSetGen_Next)(auxmap_L2)) ) [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-amd64-linux.c | 51 #include "pub_core_stacks.h" // VG_(register_stack) 207 ThreadId ctid = VG_(alloc_ThreadState)(); 208 ThreadState* ptst = VG_(get_ThreadState)(ptid); 209 ThreadState* ctst = VG_(get_ThreadState)(ctid); 216 VG_(sigfillset)(&blockall); 218 vg_assert(VG_(is_running_thread)(ptid)); 219 vg_assert(VG_(is_valid_tid)(ctid)); 223 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 270 seg = VG_(am_find_nsegment)((Addr)rsp); 275 VG_(register_stack)(seg->start, ctst->client_stack_highest_word) [all...] |
priv_types_n_macros.h | 358 status->sres = VG_(mk_SysRes_Success)(zzz); \ 366 status->sres = VG_(mk_SysRes_Error)(wzz); \ 377 if (VG_(clo_trace_syscalls)) \ 378 VG_(printf)(format, ## args) 432 VG_(tdict).track_pre_reg_read(Vg_CoreSysCall, tid, "(syscallno)", \ 453 VG_(tdict).track_pre_reg_read( \ 471 VG_(tdict).track_pre_reg_read( \ 501 Addr here = layout->s_arg##n + VG_(get_SP)(tid); \ 503 VG_(tdict).track_pre_mem_read( \ 518 VG_(threads)[tid].arch.vex.VG_STACK_PTR; [all...] |
syswrap-arm-linux.c | 48 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 53 #include "pub_core_stacks.h" // VG_(register_stack) 54 #include "pub_core_transtab.h" // VG_(discard_translations) 172 ThreadId ctid = VG_(alloc_ThreadState)(); 173 ThreadState* ptst = VG_(get_ThreadState)(ptid); 174 ThreadState* ctst = VG_(get_ThreadState)(ctid); 181 VG_(sigfillset)(&blockall); 183 vg_assert(VG_(is_running_thread)(ptid)); 184 vg_assert(VG_(is_valid_tid)(ctid)); 189 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ) [all...] |
syswrap-darwin.c | 41 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 42 #include "pub_core_transtab.h" // VG_(discard_translations) 49 #include "pub_core_machine.h" // VG_(get_SP) 54 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 90 ThreadState* tst = VG_(get_ThreadState)(tid); 92 VG_(debugLog)(1, "syswrap-darwin", 99 VG_(acquire_BigLock)(tid, "thread_wrapper"); 102 VG_(printf)("thread tid %d started: stack = %p\n", 107 tst->os_state.lwpid = VG_(gettid)(); 108 tst->os_state.threadgroup = VG_(getpid)() [all...] |
/external/valgrind/main/exp-ptrcheck/ |
h_main.c | 225 #include "pub_tool_aspacemgr.h" // VG_(am_shadow_malloc) 227 #include "pub_tool_machine.h" // VG_({get,set}_shadow_regs_area) et al 228 #include "pub_tool_debuginfo.h" // VG_(get_fnname) 229 #include "pub_tool_threadstate.h" // VG_(get_running_tid) 342 SegGroup* g = VG_(malloc)("pc.h_main.nTG.1", sizeof(SegGroup)); 343 VG_(memset)(g, 0, sizeof(*g)); 423 addr_to_seg_map = VG_(newFM)( VG_(malloc), "pc.h_main.attmEI.1", 424 VG_(free), NULL/*unboxedcmp*/ ); 432 if (VG_(lookupFM)( addr_to_seg_map, &keyW, &valW, (UWord)ga )) [all...] |