/external/valgrind/coregrind/m_sigframe/ |
sigframe-mips64-linux.c | 118 void VG_(sigframe_create) ( ThreadId tid, 128 ThreadState* tst = VG_(get_ThreadState)(tid); 136 tst = VG_(get_ThreadState)(tid); 144 if (VG_(clo_trace_signals)) 145 VG_(printf)("rt_sigframe\n"); 150 VG_(memcpy)(&frame->rs_info, siginfo, sizeof(*siginfo)); 189 tst->arch.vex.guest_r31 = (Addr)&VG_(mips64_linux_SUBST_FOR_rt_sigreturn); 197 if (VG_(clo_trace_signals)) 198 VG_(printf)("handler = %p\n", handler); 205 void VG_(sigframe_destroy) ( ThreadId tid, Bool isRT [all...] |
sigframe-ppc32-linux.c | 50 #include "pub_core_transtab.h" // VG_(discard_translations) 185 VG_(discard_translations)( (Addr)&mc->mc_pad, 190 ? (Addr)&VG_(ppc32_linux_SUBST_FOR_rt_sigreturn) 191 : (Addr)&VG_(ppc32_linux_SUBST_FOR_sigreturn) 350 //:: VG_(memcpy)(buf, env, 7 * sizeof(unsigned long)); 372 //:: VG_(memcpy)(env, buf, 7 * sizeof(long)); 400 //:: VG_(memcpy)(buf, fs, sizeof(*fs)); 410 //:: VG_(memcpy)(buf->_fxsr_env, fx, sizeof(struct i387_fxsave_struct)); 415 //:: if ( VG_(have_ssestate) ) 423 //:: VG_(memcpy)( ®s->m_sse.fsave, buf, sizeof(struct i387_fsave_struct) ) [all...] |
sigframe-tilegx-linux.c | 139 void VG_(sigframe_create)( ThreadId tid, 159 tst = VG_(get_ThreadState)(tid); 174 if (VG_(clo_trace_signals)) 175 VG_(printf)("rt_sigframe\n"); 180 VG_(memcpy)(&frame->rs_info, siginfo, sizeof(*siginfo)); 224 tst->arch.vex.guest_r55 = (Addr)&VG_(tilegx_linux_SUBST_FOR_rt_sigreturn); 234 if (VG_(clo_trace_signals)) 235 VG_(printf)("handler = %p\n", handler); 240 VG_(printf)("pushed signal frame; sp now = %lx, " 246 void VG_(sigframe_destroy)( ThreadId tid, Bool isRT [all...] |
sigframe-s390x-linux.c | 311 VG_(memcpy)(frame->sc.oldmask, mask->sig, sizeof(frame->sc.oldmask)); 323 SET_SIGNAL_GPR(tst, 14, (Addr)&VG_(s390x_linux_SUBST_FOR_sigreturn)); 381 SET_SIGNAL_GPR(tst, 14, (Addr)&VG_(s390x_linux_SUBST_FOR_rt_sigreturn)); 384 VG_(memcpy)(&frame->info, siginfo, sizeof(vki_siginfo_t)); 405 void VG_(sigframe_create)( ThreadId tid, 415 ThreadState* tst = VG_(get_ThreadState)(tid); 425 VG_(set_SP)(tid, sp); 451 VG_(message)(Vg_UserMsg, "Thread %d return signal frame " 454 VG_(set_default_handler)(VKI_SIGSEGV); 455 VG_(synth_fault)(tst->tid) [all...] |
/external/valgrind/coregrind/m_syswrap/ |
syswrap-tilegx-linux.c | 46 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 51 #include "pub_core_stacks.h" // VG_(register_stack) 52 #include "pub_core_transtab.h" // VG_(discard_translations) 58 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 60 #include "pub_core_clientstate.h" // VG_(brk_base), VG_(brk_limit) 63 #include "pub_core_machine.h" // VG_(get_SP) 65 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 335 ThreadId ctid = VG_ (alloc_ThreadState) (); 336 ThreadState * ptst = VG_ (get_ThreadState) (ptid) [all...] |
syswrap-ppc32-linux.c | 46 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 240 ThreadId ctid = VG_(alloc_ThreadState)(); 241 ThreadState* ptst = VG_(get_ThreadState)(ptid); 242 ThreadState* ctst = VG_(get_ThreadState)(ctid); 248 VG_(sigfillset)(&blockall); 250 vg_assert(VG_(is_running_thread)(ptid)); 251 vg_assert(VG_(is_valid_tid)(ctid)); 255 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 316 vg_assert(VG_(owns_BigLock_LL)(ptid)); 321 VG_(printf)("clone child has SETTLS: tls at %#lx\n", child_tls) [all...] |
syswrap-xen.c | 39 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 40 #include "pub_core_transtab.h" // VG_(discard_translations) 57 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 76 VG_(dmsg)("WARNING: unhandled %s subop: %ld\n", 78 if (VG_(clo_verbosity) > 1) { 79 VG_(get_and_pp_StackTrace)(tid, VG_(clo_backtrace_size)); 81 VG_(dmsg)("You may be able to write your own handler.\n"); 82 VG_(dmsg)("Read the file README_MISSING_SYSCALL_OR_IOCTL.\n"); 83 VG_(dmsg)("Nevertheless we consider this a bug. Please report\n") [all...] |
syswrap-linux.c | 38 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 39 #include "pub_core_transtab.h" // VG_(discard_translations) 49 #include "pub_core_machine.h" // VG_(get_SP) 73 ThreadState* tst = VG_(get_ThreadState)(tid); 75 VG_(debugLog)(1, "syswrap-linux", 82 VG_(acquire_BigLock)(tid, "thread_wrapper(starting new thread)"); 85 VG_(printf)("thread tid %d started: stack = %p\n", 93 tst->os_state.lwpid = VG_(gettid)(); 97 tst->os_state.threadgroup = VG_(getpid)(); 102 ret = VG_(scheduler)(tid) [all...] |
/external/valgrind/cachegrind/ |
cg_sim.c | 64 c->line_size_bits = VG_(log2)(c->line_size); 65 c->tag_shift = c->line_size_bits + VG_(log2)(c->sets); 68 VG_(sprintf)(c->desc_line, "%d B, %d B, direct-mapped", 71 VG_(sprintf)(c->desc_line, "%d B, %d B, %d-way associative", 75 c->tags = VG_(malloc)("cg.sim.ci.1", 158 VG_(printf)("addr: %lx size: %u blocks: %ld %ld", 160 VG_(tool_panic)("item straddles more than two cache sets");
|
cg_branchpred.c | 109 if (0) VG_(printf)("index = %d\n", (Int)indx);
|
/external/valgrind/coregrind/m_debuginfo/ |
d3basics.c | 46 #include "pub_core_aspacemgr.h" /* VG_(is_valid_for_client) */ 678 if (VG_(am_is_valid_for_client)( (Addr)uw1, sizeof(Addr), 690 if (VG_(am_is_valid_for_client)( (Addr)uw1, uw2, [all...] |
readexidx.c | 140 if (!VG_(clo_xml) && VG_(clo_verbosity) > 1) 141 VG_(message)(Vg_UserMsg, 157 VG_(memset)(mr, 0, sizeof(*mr)); 391 VG_(printf)("ExtabData{%-12s 0x%08x}", showExtabCmd(etd->cmd), etd->data); 436 VG_(bzero_inline)(&edata, sizeof(edata)); 556 VG_(printf)(" edata: cmd %08x data %08x\n", 625 di->cfsi_exprs = VG_(newXA)( ML_(dinfo_zalloc), "di.gCCAG", 664 CfiExpr* e = (CfiExpr*)VG_(indexXA)(cfsi_exprs, off); 676 VG_(printf)("setCFAfromCFIR: FAIL: how %d off %d\n", (Int)how, (Int)off) [all...] |
/external/valgrind/callgrind/ |
sim.c | 185 c->line_size_bits = VG_(log2)(c->line_size); 186 c->tag_shift = c->line_size_bits + VG_(log2)(c->sets); 194 VG_(sprintf)(c->desc_line, "%d B, %d B, direct-mapped%s", 198 VG_(sprintf)(c->desc_line, "%d B, %d B, %d-way associative%s", 221 VG_(printf)("%8x ", c->tags[i]); 223 VG_(printf)("\n"); 308 VG_(printf)("addr: %lx size: %u blocks: %ld %ld", 310 VG_(tool_panic)("item straddles more than two cache sets"); 416 VG_(printf)("addr: %lx size: %u sets: %d %d", a, size, set1, set2); 417 VG_(tool_panic)("item straddles more than two cache sets") [all...] |
clo.c | 282 VG_(printf)("%s", sp+40-depth); 283 if (hash >=0) VG_(printf)(" [hash %2d]", hash); 284 else if (hash == -2) VG_(printf)(" [wildc ?]"); 285 else if (hash == -3) VG_(printf)(" [wildc *]"); 286 VG_(printf)(" '%s' (len %d)\n", node->name, node->length); 372 if (VG_(strncmp)(name, n->name, n->length)==0) break; 474 UInt n = VG_(strtoll10)(arg+12, &s); 489 UInt n = VG_(strtoll10)(arg+10, &s); 498 UInt n = VG_(strtoll10)(arg+18, &s); 507 UInt n = VG_(strtoll10)(arg+15, &s) [all...] |
bbcc.c | 230 VG_(free)(current_bbccs.table); 345 if (!cxt) return VG_(strdup)("cl.bbcc.mcxt", "(no context)"); 350 need += VG_(strlen)(cxt->fn[i]->name) + 1; // 1 for leading ' 353 p = VG_(sprintf)(mangled, "%s", cxt->fn[0]->name); 355 p += VG_(sprintf)(mangled+p, "'%d", rec_index +1); 357 p += VG_(sprintf)(mangled+p, "'%s", cxt->fn[i]->name); 582 tid = VG_(get_running_tid)(); 591 CLG_ASSERT(VG_(get_running_tid)() == CLG_(current_tid)); 594 sp = VG_(get_SP)(tid); 733 VG_(printf)("Cond-") [all...] |
context.c | 120 VG_(free)(cxts.table); 219 VG_(printf)(" new_cxt ox%p: ", cxt); 303 VG_(free)(CLG_(current_fn_stack).bottom);
|
/external/valgrind/include/ |
pub_tool_basics.h | 60 // VG_ is for symbols exported from modules. ML_ (module-local) is 65 // Likewise it is a mistake for a VG_ name to appear in a priv_*.h 70 #define VG_(str) VGAPPEND(vgPlain_, str) 129 /* ThreadIds are simply indices into the VG_(threads)[] array. */ 301 /* We use a prefix vg_ for vg_alignof as its behaviour slightly 373 #define STATIC_ASSERT(x) extern int VG_(VG_(VG_(unused)))[(x) ? 1 : -1] \
|
/external/valgrind/coregrind/ |
m_sparsewa.c | 123 // if (0) VG_(printf)("PUSH, old sp = %d\n", sp); 138 // if (0) VG_(printf)("POP, old sp = %d\n", sp+1); 152 VG_(memset)(levelN, 0, sizeof(*levelN)); 161 VG_(memset)(level0, 0, sizeof(*level0)); 169 void VG_(initIterSWA) ( SparseWA* swa ) 176 Bool VG_(nextIterSWA)( SparseWA* swa, 234 SparseWA* VG_(newSWA) ( void*(*alloc_nofail)(const HChar* cc, SizeT), 243 VG_(memset)(swa, 0, sizeof(*swa)); 268 void VG_(deleteSWA) ( SparseWA* swa ) 276 Bool VG_(lookupSWA) ( const SparseWA* swa [all...] |
m_vki.c | 62 requirement bites us is in the VG_(sigfillset) etc functions in 65 void VG_(vki_do_initial_consistency_checks) ( void )
|
/external/valgrind/drd/ |
drd_load_store.c | 126 VG_(free)(vc); 128 == VG_(get_running_tid)()); 150 vg_tid = VG_(get_running_tid)(); 158 VG_(maybe_record_error)(vg_tid, GenericErr, VG_(get_IP)(vg_tid), 170 VG_(maybe_record_error)(vg_tid, DataRaceErr, VG_(get_IP)(vg_tid), 183 == DRD_(VgThreadIdToDrdThreadId)(VG_(get_running_tid()))); 249 == DRD_(VgThreadIdToDrdThreadId)(VG_(get_running_tid()))); 334 //VG_(printf)(" (%s)\n", result ? "True" : "False") [all...] |
drd_bitmap.h | 513 bm2 = VG_(OSetGen_Lookup)(bm->oset, &a1); 538 bm2 = VG_(OSetGen_Lookup)(bm->oset, &a1); 551 VG_(memset)(&bm2->bm1, 0, sizeof(bm2->bm1)); 573 bm2 = VG_(OSetGen_AllocNode)(bm->oset, sizeof(*bm2)); 575 VG_(OSetGen_Insert)(bm->oset, bm2); 589 VG_(memcpy)(&bm2_copy->bm1, &bm2->bm1, sizeof(bm2->bm1)); 619 bm2 = VG_(OSetGen_Lookup)(bm->oset, &a1); 653 bm2 = VG_(OSetGen_Remove)(bm->oset, &a1); 654 VG_(OSetGen_FreeNode)(bm->oset, bm2);
|
/external/valgrind/drd/tests/ |
unit_bitmap.c | 27 void* VG_(malloc)(const HChar* cc, SizeT nbytes) 29 void VG_(free)(void* p) 31 void VG_(assert_fail)(Bool isCore, const HChar* assertion, const HChar* file, 47 void* VG_(memset)(void *s, Int c, SizeT sz) 49 void* VG_(memcpy)(void *d, const void *s, SizeT sz) 51 void* VG_(memmove)(void *d, const void *s, SizeT sz) 53 Int VG_(memcmp)(const void* s1, const void* s2, SizeT n) 55 UInt VG_(printf)(const HChar *format, ...) 57 UInt VG_(message)(VgMsgKind kind, const HChar* format, ...) 61 void VG_(vcbprintf)(void(*char_sink)(HChar, void* opaque) [all...] |
/external/valgrind/memcheck/ |
mc_translate.c | 38 #include "pub_tool_machine.h" // VG_(fnptr_to_fnentry) 249 from VG_(indexXA)(mce->tmpMap) are invalidated. */ 258 newIx = VG_(addToXA)( mce->tmpMap, &ent ); 269 /* VG_(indexXA) range-checks 'orig', hence no need to check 271 ent = (TempMapEnt*)VG_(indexXA)( mce->tmpMap, (Word)orig ); 277 from VG_(indexXA) are invalid. */ 278 ent = (TempMapEnt*)VG_(indexXA)( mce->tmpMap, (Word)orig ); 299 /* VG_(indexXA) range-checks 'orig', hence no need to check 301 ent = (TempMapEnt*)VG_(indexXA)( mce->tmpMap, (Word)orig ); 307 from VG_(indexXA) are invalid. * [all...] |
/external/valgrind/coregrind/m_gdbserver/ |
regcache.c | 228 VG_(dmemcpy) (register_data_for_supply (n, 0, &new), 239 VG_(dmemcpy) (register_data_for_supply (n, 0, &new), 252 VG_(memcpy) (buf, register_data (n, 1), register_size (n));
|
/external/valgrind/VEX/useful/ |
test_main.c | 477 #define VG_(xxxx) xxxx 704 VG_(tool_panic)("memcheck:shadowType"); 718 default: VG_(tool_panic)("memcheck:definedOfType"); 831 VG_(printf)("\n"); ppIRType(vty); VG_(printf)("\n"); 832 VG_(tool_panic)("memcheck:mkUifU"); [all...] |