/external/valgrind/callgrind/ |
fn.c | 68 found = (VG_(memcmp)( (void*)addr, code, pat->chunk[0].len) == 0); 83 if (VG_(memcmp)( (void*)(addr+start), code+start, len) != 0) { 92 if (VG_(clo_verbosity) > 1) 93 VG_(message)(Vg_DebugMsg, "Found runtime_resolve (%s): " 142 if (VG_(strncmp)(obj->name, "/lib/ld", 7) != 0) return False; 170 if (VG_(strncmp)(obj->name, "/lib/ld", 7) != 0) return False; 191 if ((VG_(strncmp)(obj->name, "/lib/ld", 7) != 0) && 192 (VG_(strncmp)(obj->name, "/lib64/ld", 9) != 0)) return False; 235 obj->name = di ? VG_(strdup)( "cl.fn.non.2", 236 VG_(DebugInfo_get_filename)(di) [all...] |
bb.c | 101 VG_(free)(bbs.table); 133 VG_(memset)(bb, 0, size); 144 bb->sect_kind = VG_(DebugInfo_sect_kind)(NULL, offset + obj->offset); 160 VG_(printf)(" new_bb (instr %d, jmps %d, inv %s) [now %d]: ", 165 VG_(printf)("\n"); 202 di = VG_(find_DebugInfo)(addr); 208 offset = di ? VG_(DebugInfo_get_text_bias)(di):0; 210 Addr start = di ? VG_(DebugInfo_get_text_avma)(di) : 0; 216 CLG_ASSERT( obj->size == (di ? VG_(DebugInfo_get_text_size)(di) : 0) ); 259 VG_(message)(Vg_DebugMsg, [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, 133 HChar trigger[VG_(strlen)(fn->name) + 20]; 134 VG_(sprintf)(trigger, "--dump-before=%s", fn->name); 155 HChar trigger[VG_(strlen)(fn->name) + 20]; 156 VG_(sprintf)(trigger, "--dump-after=%s", fn->name); 171 VG_(message)(Vg_DebugMsg, 287 VG_(printf)("%s> %s(0x%x, 0x%x, ...) [%s / %#lx]\n", spaces[s%4]+40-s, bb->fn->name, 295 VG_(printf)("+ %2d ", CLG_(current_call_stack).sp) [all...] |
events.c | 434 if (VG_(strcmp)(n, eg->name[j])!=0) 457 XArray *xa = VG_(newXA)(VG_(malloc), "cl.events.emas", VG_(free), 462 VG_(xaprintf)(xa, "%c", ' '); 466 VG_(xaprintf)(xa, "%s", eg->name[em->entry[i].index]); 468 VG_(xaprintf)(xa, "%c", '\0'); // zero terminate the string 470 HChar *buf = VG_(strdup)("cl.events.emas", VG_(indexXA)(xa, 0)); 471 VG_(deleteXA)(xa) [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-ppc64-linux.c | 46 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 390 ThreadId ctid = VG_(alloc_ThreadState)(); 391 ThreadState* ptst = VG_(get_ThreadState)(ptid); 392 ThreadState* ctst = VG_(get_ThreadState)(ctid); 398 VG_(sigfillset)(&blockall); 400 vg_assert(VG_(is_running_thread)(ptid)); 401 vg_assert(VG_(is_valid_tid)(ctid)); 405 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 466 vg_assert(VG_(owns_BigLock_LL)(ptid)); 471 VG_(printf)("clone child has SETTLS: tls at %#lx\n", child_tls) [all...] |
syswrap-x86-darwin.c | 40 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 41 #include "pub_core_transtab.h" // VG_(discard_translations) 91 VG_(memcpy)(&mach->__fpu_xmm0, &vex->guest_XMM0, 8 * sizeof(mach->__fpu_xmm0)); 146 VG_(memcpy)(&vex->guest_XMM0, &mach->__fpu_xmm0, 8 * sizeof(mach->__fpu_xmm0)); 178 ThreadId tid = VG_(alloc_ThreadState)(); 179 ThreadState *tst = VG_(get_ThreadState)(tid); 283 // VG_(printf)("pthread_hijack pthread %p, machthread %p, func %p, arg %p, stack %p, flags %p, stack %p\n", self, kport, func, func_arg, stacksize, flags, sp); 289 /* Start the thread with all signals blocked. VG_(scheduler) will 291 VG_(sigfillset)(&blockall); 292 VG_(sigprocmask)(VKI_SIG_SETMASK, &blockall, NULL) [all...] |
syswrap-amd64-linux.c | 207 ThreadId ctid = VG_(alloc_ThreadState)(); 208 ThreadState* ptst = VG_(get_ThreadState)(ptid); 209 ThreadState* ctst = VG_(get_ThreadState)(ctid); 215 VG_(sigfillset)(&blockall); 217 vg_assert(VG_(is_running_thread)(ptid)); 218 vg_assert(VG_(is_valid_tid)(ctid)); 222 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 270 vg_assert(VG_(owns_BigLock_LL)(ptid)); 275 VG_(printf)("clone child has SETTLS: tls at %#lx\n", tlsaddr); 282 VG_(sigprocmask)(VKI_SIG_SETMASK, &blockall, &savedmask) [all...] |
syswrap-x86-linux.c | 52 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 214 ThreadId ctid = VG_(alloc_ThreadState)(); 215 ThreadState* ptst = VG_(get_ThreadState)(ptid); 216 ThreadState* ctst = VG_(get_ThreadState)(ctid); 222 VG_(sigfillset)(&blockall); 224 vg_assert(VG_(is_running_thread)(ptid)); 225 vg_assert(VG_(is_valid_tid)(ctid)); 229 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 284 vg_assert(VG_(owns_BigLock_LL)(ptid)); 289 VG_(printf)("clone child has SETTLS: tls info at %p: idx=%d [all...] |
priv_types_n_macros.h | 352 status->sres = VG_(mk_SysRes_Success)(zzz); \ 360 status->sres = VG_(mk_SysRes_Error)(wzz); \ 371 if (VG_(clo_trace_syscalls)) \ 372 VG_(printf)(format, ## args) 375 if (SimHintiS(SimHint_fuse_compatible, VG_(clo_sim_hints))) \ 435 VG_(tdict).track_pre_reg_read(Vg_CoreSysCall, tid, "(syscallno)", \ 456 VG_(tdict).track_pre_reg_read( \ 474 VG_(tdict).track_pre_reg_read( \ 504 Addr here = layout->s_arg##n + VG_(get_SP)(tid); \ 506 VG_(tdict).track_pre_mem_read( [all...] |
syswrap-arm-linux.c | 48 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 53 #include "pub_core_transtab.h" // VG_(discard_translations) 171 ThreadId ctid = VG_(alloc_ThreadState)(); 172 ThreadState* ptst = VG_(get_ThreadState)(ptid); 173 ThreadState* ctst = VG_(get_ThreadState)(ctid); 179 VG_(sigfillset)(&blockall); 181 vg_assert(VG_(is_running_thread)(ptid)); 182 vg_assert(VG_(is_valid_tid)(ctid)); 187 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 215 vg_assert(VG_(owns_BigLock_LL)(ptid)) [all...] |
syswrap-mips64-linux.c | 45 #include "pub_core_sigframe.h" /* For VG_(sigframe_destroy)() */ 50 #include "pub_core_transtab.h" /* VG_(discard_translations) */ 56 #include "pub_core_debuginfo.h" /* VG_(di_notify_*) */ 58 #include "pub_core_clientstate.h" /* VG_(brk_base), VG_(brk_limit) */ 60 #include "pub_core_gdbserver.h" /* VG_(gdbserver) */ 62 #include "pub_core_machine.h" /* VG_(get_SP) */ 64 #include "pub_core_stacktrace.h" /* For VG_(get_and_pp_StackTrace)() */ 201 ThreadId ctid = VG_ (alloc_ThreadState) (); 202 ThreadState * ptst = VG_ (get_ThreadState) (ptid) [all...] |
syswrap-s390x-linux.c | 48 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 180 void VG_(cleanup_thread) ( ThreadArchState* arch ) 213 ThreadId ctid = VG_(alloc_ThreadState)(); 214 ThreadState* ptst = VG_(get_ThreadState)(ptid); 215 ThreadState* ctst = VG_(get_ThreadState)(ctid); 221 VG_(sigfillset)(&blockall); 223 vg_assert(VG_(is_running_thread)(ptid)); 224 vg_assert(VG_(is_valid_tid)(ctid)); 228 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 268 vg_assert(VG_(owns_BigLock_LL)(ptid)) [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)() 91 ThreadState* tst = VG_(get_ThreadState)(tid); 93 VG_(debugLog)(1, "syswrap-darwin", 100 VG_(acquire_BigLock)(tid, "thread_wrapper"); 103 VG_(printf)("thread tid %d started: stack = %p\n", 111 tst->os_state.lwpid = VG_(gettid)(); 112 tst->os_state.threadgroup = VG_(getpid)() [all...] |
/external/valgrind/coregrind/ |
launcher-darwin.c | 250 VG_(debugLog_startup)(loglevel, "Stage 1"); 254 VG_(debugLog)(1, "launcher", "tool '%s' requested\n", toolname); 256 VG_(debugLog)(1, "launcher", 272 VG_(debugLog)(1, "launcher", "Using executable in app bundle: %s\n", newclient); 284 VG_(debugLog)(1, "launcher", "valgrind_lib = %s\n", valgrind_lib); 293 VG_(debugLog)(1, "launcher", "arch '%s' IS NOT installed\n", valid_archs[i].valgrind_name); 296 VG_(debugLog)(1, "launcher", "arch '%s' IS installed\n", valid_archs[i].valgrind_name); 333 VG_(debugLog)(1, "launcher", "using arch '%s' from --arch=%s\n", 338 VG_(debugLog)(1, "launcher", 345 VG_(debugLog)(1, "launcher", "selected arch '%s'\n", arch) [all...] |
launcher-linux.c | 140 VG_(debugLog)(2, "launcher", "selecting platform for '%s'\n", clientname); 145 VG_(debugLog)(2, "launcher", "selecting platform for '%s'\n", clientname); 151 VG_(debugLog)(2, "launcher", "opened '%s'\n", clientname); 159 VG_(debugLog)(2, "launcher", "read %ld bytes from '%s'\n", 288 VG_(debugLog)(2, "launcher", "selected platform '%s'\n", 332 VG_(debugLog_startup)(loglevel, "Stage 1"); 336 VG_(debugLog)(1, "launcher", "tool '%s' requested\n", toolname); 338 VG_(debugLog)(1, "launcher", 367 VG_(debugLog)(1, "launcher", 372 VG_(debugLog)(1, "launcher", "selected platform '%s'\n", platform) [all...] |
pub_core_tooliface.h | 46 ( vg_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); 100 extern VgNeeds VG_(needs); 117 // VG_(needs).core_errors 120 // VG_(needs).tool_errors 135 // VG_(needs).superblock_discards 138 // VG_(needs).command_line_option [all...] |
/external/valgrind/coregrind/m_sigframe/ |
sigframe-mips32-linux.c | 123 void VG_(sigframe_create)( ThreadId tid, 133 ThreadState* tst = VG_(get_ThreadState)(tid); 149 tst = VG_(get_ThreadState)(tid); 159 if (VG_(clo_trace_signals)) 160 VG_(printf)("rt_sigframe\n"); 165 VG_(memcpy)(&frame->rs_info, siginfo, sizeof(*siginfo)); 211 tst->arch.vex.guest_r31 = (Addr)&VG_(mips32_linux_SUBST_FOR_rt_sigreturn); 217 if (VG_(clo_trace_signals)) 218 VG_(printf)("sigframe\n"); 246 tst->arch.vex.guest_r31 = (Addr)&VG_(mips32_linux_SUBST_FOR_sigreturn) [all...] |
sigframe-x86-linux.c | 246 //:: VG_(memcpy)(buf, env, 7 * sizeof(unsigned long)); 268 //:: VG_(memcpy)(env, buf, 7 * sizeof(long)); 296 //:: VG_(memcpy)(buf, fs, sizeof(*fs)); 306 //:: VG_(memcpy)(buf->_fxsr_env, fx, sizeof(struct i387_fxsave_struct)); 311 //:: if ( VG_(have_ssestate) ) 319 //:: VG_(memcpy)( ®s->m_sse.fsave, buf, sizeof(struct i387_fsave_struct) ); 324 //:: VG_(memcpy)(®s->m_sse.fxsave, &buf->_fxsr_env[0], 333 //:: if ( VG_(have_ssestate) ) { 354 ThreadState *tst = VG_(get_ThreadState)(tid); 357 VG_(memset)(uc, 0, sizeof(*uc)) [all...] |
sigframe-ppc64-linux.c | 50 #include "pub_core_transtab.h" // VG_(discard_translations) 136 void VG_(sigframe_create)( ThreadId tid, 159 tst = VG_(get_ThreadState)(tid); 168 VG_(memset)(frame, 0, sizeof(*frame)); 191 VG_(memcpy)(&frame->info, siginfo, sizeof(*siginfo)); 246 VG_(discard_translations)( (Addr)&frame->tramp[0], 250 SET_SIGNAL_LR(tst, (Addr)&VG_(ppc64_linux_SUBST_FOR_rt_sigreturn)); 279 VG_(printf)("pushed signal frame; %%R1 now = %#lx, " 290 void VG_(sigframe_destroy)( ThreadId tid, Bool isRT ) 300 vg_assert(VG_(is_valid_tid)(tid)) [all...] |
sigframe-amd64-linux.c | 223 //:: VG_(memcpy)(buf, env, 7 * sizeof(unsigned long)); 245 //:: VG_(memcpy)(env, buf, 7 * sizeof(long)); 273 //:: VG_(memcpy)(buf, fs, sizeof(*fs)); 283 //:: VG_(memcpy)(buf->_fxsr_env, fx, sizeof(struct i387_fxsave_struct)); 288 //:: if ( VG_(have_ssestate) ) 296 //:: VG_(memcpy)( ®s->m_sse.fsave, buf, sizeof(struct i387_fsave_struct) ); 301 //:: VG_(memcpy)(®s->m_sse.fxsave, &buf->_fxsr_env[0], 310 //:: if ( VG_(have_ssestate) ) { 331 ThreadState *tst = VG_(get_ThreadState)(tid); 334 VG_(memset)(uc, 0, sizeof(*uc)) [all...] |
/external/valgrind/drd/ |
drd_thread.c | 37 #include "pub_tool_libcbase.h" // VG_(strlen)() 38 #include "pub_tool_libcprint.h" // VG_(printf)() 40 #include "pub_tool_mallocfree.h" // VG_(malloc)(), VG_(free)() 41 #include "pub_tool_options.h" // VG_(clo_backtrace_size) 42 #include "pub_tool_threadstate.h" // VG_(get_pthread_id)() 145 DRD_(g_threadinfo) = VG_(malloc)("drd.main.ti.1", 215 VG_(printf)( 284 * VG_(track_pre_thread_ll_create)(). The Valgrind core invokes this handler 315 * VG_(track_pre_thread_first_insn)() [all...] |
drd_bitmap.c | 32 #include "pub_tool_libcbase.h" /* VG_(memset) */ 33 #include "pub_tool_libcprint.h" /* VG_(printf) */ 34 #include "pub_tool_mallocfree.h" /* VG_(malloc), VG_(free) */ 58 = VG_(OSetGen_Create_With_Pool)(0, 0, VG_(malloc), "drd.bitmap.bn.2", 59 VG_(free), 512, sizeof(struct bitmap2)); 65 VG_(OSetGen_Destroy)(s_bm2_set_template); 77 bm = VG_(malloc)("drd.bitmap.bn.1", sizeof(*bm)); 88 VG_(free)(bm) [all...] |
/external/valgrind/helgrind/ |
libhb_core.c | 48 #include "pub_tool_options.h" // VG_(clo_stats) 681 VG_(printf)("XXXXX bigchunk: abandoning %d bytes\n", 683 shmem__bigchunk_next = VG_(am_shadow_alloc)( sHMEM__BIGCHUNK_SIZE ); 685 VG_(out_of_memory_NORETURN)( 733 if (0) VG_(message)(Vg_DebugMsg, "%p push\n", sm); 748 if (0) VG_(message)(Vg_DebugMsg, "%p pop\n", sm); 765 if (0) VG_(printf)("alloc_SecMap %p\n",sm); 804 if (VG_(lookupFM)( map_shmem, 835 VG_(initIterFM)( map_shmem ); 836 while (VG_(nextIterFM)( map_shmem, &gaKey, &secmapW )) [all...] |
hg_wordset.c | 321 have = VG_(lookupFM)( wsu->vec2ix, 339 VG_(addToFM)( wsu->vec2ix, (UWord)wv_new, ws ); 340 if (HG_DEBUG) VG_(printf)("aodW %s re-use free %d %p\n", wsu->cc, (Int)ws, wv_new ); 347 VG_(addToFM)( wsu->vec2ix, (Word)wv_new, (Word)wsu->ix2vec_used ); 348 if (HG_DEBUG) VG_(printf)("aodW %s %d %p\n", wsu->cc, (Int)wsu->ix2vec_used, wv_new ); 365 VG_(memset)( wsu, 0, sizeof(WordSetU) ); 369 wsu->vec2ix = VG_(newFM)( alloc_nofail, cc, 389 VG_(deleteFM)( wsu->vec2ix, delete_WV_for_FM, NULL/*val-finalizer*/ ); 451 if (HG_DEBUG) VG_(printf)("getPayloadWS %s %d\n", wsu->cc, (Int)ws); 465 if (HG_DEBUG) VG_(printf)("dieWS %s %d %p\n", wsu->cc, (Int)ws, wv) [all...] |
/external/valgrind/coregrind/m_debuginfo/ |
misc.c | 48 v = VG_(arena_malloc)( VG_AR_DINFO, cc, szB ); 49 VG_(memset)(v, 0, szB); 54 VG_(arena_realloc_shrink)( VG_AR_DINFO, ptr, szB ); 58 VG_(arena_free)( VG_AR_DINFO, v ); 62 return VG_(arena_strdup)( VG_AR_DINFO, cc, str ); 66 void* dst = VG_(arena_malloc)( VG_AR_DINFO, cc, nStr ); 67 VG_(memcpy)(dst, str, nStr); 72 void* dst = VG_(arena_realloc)( VG_AR_DINFO, cc, ptr, new_size );
|