/external/valgrind/coregrind/ |
D | m_main.c | 305 VG_(log_output_sink).fd = 1; in usage_NORETURN() 306 VG_(log_output_sink).is_socket = False; in usage_NORETURN() 308 if (VG_(needs).malloc_replacement) { in usage_NORETURN() 309 VG_(sprintf)(default_alignment, "%d", VG_MIN_MALLOC_SZB); in usage_NORETURN() 310 VG_(sprintf)(default_redzone_size, "%lu", VG_(tdict).tool_client_redzone_szB); in usage_NORETURN() 312 VG_(strcpy)(default_alignment, "not used by this tool"); in usage_NORETURN() 313 VG_(strcpy)(default_redzone_size, "not used by this tool"); in usage_NORETURN() 316 VG_(printf)(usage1, in usage_NORETURN() 317 VG_(clo_vgdb_error) /* int */, in usage_NORETURN() 320 VG_(clo_vgdb_poll) /* int */, in usage_NORETURN() [all …]
|
D | m_options.c | 48 VexControl VG_(clo_vex_control); 49 VexRegisterUpdates VG_(clo_px_file_backed) = VexRegUpd_INVALID; 51 Bool VG_(clo_error_limit) = True; 52 Int VG_(clo_error_exitcode) = 0; 53 HChar *VG_(clo_error_markers)[2] = {NULL, NULL}; 59 VgVgdb VG_(clo_vgdb) = Vg_VgdbNo; // currently disabled on Android 61 VgVgdb VG_(clo_vgdb) = Vg_VgdbYes; 63 Int VG_(clo_vgdb_poll) = 5000; 64 Int VG_(clo_vgdb_error) = 999999999; 65 UInt VG_(clo_vgdb_stop_at) = 0; [all …]
|
D | pub_core_options.h | 43 extern Bool VG_(clo_error_limit); 47 extern Int VG_(clo_error_exitcode); 53 extern HChar *VG_(clo_error_markers)[2]; 65 extern VgVgdb VG_(clo_vgdb); 67 extern Int VG_(clo_vgdb_poll); 82 extern UInt VG_(clo_vgdb_stop_at); // A set of VgdbStopAt reasons. 85 extern const HChar *VG_(clo_vgdb_prefix); 89 extern Bool VG_(clo_vgdb_shadow_registers); 93 extern Int VG_(clo_gen_suppressions); 95 extern Int VG_(clo_sanity_level); [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_redir.c | 389 void VG_(redir_notify_new_DebugInfo)( const DebugInfo* newdi ) in VG_() function 420 newdi_soname = VG_(DebugInfo_get_soname)(newdi); in VG_() 448 const HChar* newdi_filename = VG_(DebugInfo_get_filename)(newdi); in VG_() 449 const HChar* newdi_basename = VG_(basename) (newdi_filename); in VG_() 450 if (VG_(strncmp) (newdi_basename, "vgpreload_", 10) == 0) { in VG_() 461 newdi_res = VG_(stat)(newdi_filename, &newdi_stat); in VG_() 463 HChar in_vglib_filename[VG_(strlen)(VG_(libdir)) + 1 + in VG_() 464 VG_(strlen)(newdi_basename) + 1]; in VG_() 465 VG_(sprintf)(in_vglib_filename, "%s/%s", VG_(libdir), newdi_basename); in VG_() 467 in_vglib_res = VG_(stat)(in_vglib_filename, &in_vglib_stat); in VG_() [all …]
|
D | m_tooliface.c | 37 VgToolInterface VG_(tdict); 42 void VG_(basic_tool_funcs)( in VG_() function 50 VG_(tdict).tool_post_clo_init = post_clo_init; in VG_() 51 VG_(tdict).tool_instrument = instrument; in VG_() 52 VG_(tdict).tool_fini = fini; in VG_() 60 VgDetails VG_(details) = { 71 extern void VG_(details_##detail)(type detail) \ 73 VG_(details).detail = detail; \ 87 VgNeeds VG_(needs) = { 105 Bool VG_(sanity_check_needs)(const HChar** failmsg) in VG_() function [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_errormgr.c | 148 ExeContext* VG_(get_error_where) ( const Error* err ) in VG_() function 153 ErrorKind VG_(get_error_kind) ( const Error* err ) in VG_() function 158 Addr VG_(get_error_address) ( const Error* err ) in VG_() function 163 const HChar* VG_(get_error_string) ( const Error* err ) in VG_() function 168 void* VG_(get_error_extra) ( const Error* err ) in VG_() function 173 UInt VG_(get_n_errs_found)( void ) in VG_() function 178 UInt VG_(get_n_errs_shown)( void ) in VG_() function 247 SuppKind VG_(get_supp_kind) ( const Supp* su ) in VG_() function 252 HChar* VG_(get_supp_string) ( const Supp* su ) in VG_() function 257 void* VG_(get_supp_extra) ( const Supp* su ) in VG_() function [all …]
|
D | m_libcassert.c | 267 if (status != 0 && VG_(gdbserver_stop_at) (VgdbStopAt_ValgrindAbExit)) { in exit_wrk() 268 if (VG_(gdbserver_init_done)()) { in exit_wrk() 269 VG_(umsg)("(action at valgrind abnormal exit) vgdb me ... \n"); in exit_wrk() 270 VG_(gdbserver) (atid); in exit_wrk() 272 VG_(umsg)("(action at valgrind abnormal exit) " in exit_wrk() 276 if (VG_(gdbserver_init_done)()) { in exit_wrk() 279 VG_(gdbserver_exit) (atid, in exit_wrk() 285 VG_(exit_now) (status); in exit_wrk() 292 void VG_(exit_now)( Int status ) in VG_() function 295 (void)VG_(do_syscall1)(__NR_exit_group, status ); in VG_() [all …]
|
D | m_libcproc.c | 64 HChar** VG_(client_envp) = NULL; 67 const HChar *VG_(libdir) = VG_LIBDIR; 69 const HChar *VG_(LD_PRELOAD_var_name) = 80 HChar *VG_(getenv)(const HChar *varname) in VG_() function 83 vg_assert( VG_(client_envp) ); in VG_() 84 n = VG_(strlen)(varname); in VG_() 85 for (i = 0; VG_(client_envp)[i] != NULL; i++) { in VG_() 86 HChar* s = VG_(client_envp)[i]; in VG_() 87 if (VG_(strncmp)(varname, s, n) == 0 && s[n] == '=') { in VG_() 95 void VG_(env_unsetenv) ( HChar **env, const HChar *varname, in VG_() function [all …]
|
D | m_commandline.c | 48 (void) VG_(addToXA)( xa, (void*)(&str) ); in add_string() 66 HChar filename[VG_(strlen)(dir) + 1 + VG_(strlen)(dot_valgrindrc) + 1]; in read_dot_valgrindrc() 67 VG_(sprintf)(filename, "%s/%s", dir, dot_valgrindrc); in read_dot_valgrindrc() 69 fd = VG_(open)(filename, 0, VKI_S_IRUSR); in read_dot_valgrindrc() 71 Int res = VG_(fstat)( sr_Res(fd), &stat_buf ); in read_dot_valgrindrc() 73 if (!res && stat_buf.uid == VG_(geteuid)() in read_dot_valgrindrc() 76 f_clo = VG_(malloc)("commandline.rdv.1", stat_buf.size+1); in read_dot_valgrindrc() 77 n = VG_(read)(sr_Res(fd), f_clo, stat_buf.size); in read_dot_valgrindrc() 84 VG_(message)(Vg_UserMsg, in read_dot_valgrindrc() 88 VG_(close)(sr_Res(fd)); in read_dot_valgrindrc() [all …]
|
D | m_sbprofile.c | 57 VG_(sprintf)(ecs_txt, "%'llu ecs done", ecs_done); in show_SB_profile() 59 VG_(strcpy)(ecs_txt, "for the entire run"); in show_SB_profile() 62 vg_assert(VG_(clo_profyle_sbs)); in show_SB_profile() 64 VG_(printf)("\n"); in show_SB_profile() 65 VG_(printf)("<<<---<<<---<<<---<<<---<<<---<<<---<<<---" in show_SB_profile() 67 VG_(printf)("<<<---<<<---<<<---<<<---<<<---<<<---<<<---" in show_SB_profile() 69 VG_(printf)("\n"); in show_SB_profile() 70 VG_(printf)("<<< BEGIN SB Profile #%u (%s)\n", in show_SB_profile() 72 VG_(printf)("<<<\n"); in show_SB_profile() 73 VG_(printf)("\n"); in show_SB_profile() [all …]
|
/external/valgrind/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[%u]: %s\n", tid, what ); in print_sched_event() 188 vg_assert(VG_(clo_profyle_interval) > 0); in maybe_show_sb_profile() [all …]
|
/external/valgrind/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/coregrind/m_gdbserver/ |
D | valgrind-low-ppc64.c | 178 ThreadState* tst = VG_(get_ThreadState)(tid); in transfer_register() 188 case 0: VG_(transfer) (&ppc64->guest_GPR0, buf, dir, size, mod); break; in transfer_register() 189 case 1: VG_(transfer) (&ppc64->guest_GPR1, buf, dir, size, mod); break; in transfer_register() 190 case 2: VG_(transfer) (&ppc64->guest_GPR2, buf, dir, size, mod); break; in transfer_register() 191 case 3: VG_(transfer) (&ppc64->guest_GPR3, buf, dir, size, mod); break; in transfer_register() 192 case 4: VG_(transfer) (&ppc64->guest_GPR4, buf, dir, size, mod); break; in transfer_register() 193 case 5: VG_(transfer) (&ppc64->guest_GPR5, buf, dir, size, mod); break; in transfer_register() 194 case 6: VG_(transfer) (&ppc64->guest_GPR6, buf, dir, size, mod); break; in transfer_register() 195 case 7: VG_(transfer) (&ppc64->guest_GPR7, buf, dir, size, mod); break; in transfer_register() 196 case 8: VG_(transfer) (&ppc64->guest_GPR8, buf, dir, size, mod); break; in transfer_register() [all …]
|
D | valgrind-low-ppc32.c | 181 ThreadState* tst = VG_(get_ThreadState)(tid); in transfer_register() 191 case 0: VG_(transfer) (&ppc32->guest_GPR0, buf, dir, size, mod); break; in transfer_register() 192 case 1: VG_(transfer) (&ppc32->guest_GPR1, buf, dir, size, mod); break; in transfer_register() 193 case 2: VG_(transfer) (&ppc32->guest_GPR2, buf, dir, size, mod); break; in transfer_register() 194 case 3: VG_(transfer) (&ppc32->guest_GPR3, buf, dir, size, mod); break; in transfer_register() 195 case 4: VG_(transfer) (&ppc32->guest_GPR4, buf, dir, size, mod); break; in transfer_register() 196 case 5: VG_(transfer) (&ppc32->guest_GPR5, buf, dir, size, mod); break; in transfer_register() 197 case 6: VG_(transfer) (&ppc32->guest_GPR6, buf, dir, size, mod); break; in transfer_register() 198 case 7: VG_(transfer) (&ppc32->guest_GPR7, buf, dir, size, mod); break; in transfer_register() 199 case 8: VG_(transfer) (&ppc32->guest_GPR8, buf, dir, size, mod); break; in transfer_register() [all …]
|
D | server.c | 106 if (VG_(log_output_sink).fd != initial_valgrind_sink.fd in reset_valgrind_sink() 108 VG_(log_output_sink).fd = initial_valgrind_sink.fd; in reset_valgrind_sink() 109 VG_(umsg) ("Reset valgrind output to log (%s)\n", in reset_valgrind_sink() 117 VG_(write) (initial_valgrind_sink.fd, msg, strlen(msg)); in print_to_initial_valgrind_sink() 124 VG_(umsg) ("%s", msg); in kill_request() 125 VG_(exit) (0); in kill_request() 153 void VG_(print_all_stats) (Bool memory_stats, Bool tool_stats) in VG_() function 156 VG_(message)(Vg_DebugMsg, "\n"); in VG_() 157 VG_(message)(Vg_DebugMsg, in VG_() 159 VG_(sanity_check_malloc_all)(); in VG_() [all …]
|
/external/valgrind/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/coregrind/m_initimg/ |
D | initimg-darwin.c | 68 vg_assert( VG_(args_the_exename) != NULL); in load_client() 69 exe_name = ML_(find_executable)( VG_(args_the_exename) ); in load_client() 72 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); in load_client() 73 VG_(exit)(127); // 127 is Posix NOTFOUND in load_client() 76 VG_(memset)(info, 0, sizeof(*info)); in load_client() 77 ret = VG_(do_exec)(exe_name, info); in load_client() 83 res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR); in load_client() 85 VG_(cl_exec_fd) = sr_Res(res); in load_client() 123 Int ld_preload_len = VG_(strlen)( ld_preload ); in setup_client_env() 124 Int dyld_cache_len = VG_(strlen)( dyld_cache ); in setup_client_env() [all …]
|
D | initimg-linux.c | 77 vg_assert( VG_(args_the_exename) != NULL); in load_client() 78 exe_name = ML_(find_executable)( VG_(args_the_exename) ); in load_client() 81 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); in load_client() 82 VG_(exit)(127); // 127 is Posix NOTFOUND in load_client() 85 VG_(memset)(info, 0, sizeof(*info)); in load_client() 86 ret = VG_(do_exec)(exe_name, info); in load_client() 88 VG_(printf)("valgrind: could not execute '%s'\n", exe_name); in load_client() 89 VG_(exit)(1); in load_client() 96 res = VG_(open)(exe_name, VKI_O_RDONLY, VKI_S_IRUSR); in load_client() 98 VG_(cl_exec_fd) = sr_Res(res); in load_client() [all …]
|
D | initimg-solaris.c | 72 vg_assert(VG_(args_the_exename)); in load_client() 73 exe_name = ML_(find_executable)(VG_(args_the_exename)); in load_client() 76 VG_(printf)("valgrind: %s: command not found\n", VG_(args_the_exename)); in load_client() 78 VG_(exit)(127); in load_client() 82 VG_(memset)(info, 0, sizeof(*info)); in load_client() 83 ret = VG_(do_exec)(exe_name, info); in load_client() 85 VG_(printf)("valgrind: could not execute '%s'\n", exe_name); in load_client() 86 VG_(exit)(1); in load_client() 93 if (VG_(strlen)(exe_name) + 1 > out_exe_name_size) { in load_client() 95 VG_(printf)("valgrind: execname %s is too long\n", exe_name); in load_client() [all …]
|
/external/valgrind/coregrind/m_dispatch/ |
D | dispatch-ppc64le-linux.S | 86 .globl VG_(disp_run_translations) 88 .type VG_(disp_run_translations),@function 89 VG_(disp_run_translations): 90 .type .VG_(disp_run_translations),@function 94 VG_(disp_run_translations): 95 .quad .VG_(disp_run_translations),.TOC.@tocbase,0 97 .type .VG_(disp_run_translations),@function 99 .globl .VG_(disp_run_translations) 100 .VG_(disp_run_translations): 104 .localentry VG_(disp_run_translations), .-VG_(disp_run_translations) [all …]
|
/external/valgrind/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/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/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 …]
|