Lines Matching refs:MC_
1096 Bool MC_(in_ignored_range) ( Addr a ) in MC_() function
1259 if (!MC_(clo_partial_loads_ok)) { in mc_LOADV_128_or_256_slow()
1260 MC_(record_address_error)( VG_(get_running_tid)(), a, szB, False ); in mc_LOADV_128_or_256_slow()
1309 MC_(record_address_error)( VG_(get_running_tid)(), a, szB, False ); in mc_LOADV_128_or_256_slow()
1391 if (!MC_(clo_partial_loads_ok)) { in mc_LOADVn_slow()
1392 MC_(record_address_error)( VG_(get_running_tid)(), a, szB, False ); in mc_LOADVn_slow()
1456 MC_(record_address_error)( VG_(get_running_tid)(), a, szB, False ); in mc_LOADVn_slow()
1544 MC_(record_address_error)( VG_(get_running_tid)(), a, szB, True ); in mc_STOREVn_slow()
1786 void MC_(make_mem_noaccess) ( Addr a, SizeT len ) in MC_() function
1791 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1802 void MC_(make_mem_undefined_w_otag) ( Addr a, SizeT len, UInt otag ) in MC_() function
1807 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1824 MC_(make_mem_undefined_w_otag) ( a, len, ecu | okind ); in make_mem_undefined_w_tid_and_okind()
1836 MC_(make_mem_undefined_w_otag) ( a, len, MC_OKIND_UNKNOWN ); in mc_new_mem_w_tid_no_ECU()
1839 void MC_(make_mem_defined) ( Addr a, SizeT len ) in MC_() function
1844 if (UNLIKELY( MC_(clo_mc_level) == 3 )) in MC_()
1851 MC_(make_mem_defined)(a, len); in make_mem_defined_w_tid()
1867 if (UNLIKELY(MC_(clo_mc_level) >= 3)) { in make_mem_defined_if_addressable()
1868 MC_(helperc_b_store1)( a+i, 0 ); /* clear the origin tag */ in make_mem_defined_if_addressable()
1884 if (UNLIKELY(MC_(clo_mc_level) >= 3)) { in make_mem_defined_if_noaccess()
1885 MC_(helperc_b_store1)( a+i, 0 ); /* clear the origin tag */ in make_mem_defined_if_noaccess()
1894 void MC_(copy_address_range_state) ( Addr src, Addr dst, SizeT len ) in MC_() function
2368 tl_assert(MC_(clo_mc_level) >= 3); in init_OCache()
2656 MC_(make_mem_noaccess)(a, 4); in make_aligned_word32_noaccess()
2664 MC_(make_mem_noaccess)(a, 4); in make_aligned_word32_noaccess()
2674 if (UNLIKELY( MC_(clo_mc_level) == 3 )) { in make_aligned_word32_noaccess()
2741 MC_(make_mem_noaccess)(a, 8); in make_aligned_word64_noaccess()
2749 MC_(make_mem_noaccess)(a, 8); in make_aligned_word64_noaccess()
2759 if (UNLIKELY( MC_(clo_mc_level) == 3 )) { in make_aligned_word64_noaccess()
2794 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 4, otag ); in mc_new_mem_stack_4_w_ECU()
2816 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-4, 4 ); in mc_die_mem_stack_4()
2833 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 8, otag ); in mc_new_mem_stack_8_w_ECU()
2861 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-8, 8 ); in mc_die_mem_stack_8()
2882 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 12, otag ); in mc_new_mem_stack_12_w_ECU()
2921 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-12, 12 ); in mc_die_mem_stack_12()
2943 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 16, otag ); in mc_new_mem_stack_16_w_ECU()
2980 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-16, 16 ); in mc_die_mem_stack_16()
3006 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 32, otag ); in mc_new_mem_stack_32_w_ECU()
3052 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-32, 32 ); in mc_die_mem_stack_32()
3079 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 112, otag ); in mc_new_mem_stack_112_w_ECU()
3127 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-112, 112 ); in mc_die_mem_stack_112()
3156 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 128, otag ); in mc_new_mem_stack_128_w_ECU()
3208 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-128, 128 ); in mc_die_mem_stack_128()
3239 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 144, otag ); in mc_new_mem_stack_144_w_ECU()
3295 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-144, 144 ); in mc_die_mem_stack_144()
3328 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + new_SP, 160, otag ); in mc_new_mem_stack_160_w_ECU()
3388 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + new_SP-160, 160 ); in mc_die_mem_stack_160()
3398 MC_(make_mem_undefined_w_otag) ( -VG_STACK_REDZONE_SZB + a, len, otag ); in mc_new_mem_stack_w_ECU()
3410 MC_(make_mem_noaccess) ( -VG_STACK_REDZONE_SZB + a, len ); in mc_die_mem_stack()
3522 void MC_(helperc_MAKE_STACK_UNINIT) ( Addr base, UWord len, Addr nia ) in MC_() function
3530 if (UNLIKELY( MC_(clo_mc_level) == 3 )) { in MC_()
3541 MC_(make_mem_undefined)(base, len, otag); in MC_()
3568 MC_(make_mem_undefined)(base, len, otag); in MC_()
3613 if (UNLIKELY( MC_(clo_mc_level) == 3 )) { in MC_()
3689 if (UNLIKELY( MC_(clo_mc_level) == 3 )) { in MC_()
3733 MC_(make_mem_undefined_w_otag)(base, len, otag); in MC_()
3758 Bool MC_(check_mem_is_noaccess) ( Addr a, SizeT len, Addr* bad_addr ) in MC_() function
3820 if (MC_(clo_mc_level) >= 2) { in is_mem_defined()
3821 if (otag && MC_(clo_mc_level) == 3) { in is_mem_defined()
3822 *otag = MC_(helperc_b_load1)( a ); in is_mem_defined()
3872 if (MC_(clo_mc_level) == 3) { in is_mem_defined_comprehensive()
3873 *otagV = MC_(helperc_b_load1)( a ); in is_mem_defined_comprehensive()
3918 if (MC_(clo_mc_level) >= 2) { in mc_is_defined_asciiz()
3919 if (otag && MC_(clo_mc_level) == 3) { in mc_is_defined_asciiz()
3920 *otag = MC_(helperc_b_load1)( a ); in mc_is_defined_asciiz()
3948 MC_(record_memparam_error) ( tid, bad_addr, in check_mem_is_addressable()
3953 MC_(record_core_mem_error)( tid, s ); in check_mem_is_addressable()
3975 MC_(record_memparam_error) ( tid, bad_addr, isAddrErr, s, in check_mem_is_defined()
3980 MC_(record_regparam_error) ( tid, s, otag ); in check_mem_is_defined()
3986 MC_(record_jump_error)( tid, bad_addr ); in check_mem_is_defined()
4007 MC_(record_memparam_error) ( tid, bad_addr, isAddrErr, s, in check_mem_is_defined_asciiz()
4072 MC_(make_mem_defined)(a, len); in mc_new_mem_mmap()
4075 MC_(make_mem_noaccess)(a, len); in mc_new_mem_mmap()
4119 MC_(make_mem_defined)(a, len); in mc_post_mem_write()
4136 sh2off = MC_(get_otrack_shadow_offset)( offset, size ); in mb_get_origin_for_guest_offset()
4204 MC_(record_regparam_error) ( tid, s, otag ); in mc_pre_reg_read()
4227 if (MC_(clo_mc_level) != 3) in mc_copy_mem_to_reg()
4231 offset = MC_(get_otrack_shadow_offset)( guest_state_offset, size ); in mc_copy_mem_to_reg()
4237 d32 = MC_(helperc_b_load1)( a ); in mc_copy_mem_to_reg()
4240 d32 = MC_(helperc_b_load2)( a ); in mc_copy_mem_to_reg()
4243 d32 = MC_(helperc_b_load4)( a ); in mc_copy_mem_to_reg()
4246 d32 = MC_(helperc_b_load8)( a ); in mc_copy_mem_to_reg()
4249 d32 = MC_(helperc_b_load16)( a ); in mc_copy_mem_to_reg()
4252 d32 = MC_(helperc_b_load32)( a ); in mc_copy_mem_to_reg()
4277 if (MC_(clo_mc_level) != 3) in mc_copy_reg_to_mem()
4281 offset = MC_(get_otrack_shadow_offset)( guest_state_offset, size ); in mc_copy_reg_to_mem()
4288 MC_(helperc_b_store1)( a, d32 ); in mc_copy_reg_to_mem()
4291 MC_(helperc_b_store2)( a, d32 ); in mc_copy_reg_to_mem()
4294 MC_(helperc_b_store4)( a, d32 ); in mc_copy_reg_to_mem()
4297 MC_(helperc_b_store8)( a, d32 ); in mc_copy_reg_to_mem()
4300 MC_(helperc_b_store16)( a, d32 ); in mc_copy_reg_to_mem()
4303 MC_(helperc_b_store32)( a, d32 ); in mc_copy_reg_to_mem()
4484 VG_REGPARM(2) void MC_(helperc_LOADV256be) ( /*OUT*/V256* res, Addr a ) in MC_() function
4488 VG_REGPARM(2) void MC_(helperc_LOADV256le) ( /*OUT*/V256* res, Addr a ) in MC_() function
4493 VG_REGPARM(2) void MC_(helperc_LOADV128be) ( /*OUT*/V128* res, Addr a ) in MC_() function
4497 VG_REGPARM(2) void MC_(helperc_LOADV128le) ( /*OUT*/V128* res, Addr a ) in MC_() function
4544 VG_REGPARM(1) ULong MC_(helperc_LOADV64be) ( Addr a ) in MC_() function
4627 VG_REGPARM(1) ULong MC_(helperc_LOADV64le) ( Addr a ) in MC_() function
4694 VG_REGPARM(1) void MC_(helperc_STOREV64be) ( Addr a, ULong vbits64 ) in MC_() function
4698 VG_REGPARM(1) void MC_(helperc_STOREV64le) ( Addr a, ULong vbits64 ) in MC_() function
4747 VG_REGPARM(1) UWord MC_(helperc_LOADV32be) ( Addr a ) in MC_() function
4823 VG_REGPARM(1) UWord MC_(helperc_LOADV32le) ( Addr a ) in MC_() function
4888 VG_REGPARM(2) void MC_(helperc_STOREV32be) ( Addr a, UWord vbits32 ) in MC_() function
4892 VG_REGPARM(2) void MC_(helperc_STOREV32le) ( Addr a, UWord vbits32 ) in MC_() function
4943 VG_REGPARM(1) UWord MC_(helperc_LOADV16be) ( Addr a ) in MC_() function
5048 VG_REGPARM(1) UWord MC_(helperc_LOADV16le) ( Addr a ) in MC_() function
5130 VG_REGPARM(2) void MC_(helperc_STOREV16be) ( Addr a, UWord vbits16 ) in MC_() function
5134 VG_REGPARM(2) void MC_(helperc_STOREV16le) ( Addr a, UWord vbits16 ) in MC_() function
5240 UWord MC_(helperc_LOADV8) ( Addr a ) in MC_() function
5286 void MC_(helperc_STOREV8) ( Addr a, UWord vbits8 ) in MC_() function
5390 void MC_(helperc_value_check0_fail_w_o) ( UWord origin ) { in MC_() function
5391 MC_(record_cond_error) ( VG_(get_running_tid)(), (UInt)origin ); in MC_()
5395 void MC_(helperc_value_check1_fail_w_o) ( UWord origin ) { in MC_() function
5396 MC_(record_value_error) ( VG_(get_running_tid)(), 1, (UInt)origin ); in MC_()
5400 void MC_(helperc_value_check4_fail_w_o) ( UWord origin ) { in MC_() function
5401 MC_(record_value_error) ( VG_(get_running_tid)(), 4, (UInt)origin ); in MC_()
5405 void MC_(helperc_value_check8_fail_w_o) ( UWord origin ) { in MC_() function
5406 MC_(record_value_error) ( VG_(get_running_tid)(), 8, (UInt)origin ); in MC_()
5410 void MC_(helperc_value_checkN_fail_w_o) ( HWord sz, UWord origin ) { in MC_() function
5411 MC_(record_value_error) ( VG_(get_running_tid)(), (Int)sz, (UInt)origin ); in MC_()
5417 void MC_(helperc_value_check0_fail_no_o) ( void ) { in MC_() function
5418 MC_(record_cond_error) ( VG_(get_running_tid)(), 0/*origin*/ ); in MC_()
5422 void MC_(helperc_value_check1_fail_no_o) ( void ) { in MC_() function
5423 MC_(record_value_error) ( VG_(get_running_tid)(), 1, 0/*origin*/ ); in MC_()
5427 void MC_(helperc_value_check4_fail_no_o) ( void ) { in MC_() function
5428 MC_(record_value_error) ( VG_(get_running_tid)(), 4, 0/*origin*/ ); in MC_()
5432 void MC_(helperc_value_check8_fail_no_o) ( void ) { in MC_() function
5433 MC_(record_value_error) ( VG_(get_running_tid)(), 8, 0/*origin*/ ); in MC_()
5437 void MC_(helperc_value_checkN_fail_no_o) ( HWord sz ) { in MC_() function
5438 MC_(record_value_error) ( VG_(get_running_tid)(), (Int)sz, 0/*origin*/ ); in MC_()
5493 MC_(make_mem_defined)(vbits, szB); in mc_get_or_set_vbits_for_client()
5508 Bool MC_(is_within_valid_secondary) ( Addr a ) in MC_() function
5522 Bool MC_(is_valid_aligned_word) ( Addr a ) in MC_() function
5532 if (UNLIKELY(MC_(in_ignored_range)(a))) in MC_()
5589 if (MC_(clo_mc_level) < 1 || MC_(clo_mc_level) > 3) in mc_cheap_sanity_check()
5610 if (MC_(clo_mc_level) < 1 || MC_(clo_mc_level) > 3) in mc_expensive_sanity_check()
5641 if (MC_(clo_mc_level) == 1) { in mc_expensive_sanity_check()
5695 Bool MC_(clo_partial_loads_ok) = True;
5696 Long MC_(clo_freelist_vol) = 20*1000*1000LL;
5697 Long MC_(clo_freelist_big_blocks) = 1*1000*1000LL;
5698 LeakCheckMode MC_(clo_leak_check) = LC_Summary;
5699 VgRes MC_(clo_leak_resolution) = Vg_HighRes;
5700 UInt MC_(clo_show_leak_kinds) = R2S(Possible) | R2S(Unreached);
5701 UInt MC_(clo_error_for_leak_kinds) = R2S(Possible) | R2S(Unreached);
5702 UInt MC_(clo_leak_check_heuristics) = H2S(LchStdString)
5706 Bool MC_(clo_workaround_gcc296_bugs) = False;
5707 Int MC_(clo_malloc_fill) = -1;
5708 Int MC_(clo_free_fill) = -1;
5709 KeepStacktraces MC_(clo_keep_stacktraces) = KS_alloc_and_free;
5710 Int MC_(clo_mc_level) = 2;
5711 Bool MC_(clo_show_mismatched_frees) = True;
5712 Bool MC_(clo_expensive_definedness_checks) = False;
5714 static const HChar * MC_(parse_leak_heuristics_tokens) =
5725 tl_assert( MC_(clo_mc_level) >= 1 && MC_(clo_mc_level) <= 3 ); in mc_process_cmd_line_options()
5737 if (MC_(clo_mc_level) == 3) { in mc_process_cmd_line_options()
5740 MC_(clo_mc_level) = 1; in mc_process_cmd_line_options()
5745 if (MC_(clo_mc_level) == 1) in mc_process_cmd_line_options()
5746 MC_(clo_mc_level) = 2; in mc_process_cmd_line_options()
5750 if (MC_(clo_mc_level) == 3) in mc_process_cmd_line_options()
5751 MC_(clo_mc_level) = 2; in mc_process_cmd_line_options()
5755 if (MC_(clo_mc_level) == 1) { in mc_process_cmd_line_options()
5758 MC_(clo_mc_level) = 3; in mc_process_cmd_line_options()
5763 if VG_BOOL_CLO(arg, "--partial-loads-ok", MC_(clo_partial_loads_ok)) {} in mc_process_cmd_line_options()
5765 MC_(parse_leak_kinds_tokens), in mc_process_cmd_line_options()
5766 MC_(clo_error_for_leak_kinds)) {} in mc_process_cmd_line_options()
5768 MC_(parse_leak_kinds_tokens), in mc_process_cmd_line_options()
5769 MC_(clo_show_leak_kinds)) {} in mc_process_cmd_line_options()
5771 MC_(parse_leak_heuristics_tokens), in mc_process_cmd_line_options()
5772 MC_(clo_leak_check_heuristics)) {} in mc_process_cmd_line_options()
5775 MC_(clo_show_leak_kinds) = MC_(all_Reachedness)(); in mc_process_cmd_line_options()
5777 MC_(clo_show_leak_kinds) &= ~R2S(Reachable); in mc_process_cmd_line_options()
5782 MC_(clo_show_leak_kinds) |= R2S(Possible); in mc_process_cmd_line_options()
5784 MC_(clo_show_leak_kinds) &= ~R2S(Possible); in mc_process_cmd_line_options()
5788 MC_(clo_workaround_gcc296_bugs)) {} in mc_process_cmd_line_options()
5790 else if VG_BINT_CLO(arg, "--freelist-vol", MC_(clo_freelist_vol), in mc_process_cmd_line_options()
5794 MC_(clo_freelist_big_blocks), in mc_process_cmd_line_options()
5798 MC_(clo_leak_check), LC_Off) {} in mc_process_cmd_line_options()
5800 MC_(clo_leak_check), LC_Summary) {} in mc_process_cmd_line_options()
5802 MC_(clo_leak_check), LC_Full) {} in mc_process_cmd_line_options()
5804 MC_(clo_leak_check), LC_Full) {} in mc_process_cmd_line_options()
5807 MC_(clo_leak_resolution), Vg_LowRes) {} in mc_process_cmd_line_options()
5809 MC_(clo_leak_resolution), Vg_MedRes) {} in mc_process_cmd_line_options()
5811 MC_(clo_leak_resolution), Vg_HighRes) {} in mc_process_cmd_line_options()
5843 else if VG_BHEX_CLO(arg, "--malloc-fill", MC_(clo_malloc_fill), 0x00,0xFF) {} in mc_process_cmd_line_options()
5844 else if VG_BHEX_CLO(arg, "--free-fill", MC_(clo_free_fill), 0x00,0xFF) {} in mc_process_cmd_line_options()
5847 MC_(clo_keep_stacktraces), KS_alloc) {} in mc_process_cmd_line_options()
5849 MC_(clo_keep_stacktraces), KS_free) {} in mc_process_cmd_line_options()
5851 MC_(clo_keep_stacktraces), KS_alloc_and_free) {} in mc_process_cmd_line_options()
5853 MC_(clo_keep_stacktraces), KS_alloc_then_free) {} in mc_process_cmd_line_options()
5855 MC_(clo_keep_stacktraces), KS_none) {} in mc_process_cmd_line_options()
5858 MC_(clo_show_mismatched_frees)) {} in mc_process_cmd_line_options()
5860 MC_(clo_expensive_definedness_checks)) {} in mc_process_cmd_line_options()
5949 void MC_(get_ClientBlock_array)( /*OUT*/CGenBlock** blocks, in MC_() function
6240 || !VG_(parse_enum_set)(MC_(parse_leak_kinds_tokens), in handle_gdb_monitor_command()
6250 lcp.show_leak_kinds = MC_(all_Reachedness)(); in handle_gdb_monitor_command()
6262 || !VG_(parse_enum_set)(MC_(parse_leak_heuristics_tokens), in handle_gdb_monitor_command()
6306 MC_(detect_memory_leaks)(tid, &lcp); in handle_gdb_monitor_command()
6321 case 0: MC_(make_mem_noaccess) (address, szB); break; in handle_gdb_monitor_command()
6324 case 2: MC_(make_mem_defined) ( address, szB ); break; in handle_gdb_monitor_command()
6358 MC_(pp_describe_addr) (address); in handle_gdb_monitor_command()
6392 MC_(pp_describe_addr) (address); in handle_gdb_monitor_command()
6440 || !VG_(parse_enum_set)(MC_(parse_leak_heuristics_tokens), in handle_gdb_monitor_command()
6454 if (lr_nr_from == 0 || ! MC_(print_block_list) (lr_nr_from-1, in handle_gdb_monitor_command()
6473 MC_(who_points_at) (address, szB); in handle_gdb_monitor_command()
6559 MC_(record_user_error) ( tid, bad_addr, /*isAddrErr*/True, 0 ); in mc_handle_client_request()
6575 MC_(record_user_error) ( tid, bad_addrV, in mc_handle_client_request()
6579 MC_(record_user_error) ( tid, bad_addrA, in mc_handle_client_request()
6609 lcp.show_leak_kinds = MC_(clo_show_leak_kinds); in mc_handle_client_request()
6610 lcp.errors_for_leak_kinds = MC_(clo_error_for_leak_kinds); in mc_handle_client_request()
6611 lcp.heuristics = MC_(clo_leak_check_heuristics); in mc_handle_client_request()
6628 MC_(detect_memory_leaks)(tid, &lcp); in mc_handle_client_request()
6634 MC_(make_mem_noaccess) ( arg[1], arg[2] ); in mc_handle_client_request()
6645 MC_(make_mem_defined) ( arg[1], arg[2] ); in mc_handle_client_request()
6699 *argp[1] = MC_(bytes_leaked) + MC_(bytes_indirect); in mc_handle_client_request()
6700 *argp[2] = MC_(bytes_dubious); in mc_handle_client_request()
6701 *argp[3] = MC_(bytes_reachable); in mc_handle_client_request()
6702 *argp[4] = MC_(bytes_suppressed); in mc_handle_client_request()
6714 *argp[1] = MC_(blocks_leaked) + MC_(blocks_indirect); in mc_handle_client_request()
6715 *argp[2] = MC_(blocks_dubious); in mc_handle_client_request()
6716 *argp[3] = MC_(blocks_reachable); in mc_handle_client_request()
6717 *argp[4] = MC_(blocks_suppressed); in mc_handle_client_request()
6731 MC_(new_block) ( tid, p, sizeB, /*ignored*/0, is_zeroed, in mc_handle_client_request()
6732 MC_AllocCustom, MC_(malloc_list) ); in mc_handle_client_request()
6734 MC_(make_mem_noaccess) ( p - rzB, rzB); in mc_handle_client_request()
6735 MC_(make_mem_noaccess) ( p + sizeB, rzB); in mc_handle_client_request()
6745 MC_(handle_resizeInPlace) ( tid, p, oldSizeB, newSizeB, rzB ); in mc_handle_client_request()
6752 MC_(handle_free) ( tid, p, rzB, MC_AllocCustom ); in mc_handle_client_request()
6761 MC_(record_overlap_error)(tid, s, src, dst, len); in mc_handle_client_request()
6770 MC_(create_mempool) ( pool, rzB, is_zeroed ); in mc_handle_client_request()
6777 MC_(destroy_mempool) ( pool ); in mc_handle_client_request()
6786 MC_(mempool_alloc) ( tid, pool, addr, size ); in mc_handle_client_request()
6794 MC_(mempool_free) ( pool, addr ); in mc_handle_client_request()
6803 MC_(mempool_trim) ( pool, addr, size ); in mc_handle_client_request()
6811 MC_(move_mempool) ( poolA, poolB ); in mc_handle_client_request()
6821 MC_(mempool_change) ( pool, addrA, addrB, size ); in mc_handle_client_request()
6828 *ret = (UWord) MC_(mempool_exists) ( pool ); in mc_handle_client_request()
6872 ULong MC_(event_ctr)[MCPE_LAST];
6876 static const HChar* MC_(event_ctr_name)[MCPE_LAST] = {
7001 MC_(event_ctr)[i] = 0; in init_prof_mem()
7002 if (MC_(event_ctr_name)[i] != NULL) in init_prof_mem()
7019 if (MC_(event_ctr)[i] > 0) { in done_prof_mem()
7023 i, MC_(event_ctr)[i], in done_prof_mem()
7024 MC_(event_ctr_name)[i]); in done_prof_mem()
7049 UWord VG_REGPARM(1) MC_(helperc_b_load1)( Addr a ) { in MC_() function
7073 UWord VG_REGPARM(1) MC_(helperc_b_load2)( Addr a ) { in MC_() function
7080 UInt oLo = (UInt)MC_(helperc_b_load1)( a + 0 ); in MC_()
7081 UInt oHi = (UInt)MC_(helperc_b_load1)( a + 1 ); in MC_()
7105 UWord VG_REGPARM(1) MC_(helperc_b_load4)( Addr a ) { in MC_() function
7112 UInt oLo = (UInt)MC_(helperc_b_load2)( a + 0 ); in MC_()
7113 UInt oHi = (UInt)MC_(helperc_b_load2)( a + 2 ); in MC_()
7136 UWord VG_REGPARM(1) MC_(helperc_b_load8)( Addr a ) { in MC_() function
7143 UInt oLo = (UInt)MC_(helperc_b_load4)( a + 0 ); in MC_()
7144 UInt oHi = (UInt)MC_(helperc_b_load4)( a + 4 ); in MC_()
7171 UWord VG_REGPARM(1) MC_(helperc_b_load16)( Addr a ) { in MC_() function
7172 UInt oLo = (UInt)MC_(helperc_b_load8)( a + 0 ); in MC_()
7173 UInt oHi = (UInt)MC_(helperc_b_load8)( a + 8 ); in MC_()
7178 UWord VG_REGPARM(1) MC_(helperc_b_load32)( Addr a ) { in MC_() function
7179 UInt oQ0 = (UInt)MC_(helperc_b_load8)( a + 0 ); in MC_()
7180 UInt oQ1 = (UInt)MC_(helperc_b_load8)( a + 8 ); in MC_()
7181 UInt oQ2 = (UInt)MC_(helperc_b_load8)( a + 16 ); in MC_()
7182 UInt oQ3 = (UInt)MC_(helperc_b_load8)( a + 24 ); in MC_()
7193 void VG_REGPARM(2) MC_(helperc_b_store1)( Addr a, UWord d32 ) { in MC_() function
7212 void VG_REGPARM(2) MC_(helperc_b_store2)( Addr a, UWord d32 ) { in MC_() function
7218 MC_(helperc_b_store1)( a + 0, d32 ); in MC_()
7219 MC_(helperc_b_store1)( a + 1, d32 ); in MC_()
7240 void VG_REGPARM(2) MC_(helperc_b_store4)( Addr a, UWord d32 ) { in MC_() function
7246 MC_(helperc_b_store2)( a + 0, d32 ); in MC_()
7247 MC_(helperc_b_store2)( a + 2, d32 ); in MC_()
7266 void VG_REGPARM(2) MC_(helperc_b_store8)( Addr a, UWord d32 ) { in MC_() function
7272 MC_(helperc_b_store4)( a + 0, d32 ); in MC_()
7273 MC_(helperc_b_store4)( a + 4, d32 ); in MC_()
7295 void VG_REGPARM(2) MC_(helperc_b_store16)( Addr a, UWord d32 ) { in MC_() function
7296 MC_(helperc_b_store8)( a + 0, d32 ); in MC_()
7297 MC_(helperc_b_store8)( a + 8, d32 ); in MC_()
7300 void VG_REGPARM(2) MC_(helperc_b_store32)( Addr a, UWord d32 ) { in MC_() function
7301 MC_(helperc_b_store8)( a + 0, d32 ); in MC_()
7302 MC_(helperc_b_store8)( a + 8, d32 ); in MC_()
7303 MC_(helperc_b_store8)( a + 16, d32 ); in MC_()
7304 MC_(helperc_b_store8)( a + 24, d32 ); in MC_()
7315 MC_(helperc_b_store1)( a, otag ); in ocache_sarp_Set_Origins()
7320 MC_(helperc_b_store2)( a, otag ); in ocache_sarp_Set_Origins()
7327 MC_(helperc_b_store4)( a, otag ); in ocache_sarp_Set_Origins()
7332 MC_(helperc_b_store2)( a, otag ); in ocache_sarp_Set_Origins()
7337 MC_(helperc_b_store1)( a, otag ); in ocache_sarp_Set_Origins()
7347 MC_(helperc_b_store1)( a, 0 ); in ocache_sarp_Clear_Origins()
7352 MC_(helperc_b_store2)( a, 0 ); in ocache_sarp_Clear_Origins()
7359 MC_(helperc_b_store4)( a, 0 ); in ocache_sarp_Clear_Origins()
7364 MC_(helperc_b_store2)( a, 0 ); in ocache_sarp_Clear_Origins()
7369 MC_(helperc_b_store1)( a, 0 ); in ocache_sarp_Clear_Origins()
7387 MC_(clo_leak_check) = LC_Full; in mc_post_clo_init()
7390 if (MC_(clo_freelist_big_blocks) >= MC_(clo_freelist_vol)) in mc_post_clo_init()
7394 MC_(clo_freelist_big_blocks), in mc_post_clo_init()
7395 MC_(clo_freelist_vol)); in mc_post_clo_init()
7397 tl_assert( MC_(clo_mc_level) >= 1 && MC_(clo_mc_level) <= 3 ); in mc_post_clo_init()
7399 if (MC_(clo_mc_level) == 3) { in mc_post_clo_init()
7482 if (MC_(clo_mc_level) == 3) in mc_post_clo_init()
7494 if (MC_(clo_mc_level) >= 3) { in mc_post_clo_init()
7503 MC_(chunk_poolalloc) = VG_(newPA) in mc_post_clo_init()
7504 (sizeof(MC_Chunk) + MC_(n_where_pointers)() * sizeof(ExeContext*), in mc_post_clo_init()
7511 if (MC_(clo_mc_level) >= 2) in mc_post_clo_init()
7581 if (MC_(clo_mc_level) >= 3) { in mc_print_stats()
7621 MC_(print_malloc_stats)(); in mc_fini()
7623 if (MC_(clo_leak_check) != LC_Off) { in mc_fini()
7625 lcp.mode = MC_(clo_leak_check); in mc_fini()
7626 lcp.show_leak_kinds = MC_(clo_show_leak_kinds); in mc_fini()
7627 lcp.heuristics = MC_(clo_leak_check_heuristics); in mc_fini()
7628 lcp.errors_for_leak_kinds = MC_(clo_error_for_leak_kinds); in mc_fini()
7632 MC_(detect_memory_leaks)(1/*bogus ThreadId*/, &lcp); in mc_fini()
7647 if (MC_(any_value_errors) && !VG_(clo_xml) && VG_(clo_verbosity) >= 1 in mc_fini()
7648 && MC_(clo_mc_level) == 2) { in mc_fini()
7711 MC_(make_mem_noaccess) (addr, len); in mc_mark_unaddressable_for_watchpoint()
7713 MC_(make_mem_defined) (addr, len); in mc_mark_unaddressable_for_watchpoint()
7728 MC_(instrument), in mc_pre_clo_init()
7731 VG_(needs_final_IR_tidy_pass) ( MC_(final_tidy) ); in mc_pre_clo_init()
7735 VG_(needs_tool_errors) (MC_(eq_Error), in mc_pre_clo_init()
7736 MC_(before_pp_Error), in mc_pre_clo_init()
7737 MC_(pp_Error), in mc_pre_clo_init()
7739 MC_(update_Error_extra), in mc_pre_clo_init()
7740 MC_(is_recognised_suppression), in mc_pre_clo_init()
7741 MC_(read_extra_suppression_info), in mc_pre_clo_init()
7742 MC_(error_matches_suppression), in mc_pre_clo_init()
7743 MC_(get_error_name), in mc_pre_clo_init()
7744 MC_(get_extra_suppression_info), in mc_pre_clo_init()
7745 MC_(print_extra_suppression_use), in mc_pre_clo_init()
7746 MC_(update_extra_suppression_use)); in mc_pre_clo_init()
7755 VG_(needs_info_location) (MC_(pp_describe_addr)); in mc_pre_clo_init()
7756 VG_(needs_malloc_replacement) (MC_(malloc), in mc_pre_clo_init()
7757 MC_(__builtin_new), in mc_pre_clo_init()
7758 MC_(__builtin_vec_new), in mc_pre_clo_init()
7759 MC_(memalign), in mc_pre_clo_init()
7760 MC_(calloc), in mc_pre_clo_init()
7761 MC_(free), in mc_pre_clo_init()
7762 MC_(__builtin_delete), in mc_pre_clo_init()
7763 MC_(__builtin_vec_delete), in mc_pre_clo_init()
7764 MC_(realloc), in mc_pre_clo_init()
7765 MC_(malloc_usable_size), in mc_pre_clo_init()
7767 MC_(Malloc_Redzone_SzB) = VG_(malloc_effective_client_redzone_size)(); in mc_pre_clo_init()
7779 VG_(track_copy_mem_remap) ( MC_(copy_address_range_state) ); in mc_pre_clo_init()
7781 VG_(track_die_mem_stack_signal)( MC_(make_mem_noaccess) ); in mc_pre_clo_init()
7782 VG_(track_die_mem_brk) ( MC_(make_mem_noaccess) ); in mc_pre_clo_init()
7783 VG_(track_die_mem_munmap) ( MC_(make_mem_noaccess) ); in mc_pre_clo_init()
7802 VG_(track_ban_mem_stack) ( MC_(make_mem_noaccess) ); in mc_pre_clo_init()
7812 if (MC_(clo_mc_level) >= 2) { in mc_pre_clo_init()
7821 tl_assert(MC_(chunk_poolalloc) == NULL); in mc_pre_clo_init()
7822 MC_(malloc_list) = VG_(HT_construct)( "MC_(malloc_list)" ); in mc_pre_clo_init()
7823 MC_(mempool_list) = VG_(HT_construct)( "MC_(mempool_list)" ); in mc_pre_clo_init()