/external/valgrind/main/coregrind/ |
m_debugger.c | 52 VG_(memset)(®s, 0, sizeof(regs)); 69 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); 73 VG_(memset)(®s, 0, sizeof(regs)); 107 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); 112 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0); 113 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1); 114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2); 115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3); 116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4); 117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5) [all...] |
m_signals.c | 109 VG_(poll_signals), which calls through to VG_(sigtimedwait_zero) to 188 blocked, but we can and do poll for them using VG_(poll_signals). 190 Now, re VG_(poll_signals), it polls the kernel by doing 191 VG_(sigtimedwait_zero). This is trivial on Linux, since it's just a 204 #include "pub_core_debugger.h" // For VG_(start_debugger) 216 #include "pub_core_sigframe.h" // For VG_(sigframe_create)() 217 #include "pub_core_stacks.h" // For VG_(change_stack)() 218 #include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)() 239 Int VG_(max_signal) = _VKI_NSIG [all...] |
pub_core_debuginfo.h | 43 extern void VG_(di_initialise) ( void ); 53 If a call to VG_(di_notify_mmap) causes debug info to be read, then 60 extern ULong VG_(di_notify_mmap)( Addr a, Bool allow_SkFileV ); 62 extern void VG_(di_notify_munmap)( Addr a, SizeT len ); 64 extern void VG_(di_notify_mprotect)( Addr a, SizeT len, UInt prot ); 66 /* this should really return ULong, as per VG_(di_notify_mmap). */ 67 extern void VG_(di_notify_pdb_debuginfo)( Int fd, Addr avma, 81 VG_(di_notify_mmap) just above. */ 82 extern ULong VG_(di_aix5_notify_segchange)( 94 extern void VG_(di_discard_ALL_debuginfo)( void ) [all...] |
m_redir.c | 46 #include "pub_core_tooliface.h" // VG_(needs).malloc_replacement 47 #include "pub_core_machine.h" // VG_(fnptr_to_fnentry) 48 #include "pub_core_aspacemgr.h" // VG_(am_find_nsegment) 50 #include "pub_core_clientstate.h" // VG_(client___libc_freeres_wrapper) 51 #include "pub_core_demangle.h" // VG_(maybe_Z_demangle) 65 The interface is simple. VG_(redir_initialise) initialises and 70 That calls VG_(redir_notify_new_DebugInfo) when a new DebugInfo 87 by VG_(maybe_Z_demangle). 90 call to VG_(redir_notify_delete_DebugInfo). It then removes from 96 VG_(redir_do_lookup) in this module to find out if th [all...] |
pub_core_aspacemgr.h | 62 extern Addr VG_(am_startup) ( Addr sp_at_startup ); 72 // extern NSegment const * VG_(am_find_nsegment) ( Addr a ); 76 extern NSegment const* VG_(am_next_nsegment) ( NSegment* here, Bool fwds ); 85 // extern Bool VG_(am_is_valid_for_client) 88 /* Variant of VG_(am_is_valid_for_client) which allows free areas to 92 extern Bool VG_(am_is_valid_for_client_or_free_or_resvn) 98 extern ULong VG_(am_get_anonsize_total)( void ); 101 extern void VG_(am_show_nsegments) ( Int logLevel, HChar* who ); 110 // extern HChar* VG_(am_get_filename)( NSegment* ); 112 /* VG_(am_get_segment_starts) is also part of this section, but it [all...] |
m_machine.c | 46 Addr VG_(get_IP) ( ThreadId tid ) { 47 return INSTR_PTR( VG_(threads)[tid].arch ); 49 Addr VG_(get_SP) ( ThreadId tid ) { 50 return STACK_PTR( VG_(threads)[tid].arch ); 52 Addr VG_(get_FP) ( ThreadId tid ) { 53 return FRAME_PTR( VG_(threads)[tid].arch ); 56 void VG_(set_IP) ( ThreadId tid, Addr ip ) { 57 INSTR_PTR( VG_(threads)[tid].arch ) = ip; 59 void VG_(set_SP) ( ThreadId tid, Addr sp ) { 60 STACK_PTR( VG_(threads)[tid].arch ) = sp [all...] |
m_libcsignal.c | 54 Int VG_(sigfillset)( vki_sigset_t* set ) 64 Int VG_(sigemptyset)( vki_sigset_t* set ) 74 Bool VG_(isemptysigset)( const vki_sigset_t* set ) 83 Bool VG_(isfullsigset)( const vki_sigset_t* set ) 92 Bool VG_(iseqsigset)( const vki_sigset_t* set1, const vki_sigset_t* set2 ) 102 Int VG_(sigaddset)( vki_sigset_t* set, Int signum ) 113 Int VG_(sigdelset)( vki_sigset_t* set, Int signum ) 124 Int VG_(sigismember) ( const vki_sigset_t* set, Int signum ) 138 void VG_(sigaddset_from_set)( vki_sigset_t* dst, vki_sigset_t* src ) 147 void VG_(sigdelset_from_set)( vki_sigset_t* dst, vki_sigset_t* src [all...] |
m_libcfile.c | 38 #include "pub_core_libcprint.h" // VG_(sprintf) 39 #include "pub_core_libcproc.h" // VG_(getpid), VG_(getppid) 41 #include "pub_core_clientstate.h" // VG_(fd_hard_limit) 56 return VG_(fstat)(fd, &st) == 0; 60 Int VG_(safe_fd)(Int oldfd) 64 vg_assert(VG_(fd_hard_limit) != -1); 66 newfd = VG_(fcntl)(oldfd, VKI_F_DUPFD, VG_(fd_hard_limit)); 68 VG_(close)(oldfd) [all...] |
/external/valgrind/main/coregrind/m_dispatch/ |
dispatch-ppc32-linux.S | 42 /*--- The dispatch loop. VG_(run_innerloop) is used to ---*/ 52 UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); 55 .globl VG_(run_innerloop) 56 .type VG_(run_innerloop), @function 57 VG_(run_innerloop): 61 /* ----- entry point to VG_(run_innerloop) ----- */ 77 lis 5,VG_(machine_ppc32_has_FP)@ha 78 lwz 5,VG_(machine_ppc32_has_FP)@l(5) 130 lis 5,VG_(machine_ppc32_has_VMX)@ha 131 lwz 5,VG_(machine_ppc32_has_VMX)@l(5 [all...] |
dispatch-arm-linux.S | 42 /*--- The dispatch loop. VG_(run_innerloop) is used to ---*/ 52 UWord VG_(run_innerloop) ( void* guest_state, UWord do_profiling ); 55 .globl VG_(run_innerloop) 56 VG_(run_innerloop): 70 beq VG_(run_innerloop__dispatch_unprofiled) 71 b VG_(run_innerloop__dispatch_profiled) 78 .global VG_(run_innerloop__dispatch_unprofiled) 79 VG_(run_innerloop__dispatch_unprofiled): 93 ldr r1, =VG_(dispatch_ctr) 103 ldr r1, =VG_(tt_fast) // r1 = &tt_fast[0 [all...] |
/external/valgrind/main/coregrind/m_initimg/ |
initimg-pathscan.c | 102 HChar buf[VG_(strlen)(entry) + VG_(strlen)(executable_name_in) + 3]; 108 VG_(snprintf)(buf, sizeof(buf), "%s/%s", entry, executable_name_in); 111 if (VG_(is_dir)(buf)) 117 if (VG_(access)(buf, True/*r*/, False/*w*/, True/*x*/) == 0) { 118 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); 121 } else if (VG_(access)(buf, True/*r*/, False/*w*/, False/*x*/) == 0 124 VG_(strncpy)( executable_name_out, buf, VKI_PATH_MAX-1 ); 136 if (VG_(strchr)(exec, '/')) { 138 VG_(strncpy)( executable_name_out, exec, VKI_PATH_MAX-1 ) [all...] |
initimg-aix5.c | 57 #include "pub_core_trampoline.h" /* VG_(ppc32_aix5_do_preloads_then_start_client) */ 58 #include "pub_core_syscall.h" // VG_(do_syscall1) 72 IIFinaliseImageInfo VG_(ii_create_image)( IICreateImageInfo iicii ) 81 VG_(ppc{32,64}_aix5_do_preloads_then_start_client), which uses 104 VG_(memset)( &iifii, 0, sizeof(iifii) ); 107 if (VG_(args_the_exename) == NULL) 108 VG_(err_missing_prog)(); 111 pltool_len = VG_(strlen)( VG_(libdir) ) 113 + VG_(strlen)( vgpreload_ [all...] |
/external/valgrind/main/include/ |
pub_tool_machine.h | 104 Addr VG_(get_IP) ( ThreadId tid ); 105 Addr VG_(get_SP) ( ThreadId tid ); 115 VG_(get_shadow_regs_area) ( ThreadId tid, 119 VG_(set_shadow_regs_area) ( ThreadId tid, 125 void VG_(set_syscall_return_shadows) ( ThreadId tid, 135 extern void VG_(apply_to_GP_regs)(void (*f)(UWord val)); 140 extern void VG_(thread_stack_reset_iter) ( /*OUT*/ThreadId* tid ); 141 extern Bool VG_(thread_stack_next) ( /*MOD*/ThreadId* tid, 146 extern Addr VG_(thread_get_stack_max) ( ThreadId tid ); 149 extern SizeT VG_(thread_get_stack_size) ( ThreadId tid ) [all...] |
pub_tool_aspacemgr.h | 133 extern Int VG_(am_get_segment_starts)( Addr* starts, Int nStarts ); 137 extern NSegment const * VG_(am_find_nsegment) ( Addr a ); 140 extern HChar* VG_(am_get_filename)( NSegment const * ); 143 extern Bool VG_(am_is_valid_for_client) ( Addr start, SizeT len, 147 /* Really just a wrapper around VG_(am_mmap_anon_float_valgrind). */ 148 extern void* VG_(am_shadow_alloc)(SizeT size); 152 extern SysRes VG_(am_munmap_valgrind)( Addr start, SizeT length );
|
pub_tool_libcsignal.h | 40 extern Int VG_(sigprocmask) ( Int how, const vki_sigset_t* set,
|
pub_tool_stacktrace.h | 59 extern UInt VG_(get_StackTrace) ( ThreadId tid, 70 extern void VG_(apply_StackTrace)( 77 extern void VG_(pp_StackTrace) ( StackTrace ips, UInt n_ips ); 80 // calling VG_(get_StackTrace)() then VG_(pp_StackTrace)(). 81 extern void VG_(get_and_pp_StackTrace) ( ThreadId tid, UInt n_ips );
|
pub_tool_threadstate.h | 51 extern ThreadId VG_(get_running_tid) ( void );
|
pub_tool_vkiscnums.h | 42 extern Char* VG_(sysnum_string) (Word sysnum, SizeT n_buf, Char* buf); 44 // This is like VG_(sysnum_string), but prints extra info if needed. It is 46 extern Char* VG_(sysnum_string_extra)(Word sysnum, SizeT n_buf, Char* buf); 51 ({ Char qq_zz_buf[32]; VG_(sysnum_string)(sysnum, 32, qq_zz_buf); }) 53 ({ Char qq_zz_buf[64]; VG_(sysnum_string_extra)(sysnum, 64, qq_zz_buf); })
|
/external/valgrind/main/memcheck/tests/ |
unit_oset.c | 21 // Crudely redirect various VG_(foo)() functions to their libc equivalents. 85 OSet* oset = VG_(OSetGen_Create)(0, 90 vg_assert( ! VG_(OSetGen_Contains)(oset, &v) ); 91 vg_assert( ! VG_(OSetGen_Lookup)(oset, &v) ); 92 vg_assert( ! VG_(OSetGen_Remove)(oset, &v) ); 93 vg_assert( ! VG_(OSetGen_Next)(oset) ); 94 vg_assert( 0 == VG_(OSetGen_Size)(oset) ); 99 vs[i] = VG_(OSetGen_AllocNode)(oset, sizeof(Word)); 113 VG_(OSetGen_Insert)(oset, vs[i]); 117 vg_assert( NN == VG_(OSetGen_Size)(oset) ) [all...] |
/external/valgrind/main/drd/ |
drd_cond.c | 30 #include "pub_tool_errormgr.h" /* VG_(maybe_record_error)() */ 32 #include "pub_tool_libcbase.h" /* VG_(memcmp)() */ 33 #include "pub_tool_libcprint.h" /* VG_(printf)() */ 34 #include "pub_tool_machine.h" /* VG_(get_IP)() */ 35 #include "pub_tool_threadstate.h" /* VG_(get_running_tid)() */ 98 VG_(maybe_record_error)(VG_(get_running_tid)(), 100 VG_(get_IP)(VG_(get_running_tid)()), 118 VG_(maybe_record_error)(VG_(get_running_tid)() [all...] |
drd_semaphore.c | 30 #include "pub_tool_errormgr.h" // VG_(maybe_record_error)() 32 #include "pub_tool_libcprint.h" // VG_(printf)() 33 #include "pub_tool_machine.h" // VG_(get_IP)() 34 #include "pub_tool_mallocfree.h" // VG_(malloc), VG_(free) 35 #include "pub_tool_threadstate.h" // VG_(get_running_tid)() 57 n = VG_(addToXA)(p->last_sem_post_seg, &sg); 59 VG_(message)(Vg_UserMsg, "0x%lx push: added at position %ld/%ld", 60 p->a1, n, VG_(sizeXA)(p->last_sem_post_seg)); 62 tl_assert(*(Segment**)VG_(indexXA)(p->last_sem_post_seg, n) == sg) [all...] |
drd_malloc_wrappers.c | 75 p = VG_(cli_malloc)(align, size); 79 VG_(memset)(p, 0, size); 103 mc = VG_(malloc)("drd.malloc_wrappers.cDC.1", sizeof(DRD_Chunk)); 106 mc->where = VG_(record_ExeContext)(tid, 0); 107 VG_(HT_add_node)(s_malloc_list, mc); 115 VG_(cli_free)(p); 132 mc = VG_(HT_remove)(s_malloc_list, (UWord)p); 138 VG_(free)(mc); 147 return new_block(tid, n, VG_(clo_alignment), /*is_zeroed*/False); 159 return new_block(tid, nmemb*size1, VG_(clo_alignment) [all...] |
drd_barrier.c | 30 #include "pub_tool_errormgr.h" // VG_(maybe_record_error)() 32 #include "pub_tool_libcprint.h" // VG_(printf)() 33 #include "pub_tool_machine.h" // VG_(get_IP)() 34 #include "pub_tool_mallocfree.h" // VG_(malloc)(), VG_(free)() 36 #include "pub_tool_threadstate.h" // VG_(get_running_tid)() 136 p->oset = VG_(OSetGen_Create)(0, 0, VG_(malloc), "drd.barrier.bi.1", 137 VG_(free)); 156 VG_(maybe_record_error)(VG_(get_running_tid)() [all...] |
/external/valgrind/main/coregrind/m_debuginfo/ |
misc.c | 48 v = VG_(arena_malloc)( VG_AR_DINFO, cc, szB ); 50 VG_(memset)(v, 0, szB); 55 VG_(arena_free)( VG_AR_DINFO, v ); 59 return VG_(arena_strdup)( VG_AR_DINFO, cc, str ); 63 UChar* dst = VG_(arena_malloc)( VG_AR_DINFO, cc, nStr ); 65 VG_(memcpy)(dst, str, nStr);
|
/external/valgrind/main/callgrind/ |
debug.c | 44 VG_(printf)("%s", sp+40-s); 54 VG_(printf)("BB %#lx (Obj '%s')", bb_addr(bb), bb->obj->name); 63 VG_(printf)("(none)"); 65 VG_(printf)("%s", cxt->fn[0]->name); 67 VG_(printf)("'%d", rec_index +1); 69 VG_(printf)("'%s", cxt->fn[i]->name); 86 VG_(printf)("Cxt %d" ,cxt->base_number + rec_index); 88 VG_(printf)(" [active=%d]", *pactive); 89 VG_(printf)(": "); 91 VG_(printf)("\n") [all...] |