/external/valgrind/main/coregrind/ |
D | m_main.c | 277 VG_(log_output_sink).fd = 1; in usage_NORETURN() 278 VG_(log_output_sink).is_socket = False; in usage_NORETURN() 280 if (VG_(needs).malloc_replacement) { in usage_NORETURN() 281 VG_(sprintf)(default_alignment, "%d", VG_MIN_MALLOC_SZB); in usage_NORETURN() 282 VG_(sprintf)(default_redzone_size, "%lu", VG_(tdict).tool_client_redzone_szB); in usage_NORETURN() 284 VG_(strcpy)(default_alignment, "not used by this tool"); in usage_NORETURN() 285 VG_(strcpy)(default_redzone_size, "not used by this tool"); in usage_NORETURN() 288 VG_(printf)(usage1, in usage_NORETURN() 289 VG_(clo_vgdb_error) /* int */, in usage_NORETURN() 293 VG_(clo_vgdb_poll) /* int */, in usage_NORETURN() [all …]
|
D | pub_core_options.h | 52 extern Bool VG_(clo_error_limit); 56 extern Int VG_(clo_error_exitcode); 68 extern VgVgdb VG_(clo_vgdb); 70 extern Int VG_(clo_vgdb_poll); 90 extern UInt VG_(clo_vgdb_stop_at); // A set of VgdbStopAt reasons. 93 extern const HChar *VG_(clo_vgdb_prefix); 97 extern Bool VG_(clo_vgdb_shadow_registers); 100 extern Bool VG_(clo_db_attach); 102 extern const HChar* VG_(clo_db_command); 105 extern Int VG_(clo_gen_suppressions); [all …]
|
D | m_options.c | 46 VexControl VG_(clo_vex_control); 47 Bool VG_(clo_error_limit) = True; 48 Int VG_(clo_error_exitcode) = 0; 52 VgVgdb VG_(clo_vgdb) = Vg_VgdbNo; // currently disabled on Android 54 VgVgdb VG_(clo_vgdb) = Vg_VgdbYes; 56 Int VG_(clo_vgdb_poll) = 5000; 57 Int VG_(clo_vgdb_error) = 999999999; 58 UInt VG_(clo_vgdb_stop_at) = 0; 59 const HChar *VG_(clo_vgdb_prefix) = NULL; 60 const HChar *VG_(arg_vgdb_prefix) = NULL; [all …]
|
D | pub_core_trampoline.h | 58 extern Addr VG_(trampoline_stuff_start); 59 extern Addr VG_(trampoline_stuff_end); 62 extern Addr VG_(x86_linux_SUBST_FOR_sigreturn); 63 extern Addr VG_(x86_linux_SUBST_FOR_rt_sigreturn); 64 extern Char* VG_(x86_linux_REDIR_FOR_index) ( const Char*, Int ); 65 extern UInt VG_(x86_linux_REDIR_FOR_strlen)( void* ); 69 extern Addr VG_(amd64_linux_SUBST_FOR_rt_sigreturn); 70 extern Addr VG_(amd64_linux_REDIR_FOR_vgettimeofday); 71 extern Addr VG_(amd64_linux_REDIR_FOR_vtime); 72 extern Addr VG_(amd64_linux_REDIR_FOR_vgetcpu); [all …]
|
D | m_tooliface.c | 36 VgToolInterface VG_(tdict); 41 void VG_(basic_tool_funcs)( in VG_() function 49 VG_(tdict).tool_post_clo_init = post_clo_init; in VG_() 50 VG_(tdict).tool_instrument = instrument; in VG_() 51 VG_(tdict).tool_fini = fini; in VG_() 59 VgDetails VG_(details) = { 70 extern void VG_(details_##detail)(type detail) \ 72 VG_(details).detail = detail; \ 86 VgNeeds VG_(needs) = { 104 Bool VG_(sanity_check_needs)(const HChar** failmsg) in VG_() function [all …]
|
D | m_errormgr.c | 147 ExeContext* VG_(get_error_where) ( Error* err ) in VG_() function 152 ErrorKind VG_(get_error_kind) ( Error* err ) in VG_() function 157 Addr VG_(get_error_address) ( Error* err ) in VG_() function 162 const HChar* VG_(get_error_string) ( Error* err ) in VG_() function 167 void* VG_(get_error_extra) ( Error* err ) in VG_() function 172 UInt VG_(get_n_errs_found)( void ) in VG_() function 177 UInt VG_(get_n_errs_shown)( void ) in VG_() function 246 SuppKind VG_(get_supp_kind) ( Supp* su ) in VG_() function 251 HChar* VG_(get_supp_string) ( Supp* su ) in VG_() function 256 void* VG_(get_supp_extra) ( Supp* su ) in VG_() function [all …]
|
D | m_sbprofile.c | 59 VG_(sprintf)(ecs_txt, "%'llu ecs done", ecs_done); in show_SB_profile() 61 VG_(strcpy)(ecs_txt, "for the entire run"); in show_SB_profile() 64 vg_assert(VG_(clo_profyle_sbs)); in show_SB_profile() 66 VG_(printf)("\n"); in show_SB_profile() 67 VG_(printf)("<<<---<<<---<<<---<<<---<<<---<<<---<<<---" in show_SB_profile() 69 VG_(printf)("<<<---<<<---<<<---<<<---<<<---<<<---<<<---" in show_SB_profile() 71 VG_(printf)("\n"); in show_SB_profile() 72 VG_(printf)("<<< BEGIN SB Profile #%u (%s)\n", in show_SB_profile() 74 VG_(printf)("<<<\n"); in show_SB_profile() 75 VG_(printf)("\n"); in show_SB_profile() [all …]
|
D | m_redir.c | 390 void VG_(redir_notify_new_DebugInfo)( DebugInfo* newdi ) in VG_() function 412 newdi_soname = VG_(DebugInfo_get_soname)(newdi); in VG_() 440 const HChar* newdi_filename = VG_(DebugInfo_get_filename)(newdi); in VG_() 441 const HChar* newdi_basename = VG_(basename) (newdi_filename); in VG_() 442 if (VG_(strncmp) (newdi_basename, "vgpreload_", 10) == 0) { in VG_() 454 newdi_res = VG_(stat)(newdi_filename, &newdi_stat); in VG_() 456 VG_(strncpy) (in_vglib_filename, VG_(libdir), VKI_PATH_MAX); in VG_() 457 VG_(strncat) (in_vglib_filename, "/", VKI_PATH_MAX); in VG_() 458 VG_(strncat) (in_vglib_filename, newdi_basename, VKI_PATH_MAX); in VG_() 459 in_vglib_res = VG_(stat)(in_vglib_filename, &in_vglib_stat); in VG_() [all …]
|
D | m_trampoline.S | 54 .global VG_(trampoline_stuff_start) 55 VG_(trampoline_stuff_start): 57 .global VG_(x86_linux_SUBST_FOR_sigreturn) 58 VG_(x86_linux_SUBST_FOR_sigreturn): 68 .global VG_(x86_linux_SUBST_FOR_rt_sigreturn) 69 VG_(x86_linux_SUBST_FOR_rt_sigreturn): 90 .global VG_(x86_linux_REDIR_FOR_index) 91 .type VG_(x86_linux_REDIR_FOR_index), @function 92 VG_(x86_linux_REDIR_FOR_index): 113 .size VG_(x86_linux_REDIR_FOR_index), .-VG_(x86_linux_REDIR_FOR_index) [all …]
|
D | m_commandline.c | 48 (void) VG_(addToXA)( xa, (void*)(&str) ); in add_string() 64 VG_(snprintf)(filename, VKI_PATH_MAX, "%s/.valgrindrc", in read_dot_valgrindrc() 66 fd = VG_(open)(filename, 0, VKI_S_IRUSR); in read_dot_valgrindrc() 68 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc() 70 if (!res && stat_buf.uid == VG_(geteuid)() in read_dot_valgrindrc() 73 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1); in read_dot_valgrindrc() 75 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc() 82 VG_(message)(Vg_UserMsg, in read_dot_valgrindrc() 86 VG_(close)(sr_Res(fd)); in read_dot_valgrindrc() 103 while (VG_(isspace)(*cp)) cp++; in add_args_from_string() [all …]
|
D | m_signals.c | 244 Int VG_(max_signal) = _VKI_NSIG; 273 VG_(mk_SysRes_x86_linux)( (uc)->uc_mcontext.eax ) 285 VG_(mk_SysRes_amd64_linux)( (uc)->uc_mcontext.rax ) 341 VG_(mk_SysRes_ppc32_linux)( \ 366 return VG_(mk_SysRes_ppc64_linux)( r3, err ); in VG_UCONTEXT_SYSCALL_SYSRES() 379 VG_(mk_SysRes_arm_linux)( (uc)->uc_mcontext.arm_r0 ) 394 VG_(mk_SysRes_arm64_linux)( (uc)->uc_mcontext.regs[0] ) 446 return VG_(mk_SysRes_x86_darwin)( scclass, err ? True : False, in VG_UCONTEXT_SYSCALL_SYSRES() 502 return VG_(mk_SysRes_amd64_darwin)( scclass, err ? True : False, in VG_UCONTEXT_SYSCALL_SYSRES() 522 VG_(mk_SysRes_s390x_linux)((uc)->uc_mcontext.regs.gprs[2]) [all …]
|
D | m_libcassert.c | 241 if (status != 0 && VG_(gdbserver_stop_at) (VgdbStopAt_ValgrindAbExit)) { in exit_wrk() 242 if (VG_(gdbserver_init_done)()) { in exit_wrk() 243 VG_(umsg)("(action at valgrind abnormal exit) vgdb me ... \n"); in exit_wrk() 244 VG_(gdbserver) (atid); in exit_wrk() 246 VG_(umsg)("(action at valgrind abnormal exit) " in exit_wrk() 250 if (VG_(gdbserver_init_done)()) { in exit_wrk() 253 VG_(gdbserver_exit) (atid, in exit_wrk() 260 (void)VG_(do_syscall1)(__NR_exit_group, status ); in exit_wrk() 262 (void)VG_(do_syscall1)(__NR_exit, status ); in exit_wrk() 274 void VG_(exit)( Int status ) in VG_() function [all …]
|
D | m_libcproc.c | 63 HChar** VG_(client_envp) = NULL; 66 const HChar *VG_(libdir) = VG_LIBDIR; 68 const HChar *VG_(LD_PRELOAD_var_name) = 79 HChar *VG_(getenv)(const HChar *varname) in VG_() function 82 vg_assert( VG_(client_envp) ); in VG_() 83 n = VG_(strlen)(varname); in VG_() 84 for (i = 0; VG_(client_envp)[i] != NULL; i++) { in VG_() 85 HChar* s = VG_(client_envp)[i]; in VG_() 86 if (VG_(strncmp)(varname, s, n) == 0 && s[n] == '=') { in VG_() 93 void VG_(env_unsetenv) ( HChar **env, const HChar *varname ) in VG_() function [all …]
|
/external/valgrind/main/coregrind/m_scheduler/ |
D | scheduler.c | 112 Bool VG_(in_generated_code) = False; 141 /*global*/ UInt VG_(stats__n_xindirs_32) = 0; 142 /*global*/ UInt VG_(stats__n_xindir_misses_32) = 0; 148 void VG_(print_scheduler_stats)(void) in VG_() function 150 VG_(message)(Vg_DebugMsg, in VG_() 152 VG_(message)(Vg_DebugMsg, in VG_() 157 VG_(message)(Vg_DebugMsg, in VG_() 160 VG_(message)(Vg_DebugMsg, in VG_() 178 VG_(message)(Vg_DebugMsg, " SCHED[%d]: %s\n", tid, what ); in print_sched_event() 188 vg_assert(VG_(clo_profyle_interval) > 0); in maybe_show_sb_profile() [all …]
|
/external/valgrind/main/drd/ |
D | drd_error.c | 63 if (VG_(clo_xml)) { in DRD_() 64 VG_(printf_xml)(" <trace><text>"); in DRD_() 65 VG_(vprintf_xml)(format, vargs); in DRD_() 66 VG_(printf_xml)("</text></trace>\n"); in DRD_() 68 VG_(vmessage)(Vg_UserMsg, format, vargs); in DRD_() 69 VG_(message)(Vg_UserMsg, "\n"); in DRD_() 78 if (VG_(clo_xml)) { in DRD_() 79 VG_(printf_xml)(" <trace><text>"); in DRD_() 80 VG_(vprintf_xml)(format, vargs); in DRD_() 81 VG_(printf_xml)("</text>\n"); in DRD_() [all …]
|
/external/valgrind/main/exp-sgcheck/ |
D | pc_main.c | 60 VG_(printf)("SGCheck doesn't work on Darwin yet, sorry.\n"); in pc_pre_clo_init() 61 VG_(exit)(1); in pc_pre_clo_init() 65 VG_(printf)("SGCheck doesn't work on s390x yet, sorry.\n"); in pc_pre_clo_init() 66 VG_(exit)(1); in pc_pre_clo_init() 69 VG_(printf)("SGCheck doesn't work on PPC yet, sorry.\n"); in pc_pre_clo_init() 70 VG_(exit)(1); in pc_pre_clo_init() 73 VG_(printf)("SGCheck doesn't work on ARM yet, sorry.\n"); in pc_pre_clo_init() 74 VG_(exit)(1); in pc_pre_clo_init() 77 VG_(printf)("SGCheck doesn't work on MIPS yet, sorry.\n"); in pc_pre_clo_init() 78 VG_(exit)(1); in pc_pre_clo_init() [all …]
|
/external/valgrind/main/coregrind/m_gdbserver/ |
D | valgrind-low-ppc64.c | 179 ThreadState* tst = VG_(get_ThreadState)(tid); in transfer_register() 189 case 0: VG_(transfer) (&ppc64->guest_GPR0, buf, dir, size, mod); break; in transfer_register() 190 case 1: VG_(transfer) (&ppc64->guest_GPR1, buf, dir, size, mod); break; in transfer_register() 191 case 2: VG_(transfer) (&ppc64->guest_GPR2, buf, dir, size, mod); break; in transfer_register() 192 case 3: VG_(transfer) (&ppc64->guest_GPR3, buf, dir, size, mod); break; in transfer_register() 193 case 4: VG_(transfer) (&ppc64->guest_GPR4, buf, dir, size, mod); break; in transfer_register() 194 case 5: VG_(transfer) (&ppc64->guest_GPR5, buf, dir, size, mod); break; in transfer_register() 195 case 6: VG_(transfer) (&ppc64->guest_GPR6, buf, dir, size, mod); break; in transfer_register() 196 case 7: VG_(transfer) (&ppc64->guest_GPR7, buf, dir, size, mod); break; in transfer_register() 197 case 8: VG_(transfer) (&ppc64->guest_GPR8, buf, dir, size, mod); break; in transfer_register() [all …]
|
D | valgrind-low-ppc32.c | 182 ThreadState* tst = VG_(get_ThreadState)(tid); in transfer_register() 192 case 0: VG_(transfer) (&ppc32->guest_GPR0, buf, dir, size, mod); break; in transfer_register() 193 case 1: VG_(transfer) (&ppc32->guest_GPR1, buf, dir, size, mod); break; in transfer_register() 194 case 2: VG_(transfer) (&ppc32->guest_GPR2, buf, dir, size, mod); break; in transfer_register() 195 case 3: VG_(transfer) (&ppc32->guest_GPR3, buf, dir, size, mod); break; in transfer_register() 196 case 4: VG_(transfer) (&ppc32->guest_GPR4, buf, dir, size, mod); break; in transfer_register() 197 case 5: VG_(transfer) (&ppc32->guest_GPR5, buf, dir, size, mod); break; in transfer_register() 198 case 6: VG_(transfer) (&ppc32->guest_GPR6, buf, dir, size, mod); break; in transfer_register() 199 case 7: VG_(transfer) (&ppc32->guest_GPR7, buf, dir, size, mod); break; in transfer_register() 200 case 8: VG_(transfer) (&ppc32->guest_GPR8, buf, dir, size, mod); break; in transfer_register() [all …]
|
D | server.c | 105 if (VG_(log_output_sink).fd != initial_valgrind_sink.fd in reset_valgrind_sink() 107 VG_(log_output_sink).fd = initial_valgrind_sink.fd; in reset_valgrind_sink() 108 VG_(umsg) ("Reset valgrind output to log (%s)\n", in reset_valgrind_sink() 116 VG_(write) (initial_valgrind_sink.fd, msg, strlen(msg)); in print_to_initial_valgrind_sink() 123 VG_(umsg) ("%s", msg); in kill_request() 124 VG_(exit) (0); in kill_request() 152 void VG_(print_all_stats) (Bool memory_stats, Bool tool_stats) in VG_() function 155 VG_(message)(Vg_DebugMsg, "\n"); in VG_() 156 VG_(message)(Vg_DebugMsg, in VG_() 158 VG_(sanity_check_malloc_all)(); in VG_() [all …]
|
D | valgrind-low-arm64.c | 143 ThreadState* tst = VG_(get_ThreadState)(tid); in transfer_register() 153 case 0: VG_(transfer) (&arm->guest_X0, buf, dir, size, mod); break; in transfer_register() 154 case 1: VG_(transfer) (&arm->guest_X1, buf, dir, size, mod); break; in transfer_register() 155 case 2: VG_(transfer) (&arm->guest_X2, buf, dir, size, mod); break; in transfer_register() 156 case 3: VG_(transfer) (&arm->guest_X3, buf, dir, size, mod); break; in transfer_register() 157 case 4: VG_(transfer) (&arm->guest_X4, buf, dir, size, mod); break; in transfer_register() 158 case 5: VG_(transfer) (&arm->guest_X5, buf, dir, size, mod); break; in transfer_register() 159 case 6: VG_(transfer) (&arm->guest_X6, buf, dir, size, mod); break; in transfer_register() 160 case 7: VG_(transfer) (&arm->guest_X7, buf, dir, size, mod); break; in transfer_register() 161 case 8: VG_(transfer) (&arm->guest_X8, buf, dir, size, mod); break; in transfer_register() [all …]
|
/external/valgrind/main/coregrind/m_initimg/ |
D | initimg-darwin.c | 69 vg_assert( VG_(args_the_exename) != NULL); in load_client() 70 exe_name = ML_(find_executable)( VG_(args_the_exename) ); in load_client() 73 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); in load_client() 74 VG_(exit)(127); // 127 is Posix NOTFOUND in load_client() 77 VG_(memset)(info, 0, sizeof(*info)); in load_client() 78 ret = VG_(do_exec)(exe_name, info); in load_client() 84 res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR); in load_client() 86 VG_(cl_exec_fd) = sr_Res(res); in load_client() 124 Int ld_preload_len = VG_(strlen)( ld_preload ); in setup_client_env() 125 Int dyld_cache_len = VG_(strlen)( dyld_cache ); in setup_client_env() [all …]
|
D | initimg-linux.c | 78 vg_assert( VG_(args_the_exename) != NULL); in load_client() 79 exe_name = ML_(find_executable)( VG_(args_the_exename) ); in load_client() 82 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); in load_client() 83 VG_(exit)(127); // 127 is Posix NOTFOUND in load_client() 86 VG_(memset)(info, 0, sizeof(*info)); in load_client() 87 ret = VG_(do_exec)(exe_name, info); in load_client() 89 VG_(printf)("valgrind: could not execute '%s'\n", exe_name); in load_client() 90 VG_(exit)(1); in load_client() 97 res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR); in load_client() 99 VG_(cl_exec_fd) = sr_Res(res); in load_client() [all …]
|
/external/valgrind/main/include/ |
D | pub_tool_tooliface.h | 48 extern void (*VG_(tl_pre_clo_init)) ( void ); 55 void (*VG_(tl_pre_clo_init)) ( void ) = pre_clo_init; 73 extern void VG_(basic_tool_funcs)( 246 extern void VG_(details_name) ( const HChar* name ); 247 extern void VG_(details_version) ( const HChar* version ); 248 extern void VG_(details_description) ( const HChar* description ); 249 extern void VG_(details_copyright_author) ( const HChar* copyright_author ); 254 extern void VG_(details_avg_translation_sizeB) ( UInt size ); 258 extern void VG_(details_bug_reports_to) ( const HChar* bug_reports_to ); 264 extern void VG_(needs_libc_freeres) ( void ); [all …]
|
/external/valgrind/main/coregrind/m_ume/ |
D | main.c | 55 { VG_(match_ELF), VG_(load_ELF) }, 57 { VG_(match_macho), VG_(load_macho) }, 61 { VG_(match_script), VG_(load_script) }, 68 VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd, Bool allow_setuid) in VG_() function 77 res = VG_(open)(exe_name, VKI_O_RDONLY, 0); in VG_() 84 ret = VG_(check_executable)(&is_setuid, exe_name, allow_setuid); in VG_() 86 VG_(close)(fd); in VG_() 87 if (is_setuid && !VG_(clo_xml)) { in VG_() 88 VG_(message)(Vg_UserMsg, "\n"); in VG_() 89 VG_(message)(Vg_UserMsg, in VG_() [all …]
|
/external/valgrind/main/memcheck/tests/ |
D | unit_oset.c | 94 vg_assert( ! VG_(OSetGen_Contains)(oset, &v) ); in example1singleset() 95 vg_assert( ! VG_(OSetGen_Lookup)(oset, &v) ); in example1singleset() 96 vg_assert( ! VG_(OSetGen_Remove)(oset, &v) ); in example1singleset() 97 vg_assert( ! VG_(OSetGen_Next)(oset) ); in example1singleset() 98 vg_assert( 0 == VG_(OSetGen_Size)(oset) ); in example1singleset() 103 vs[i] = VG_(OSetGen_AllocNode)(oset, sizeof(Word)); in example1singleset() 118 VG_(OSetGen_Insert)(oset, vs[i]); in example1singleset() 122 vg_assert( NN == VG_(OSetGen_Size)(oset) ); in example1singleset() 126 assert( VG_(OSetGen_Contains)(oset, vs[i]) ); in example1singleset() 139 VG_(OSetGen_ResetIterAt) (oset, &k); in example1singleset() [all …]
|