/external/valgrind/main/coregrind/m_demangle/ |
demangle.c | 53 Therefore, VG_(demangle) first tries to undo (2). If successful, 89 void VG_(demangle) ( Bool do_cxx_demangling, Bool do_z_demangling, 102 if (VG_(maybe_Z_demangle)( orig, NULL,0,/*soname*/ 109 if (do_cxx_demangling && VG_(clo_demangle)) { 115 VG_(strncpy_safely)(result, demangled, result_size); 116 VG_(arena_free) (VG_AR_DEMANGLE, demangled); 118 VG_(strncpy_safely)(result, orig, result_size); 122 // by calling the (now-removed) function VG_(is_empty_arena)(). But, 146 Bool VG_(maybe_Z_demangle) ( const HChar* sym, 302 VG_(message)(Vg_UserMsg [all...] |
/external/valgrind/main/coregrind/m_sigframe/ |
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-ppc32-aix5.c | 52 #include "pub_core_transtab.h" // VG_(discard_translations) 111 void VG_(sigframe_create) ( ThreadId tid, 131 tst = VG_(get_ThreadState)(tid); 140 VG_(memset)(&frame->lower_guardzone, 0, 512); 141 VG_(memset)(&frame->gst, 0, sizeof(VexGuestPPC32State)); 142 VG_(memset)(&frame->gshadow1, 0, sizeof(VexGuestPPC32State)); 143 VG_(memset)(&frame->gshadow2, 0, sizeof(VexGuestPPC32State)); 177 VG_(discard_translations)( (Addr64)(Addr)&frame->tramp[0], 186 VG_(printf)("pushed signal frame for sig %d; R1 now = %#lx, " 190 VG_(printf)("trampoline is at %p\n", &frame->tramp[0]) [all...] |
sigframe-amd64-linux.c | 222 //:: VG_(memcpy)(buf, env, 7 * sizeof(unsigned long)); 244 //:: VG_(memcpy)(env, buf, 7 * sizeof(long)); 272 //:: VG_(memcpy)(buf, fs, sizeof(*fs)); 282 //:: VG_(memcpy)(buf->_fxsr_env, fx, sizeof(struct i387_fxsave_struct)); 287 //:: if ( VG_(have_ssestate) ) 295 //:: VG_(memcpy)( ®s->m_sse.fsave, buf, sizeof(struct i387_fsave_struct) ); 300 //:: VG_(memcpy)(®s->m_sse.fxsave, &buf->_fxsr_env[0], 309 //:: if ( VG_(have_ssestate) ) { 330 ThreadState *tst = VG_(get_ThreadState)(tid); 333 VG_(memset)(uc, 0, sizeof(*uc)) [all...] |
sigframe-ppc32-linux.c | 50 #include "pub_core_transtab.h" // VG_(discard_translations) 185 VG_(discard_translations)( (Addr64)(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...] |
/external/valgrind/main/coregrind/m_ume/ |
macho.c | 38 #include "pub_core_libcassert.h" // VG_(exit), vg_assert 39 #include "pub_core_libcbase.h" // VG_(memcmp), etc 40 #include "pub_core_libcfile.h" // VG_(open) et al 44 #include "pub_core_mallocfree.h" // VG_(malloc), VG_(free) 45 #include "pub_core_syscall.h" // VG_(strerror) 73 VG_(printf)("%s", str); 79 VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME (%s).\n", 81 VG_(exit)(1); 124 res = VG_(open)(filename, VKI_O_RDONLY, 0) [all...] |
/external/valgrind/main/coregrind/m_syswrap/ |
syswrap-main.c | 41 #include "pub_core_libcproc.h" // For VG_(getpid)() 43 #include "pub_core_scheduler.h" // For VG_({acquire,release}_BigLock), 44 // and VG_(vg_yield) 45 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 48 #include "pub_core_signals.h" // For VG_SIGVGKILL, VG_(poll_signals) 98 /* The main function is VG_(client_syscall). The simulation calls it 103 arcane. See big big comment in VG_(client_syscall). 199 In particular, direct or indirect calls to VG_(poll_signals) after 214 Bool d = VG_(am_notify_munmap)(s->start, s->end+1 - s->start); 217 VG_(discard_translations)(s->start, s->end+1 - s->start) [all...] |
syswrap-ppc32-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-aix32", 104 VG_(acquire_BigLock)(tid, "thread_wrapper(starting new thread)") [all...] |
syswrap-amd64-darwin.c | 40 #include "pub_core_debuginfo.h" // VG_(di_notify_*) 41 #include "pub_core_transtab.h" // VG_(discard_translations) 51 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 99 VG_(memcpy)(&mach->__fpu_xmm0, &vex->guest_XMM0, 16 * sizeof(mach->__fpu_xmm0)); 161 VG_(memcpy)(&vex->guest_XMM0, &mach->__fpu_xmm0, 16 * sizeof(mach->__fpu_xmm0)); 193 ThreadId tid = VG_(alloc_ThreadState)(); 194 ThreadState *tst = VG_(get_ThreadState)(tid); 295 // 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); 301 /* Start the thread with all signals blocked. VG_(scheduler) will 303 VG_(sigfillset)(&blockall) [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-ppc32-linux.c | 46 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 51 #include "pub_core_stacks.h" // VG_(register_stack) 240 ThreadId ctid = VG_(alloc_ThreadState)(); 241 ThreadState* ptst = VG_(get_ThreadState)(ptid); 242 ThreadState* ctst = VG_(get_ThreadState)(ctid); 249 VG_(sigfillset)(&blockall); 251 vg_assert(VG_(is_running_thread)(ptid)); 252 vg_assert(VG_(is_valid_tid)(ctid)); 256 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 316 seg = VG_(am_find_nsegment)(sp) [all...] |
syswrap-x86-linux.c | 52 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 57 #include "pub_core_stacks.h" // VG_(register_stack) 214 ThreadId ctid = VG_(alloc_ThreadState)(); 215 ThreadState* ptst = VG_(get_ThreadState)(ptid); 216 ThreadState* ctst = VG_(get_ThreadState)(ctid); 223 VG_(sigfillset)(&blockall); 225 vg_assert(VG_(is_running_thread)(ptid)); 226 vg_assert(VG_(is_valid_tid)(ctid)); 230 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 281 seg = VG_(am_find_nsegment)((Addr)esp) [all...] |
syswrap-ppc64-linux.c | 46 #include "pub_core_sigframe.h" // For VG_(sigframe_destroy)() 51 #include "pub_core_stacks.h" // VG_(register_stack) 268 ThreadId ctid = VG_(alloc_ThreadState)(); 269 ThreadState* ptst = VG_(get_ThreadState)(ptid); 270 ThreadState* ctst = VG_(get_ThreadState)(ctid); 277 VG_(sigfillset)(&blockall); 279 vg_assert(VG_(is_running_thread)(ptid)); 280 vg_assert(VG_(is_valid_tid)(ctid)); 284 res = VG_(mk_SysRes_Error)( VKI_ENOMEM ); 344 seg = VG_(am_find_nsegment)(sp) [all...] |
/external/valgrind/tsan/ |
ts_valgrind.cc | 51 return VG_(malloc)((HChar*)g_malloc_stack.Top(), size); 54 return VG_(malloc)((HChar*)g_malloc_stack.Top(), size); 57 VG_(free)(p); 60 VG_(free)(p); 64 return VG_(malloc)((HChar*)g_malloc_stack.Top(), size); 68 VG_(free)(ptr); 79 extern "C" void exit(int e) { VG_(exit)(e); } 88 Bool VG_(get_fnname_no_cxx_demangle) ( Addr a, Char* buf, Int nbuf ); 99 if(VG_(get_fnname)(pc, (Char*)g_buff1, kBuffSize)) { 103 if(VG_(get_fnname_no_cxx_demangle)(pc, (Char*)g_buff1, kBuffSize)) [all...] |
/external/valgrind/main/coregrind/m_debuginfo/ |
readstabs.c | 150 VG_(printf) ( "%2d type=%d othr=%d desc=%d " 169 qlen = VG_(strlen)(string); 186 VG_(printf)("found extension string: \"%s\" " 200 VG_(memcpy)(n, qbuf, qidx); 207 VG_(memcpy)(&qbuf[qidx], string, qlen); 211 VG_(printf)("working buf=\"%s\"\n", qbuf); 220 qlen = VG_(strlen)(string); 232 VG_(printf)("made composite: \"%s\"\n", string); 243 VG_(printf)(" @@ bad stabstr size %d\n", stabstr_sz); 262 VG_(message)(Vg_UserMsg, [all...] |
readdwarf3.c | 105 involves a binary search (VG_(lookupXA)) for each access. This is 110 indexing (VG_(indexXA)) wherever possible after that. 113 VG_(indexXA) into pub_tool_xarray.h so it can be inlined at all use 143 #include "pub_core_tooliface.h" /* VG_(needs) */ 160 if (td3) { VG_(printf)(format, ## args); } 190 VG_(memset)(c, 0, sizeof(*c)); 527 VG_(memcpy)(p, block, nbytes); p += nbytes; 562 xa = VG_(newXA)( ML_(dinfo_zalloc), "di.readdwarf3.mgGX.1", 566 { UChar c = 1; /*biasMe*/ VG_(addBytesToXA)( xa, &c, sizeof(c) ); } 609 VG_(addBytesToXA)( xa, &c, sizeof(c) ) [all...] |
/external/valgrind/main/coregrind/m_coredump/ |
coredump-elf.c | 41 #include "pub_core_libcfile.h" // VG_(close) et al 42 #include "pub_core_libcproc.h" // VG_(geteuid), VG_(getegid) 43 #include "pub_core_libcassert.h" // VG_(exit), vg_assert 44 #include "pub_core_mallocfree.h" // VG_(malloc), VG_(free) 94 VG_(memset)(ehdr, 0, sizeof(*ehdr)); 96 VG_(memcpy)(ehdr->e_ident, ELFMAG, SELFMAG); 123 VG_(memset)(phdr, 0, sizeof(*phdr)); 151 return sizeof(ESZ(Nhdr)) + VG_ROUNDUP(VG_(strlen)(n->name)+1, 4) + VG_ROUNDUP(n->note.n_descsz, 4) [all...] |
/external/valgrind/main/coregrind/m_mach/ |
mach_basics.c | 78 void VG_(mach_init)(void)
|
/external/valgrind/main/none/tests/ |
valgrind_cpp_test.cpp | 43 void VG_(assert_fail)(Bool isCore, const Char* expr, const Char* file,
|
/external/valgrind/main/coregrind/ |
launcher-linux.c | 130 VG_(debugLog)(2, "launcher", "selecting platform for '%s'\n", clientname); 135 VG_(debugLog)(2, "launcher", "selecting platform for '%s'\n", clientname); 141 VG_(debugLog)(2, "launcher", "opened '%s'\n", clientname); 149 VG_(debugLog)(2, "launcher", "read %ld bytes from '%s'\n", 220 VG_(debugLog)(2, "launcher", "selected platform '%s'\n", 264 VG_(debugLog_startup)(loglevel, "Stage 1"); 268 VG_(debugLog)(1, "launcher", "tool '%s' requested\n", toolname); 270 VG_(debugLog)(1, "launcher", 296 VG_(debugLog)(1, "launcher", 301 VG_(debugLog)(1, "launcher", "selected platform '%s'\n", platform) [all...] |
m_wordfm.c | 574 which becomes obvious if you use VG_(initIterFM), 575 VG_(initIterAtFM), VG_(nextIterFM), VG_(doneIterFM) to iterate over 579 WordFM* VG_(newFM) ( void* (*alloc_nofail)( HChar*, SizeT ), 605 VG_(memset)(nd, 0, sizeof(AvlNode)); 611 void VG_(deleteFM) ( WordFM* fm, void(*kFin)(UWord), void(*vFin)(UWord) ) 615 VG_(memset)(fm, 0, sizeof(WordFM) ); 620 Bool VG_(addToFM) ( WordFM* fm, UWord k, UWord v ) 638 Bool VG_(delFromFM) ( WordFM* fm [all...] |
/external/valgrind/main/coregrind/m_aspacemgr/ |
aspacemgr-linux.c | 206 * This request is passed to VG_(am_get_advisory). This decides on 211 * Control returns to the wrapper. If VG_(am_get_advisory) has 225 is told of the outcome (VG_(am_notify_client_mmap)), so it can 238 VG_(am_mmap_anon_fixed_client), which do both phases entirely within 331 if (VG_(clo_sanity_level >= 3)) \ 332 aspacem_assert(VG_(am_do_sync_check) \ 383 if (0) VG_(debugLog)(0,"aspacem","allocate_segname %s\n", name); 385 len = VG_(strlen)(name); 394 if (0 == VG_(strcmp)(name, &segnames[i].fname[0])) { 497 VG_(debugLog) [all...] |
/external/valgrind/main/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...] |
/external/valgrind/main/helgrind/ |
libhb_core.c | 46 #include "pub_tool_options.h" // VG_(clo_stats) 383 VG_(printf)("XXXXX bigchunk: abandoning %d bytes\n", 385 shmem__bigchunk_next = VG_(am_shadow_alloc)( sHMEM__BIGCHUNK_SIZE ); 387 VG_(out_of_memory_NORETURN)( 402 if (0) VG_(printf)("alloc_SecMap %p\n",sm); 447 if (VG_(lookupFM)( map_shmem, 470 VG_(addToFM)( map_shmem, (UWord)gaKey, (UWord)sm ); 630 VG_(printf)("SM %p: expand F array from %d to %d\n", 641 VG_(memset)(sm->linesF, 0, sm->linesF_size * sizeof(LineF) ); 666 VG_(printf)("%s","pp_CacheLine(NULL)\n") [all...] |
/external/valgrind/main/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", 185 VG_(printf)("addr: %lx size: %u sets: %d %d", a, size, set1, set2);\ 186 VG_(tool_panic)("item straddles more than two cache sets"); \
|