Lines Matching refs:MC_
35 #define MC_(str) VGAPPEND(vgMemCheck_,str) macro
50 extern SizeT MC_(Malloc_Redzone_SzB);
79 ExeContext* MC_(allocated_at) (MC_Chunk*);
80 ExeContext* MC_(freed_at) (MC_Chunk*);
83 void MC_(set_allocated_at) (ThreadId, MC_Chunk*);
84 void MC_(set_freed_at) (ThreadId, MC_Chunk*);
87 UInt MC_(n_where_pointers) (void);
101 void* MC_(new_block) ( ThreadId tid,
105 void MC_(handle_free) ( ThreadId tid,
108 void MC_(create_mempool) ( Addr pool, UInt rzB, Bool is_zeroed );
109 void MC_(destroy_mempool) ( Addr pool );
110 void MC_(mempool_alloc) ( ThreadId tid, Addr pool,
112 void MC_(mempool_free) ( Addr pool, Addr addr );
113 void MC_(mempool_trim) ( Addr pool, Addr addr, SizeT size );
114 void MC_(move_mempool) ( Addr poolA, Addr poolB );
115 void MC_(mempool_change) ( Addr pool, Addr addrA, Addr addrB, SizeT size );
116 Bool MC_(mempool_exists) ( Addr pool );
121 MC_Chunk* MC_(get_freed_block_bracketting)( Addr a );
124 extern PoolAlloc* MC_(chunk_poolalloc);
130 extern VgHashTable *MC_(malloc_list);
133 extern VgHashTable *MC_(mempool_list);
136 Bool MC_(check_mem_is_noaccess)( Addr a, SizeT len, Addr* bad_addr );
137 void MC_(make_mem_noaccess) ( Addr a, SizeT len );
138 void MC_(make_mem_undefined_w_otag)( Addr a, SizeT len, UInt otag );
139 void MC_(make_mem_defined) ( Addr a, SizeT len );
140 void MC_(copy_address_range_state) ( Addr src, Addr dst, SizeT len );
142 void MC_(print_malloc_stats) ( void );
144 SizeT MC_(get_cmalloc_n_frees) ( void );
146 void* MC_(malloc) ( ThreadId tid, SizeT n );
147 void* MC_(__builtin_new) ( ThreadId tid, SizeT n );
148 void* MC_(__builtin_vec_new) ( ThreadId tid, SizeT n );
149 void* MC_(memalign) ( ThreadId tid, SizeT align, SizeT n );
150 void* MC_(calloc) ( ThreadId tid, SizeT nmemb, SizeT size1 );
151 void MC_(free) ( ThreadId tid, void* p );
152 void MC_(__builtin_delete) ( ThreadId tid, void* p );
153 void MC_(__builtin_vec_delete) ( ThreadId tid, void* p );
154 void* MC_(realloc) ( ThreadId tid, void* p, SizeT new_size );
155 SizeT MC_(malloc_usable_size) ( ThreadId tid, void* p );
157 void MC_(handle_resizeInPlace)(ThreadId tid, Addr p,
166 Int MC_(get_otrack_shadow_offset) ( Int offset, Int szB );
167 IRType MC_(get_otrack_reg_array_equiv_int_type) ( IRRegArray* arr );
323 extern ULong MC_(event_ctr)[MCPE_LAST];
327 MC_(event_ctr)[ev]++; \
386 UInt MC_(all_Reachedness)(void);
389 extern SizeT MC_(bytes_leaked);
390 extern SizeT MC_(bytes_indirect);
391 extern SizeT MC_(bytes_dubious);
392 extern SizeT MC_(bytes_reachable);
393 extern SizeT MC_(bytes_suppressed);
396 extern SizeT MC_(blocks_leaked);
397 extern SizeT MC_(blocks_indirect);
398 extern SizeT MC_(blocks_dubious);
399 extern SizeT MC_(blocks_reachable);
400 extern SizeT MC_(blocks_suppressed);
454 void MC_(detect_memory_leaks) ( ThreadId tid, LeakCheckParams * lcp);
458 extern UInt MC_(leak_search_gen);
461 extern LeakCheckDeltaMode MC_(detect_memory_leaks_last_delta_mode);
471 Bool MC_(print_block_list) ( UInt loss_record_nr_from, UInt loss_record_nr_to,
476 void MC_(who_points_at) ( Addr address, SizeT szB);
480 extern HChar * MC_(snprintf_delta) (HChar * buf, Int size,
485 Bool MC_(is_valid_aligned_word) ( Addr a );
486 Bool MC_(is_within_valid_secondary) ( Addr a );
489 void MC_(pp_LossRecord)(UInt n_this_record, UInt n_total_records,
501 extern Bool MC_(any_value_errors);
505 Bool MC_(eq_Error) ( VgRes res, const Error* e1, const Error* e2 );
506 void MC_(before_pp_Error) ( const Error* err );
507 void MC_(pp_Error) ( const Error* err );
508 UInt MC_(update_Error_extra) ( const Error* err );
510 Bool MC_(is_recognised_suppression) ( const HChar* name, Supp* su );
512 Bool MC_(read_extra_suppression_info) ( Int fd, HChar** buf,
515 Bool MC_(error_matches_suppression) ( const Error* err, const Supp* su );
517 SizeT MC_(get_extra_suppression_info) ( const Error* err,
519 SizeT MC_(print_extra_suppression_use) ( const Supp* su,
521 void MC_(update_extra_suppression_use) ( const Error* err, const Supp* su );
523 const HChar* MC_(get_error_name) ( const Error* err );
526 void MC_(record_address_error) ( ThreadId tid, Addr a, Int szB,
528 void MC_(record_cond_error) ( ThreadId tid, UInt otag );
529 void MC_(record_value_error) ( ThreadId tid, Int szB, UInt otag );
530 void MC_(record_jump_error) ( ThreadId tid, Addr a );
532 void MC_(record_free_error) ( ThreadId tid, Addr a );
533 void MC_(record_illegal_mempool_error) ( ThreadId tid, Addr a );
534 void MC_(record_freemismatch_error) ( ThreadId tid, MC_Chunk* mc );
536 void MC_(record_overlap_error) ( ThreadId tid, const HChar* function,
538 void MC_(record_core_mem_error) ( ThreadId tid, const HChar* msg );
539 void MC_(record_regparam_error) ( ThreadId tid, const HChar* msg, UInt otag );
540 void MC_(record_memparam_error) ( ThreadId tid, Addr a,
542 void MC_(record_user_error) ( ThreadId tid, Addr a,
545 Bool MC_(record_leak_error) ( ThreadId tid,
552 Bool MC_(record_fishy_value_error) ( ThreadId tid, const HChar* function,
556 extern const HChar* MC_(parse_leak_kinds_tokens);
559 void MC_(pp_describe_addr) (Addr a);
562 Bool MC_(in_ignored_range) ( Addr a );
581 void MC_(get_ClientBlock_array)( /*OUT*/CGenBlock** blocks,
590 extern Bool MC_(clo_partial_loads_ok);
593 extern Long MC_(clo_freelist_vol);
597 extern Long MC_(clo_freelist_big_blocks);
600 extern LeakCheckMode MC_(clo_leak_check);
603 extern VgRes MC_(clo_leak_resolution);
607 extern UInt MC_(clo_show_leak_kinds);
611 extern UInt MC_(clo_errors_for_leak_kinds);
646 extern UInt MC_(clo_leak_check_heuristics);
650 extern Bool MC_(clo_workaround_gcc296_bugs);
658 extern Int MC_(clo_malloc_fill);
659 extern Int MC_(clo_free_fill);
673 extern KeepStacktraces MC_(clo_keep_stacktraces);
698 extern Int MC_(clo_mc_level);
701 extern Bool MC_(clo_show_mismatched_frees);
705 extern Bool MC_(clo_expensive_definedness_checks);
717 VG_REGPARM(2) void MC_(helperc_value_checkN_fail_w_o) ( HWord, UWord );
718 VG_REGPARM(1) void MC_(helperc_value_check8_fail_w_o) ( UWord );
719 VG_REGPARM(1) void MC_(helperc_value_check4_fail_w_o) ( UWord );
720 VG_REGPARM(1) void MC_(helperc_value_check1_fail_w_o) ( UWord );
721 VG_REGPARM(1) void MC_(helperc_value_check0_fail_w_o) ( UWord );
725 VG_REGPARM(1) void MC_(helperc_value_checkN_fail_no_o) ( HWord );
726 VG_REGPARM(0) void MC_(helperc_value_check8_fail_no_o) ( void );
727 VG_REGPARM(0) void MC_(helperc_value_check4_fail_no_o) ( void );
728 VG_REGPARM(0) void MC_(helperc_value_check1_fail_no_o) ( void );
729 VG_REGPARM(0) void MC_(helperc_value_check0_fail_no_o) ( void );
732 VG_REGPARM(1) void MC_(helperc_STOREV64be) ( Addr, ULong );
733 VG_REGPARM(1) void MC_(helperc_STOREV64le) ( Addr, ULong );
734 VG_REGPARM(2) void MC_(helperc_STOREV32be) ( Addr, UWord );
735 VG_REGPARM(2) void MC_(helperc_STOREV32le) ( Addr, UWord );
736 VG_REGPARM(2) void MC_(helperc_STOREV16be) ( Addr, UWord );
737 VG_REGPARM(2) void MC_(helperc_STOREV16le) ( Addr, UWord );
738 VG_REGPARM(2) void MC_(helperc_STOREV8) ( Addr, UWord );
740 VG_REGPARM(2) void MC_(helperc_LOADV256be) ( /*OUT*/V256*, Addr );
741 VG_REGPARM(2) void MC_(helperc_LOADV256le) ( /*OUT*/V256*, Addr );
742 VG_REGPARM(2) void MC_(helperc_LOADV128be) ( /*OUT*/V128*, Addr );
743 VG_REGPARM(2) void MC_(helperc_LOADV128le) ( /*OUT*/V128*, Addr );
744 VG_REGPARM(1) ULong MC_(helperc_LOADV64be) ( Addr );
745 VG_REGPARM(1) ULong MC_(helperc_LOADV64le) ( Addr );
746 VG_REGPARM(1) UWord MC_(helperc_LOADV32be) ( Addr );
747 VG_REGPARM(1) UWord MC_(helperc_LOADV32le) ( Addr );
748 VG_REGPARM(1) UWord MC_(helperc_LOADV16be) ( Addr );
749 VG_REGPARM(1) UWord MC_(helperc_LOADV16le) ( Addr );
750 VG_REGPARM(1) UWord MC_(helperc_LOADV8) ( Addr );
752 void MC_(helperc_MAKE_STACK_UNINIT) ( Addr base, UWord len,
756 VG_REGPARM(2) void MC_(helperc_b_store1) ( Addr a, UWord d32 );
757 VG_REGPARM(2) void MC_(helperc_b_store2) ( Addr a, UWord d32 );
758 VG_REGPARM(2) void MC_(helperc_b_store4) ( Addr a, UWord d32 );
759 VG_REGPARM(2) void MC_(helperc_b_store8) ( Addr a, UWord d32 );
760 VG_REGPARM(2) void MC_(helperc_b_store16)( Addr a, UWord d32 );
761 VG_REGPARM(2) void MC_(helperc_b_store32)( Addr a, UWord d32 );
762 VG_REGPARM(1) UWord MC_(helperc_b_load1) ( Addr a );
763 VG_REGPARM(1) UWord MC_(helperc_b_load2) ( Addr a );
764 VG_REGPARM(1) UWord MC_(helperc_b_load4) ( Addr a );
765 VG_REGPARM(1) UWord MC_(helperc_b_load8) ( Addr a );
766 VG_REGPARM(1) UWord MC_(helperc_b_load16)( Addr a );
767 VG_REGPARM(1) UWord MC_(helperc_b_load32)( Addr a );
770 IRSB* MC_(instrument) ( VgCallbackClosure* closure,
777 IRSB* MC_(final_tidy) ( IRSB* );