Lines Matching refs:MC_
35 #define MC_(str) VGAPPEND(vgMemCheck_,str)
50 extern SizeT MC_(Malloc_Redzone_SzB);
71 /* Variable-length array. The size depends on MC_(clo_keep_stacktraces).
78 to MC_(clo_keep_stacktraces) and/or because block not yet freed). */
79 ExeContext* MC_(allocated_at) (MC_Chunk*);
80 ExeContext* MC_(freed_at) (MC_Chunk*);
82 /* Records and sets execontext according to MC_(clo_keep_stacktraces) */
83 void MC_(set_allocated_at) (ThreadId, MC_Chunk*);
84 void MC_(set_freed_at) (ThreadId, MC_Chunk*);
86 /* number of pointers needed according to MC_(clo_keep_stacktraces). */
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 );
214 UInt MC_(event_ctr)[N_PROF_EVENTS];
215 HChar* MC_(event_ctr_name)[N_PROF_EVENTS];
221 if (MC_(event_ctr_name)[ev]) \
222 tl_assert(name == MC_(event_ctr_name)[ev]); \
223 MC_(event_ctr)[ev]++; \
224 MC_(event_ctr_name)[ev] = (name); \
287 extern SizeT MC_(bytes_leaked);
288 extern SizeT MC_(bytes_indirect);
289 extern SizeT MC_(bytes_dubious);
290 extern SizeT MC_(bytes_reachable);
291 extern SizeT MC_(bytes_suppressed);
294 extern SizeT MC_(blocks_leaked);
295 extern SizeT MC_(blocks_indirect);
296 extern SizeT MC_(blocks_dubious);
297 extern SizeT MC_(blocks_reachable);
298 extern SizeT MC_(blocks_suppressed);
352 void MC_(detect_memory_leaks) ( ThreadId tid, LeakCheckParams * lcp);
355 // MC_(leak_search_gen) is incremented.
356 extern UInt MC_(leak_search_gen);
359 extern LeakCheckDeltaMode MC_(detect_memory_leaks_last_delta_mode);
364 Bool MC_(print_block_list) ( UInt loss_record_nr);
368 void MC_(who_points_at) ( Addr address, SizeT szB);
372 extern HChar * MC_(snprintf_delta) (HChar * buf, Int size,
377 Bool MC_(is_valid_aligned_word) ( Addr a );
378 Bool MC_(is_within_valid_secondary) ( Addr a );
381 void MC_(pp_LossRecord)(UInt n_this_record, UInt n_total_records,
393 extern Bool MC_(any_value_errors);
397 Bool MC_(eq_Error) ( VgRes res, Error* e1, Error* e2 );
398 void MC_(before_pp_Error) ( Error* err );
399 void MC_(pp_Error) ( Error* err );
400 UInt MC_(update_Error_extra) ( Error* err );
402 Bool MC_(is_recognised_suppression) ( const HChar* name, Supp* su );
404 Bool MC_(read_extra_suppression_info) ( Int fd, HChar** buf,
407 Bool MC_(error_matches_suppression) ( Error* err, Supp* su );
409 Bool MC_(get_extra_suppression_info) ( Error* err,
411 Bool MC_(print_extra_suppression_use) ( Supp* su,
413 void MC_(update_extra_suppression_use) ( Error* err, Supp* su );
415 const HChar* MC_(get_error_name) ( Error* err );
418 void MC_(record_address_error) ( ThreadId tid, Addr a, Int szB,
420 void MC_(record_cond_error) ( ThreadId tid, UInt otag );
421 void MC_
422 void MC_(record_jump_error) ( ThreadId tid, Addr a );
424 void MC_(record_free_error) ( ThreadId tid, Addr a );
425 void MC_(record_illegal_mempool_error) ( ThreadId tid, Addr a );
426 void MC_(record_freemismatch_error) ( ThreadId tid, MC_Chunk* mc );
428 void MC_(record_overlap_error) ( ThreadId tid, const HChar* function,
430 void MC_(record_core_mem_error) ( ThreadId tid, const HChar* msg );
431 void MC_(record_regparam_error) ( ThreadId tid, const HChar* msg, UInt otag );
432 void MC_(record_memparam_error) ( ThreadId tid, Addr a,
434 void MC_(record_user_error) ( ThreadId tid, Addr a,
437 Bool MC_(record_leak_error) ( ThreadId tid,
448 extern Bool MC_(parse_leak_kinds) ( const HChar* str0, UInt* lks );
451 void MC_(pp_describe_addr) (Addr a);
454 Bool MC_(in_ignored_range) ( Addr a );
473 void MC_(get_ClientBlock_array)( /*OUT*/CGenBlock** blocks,
482 extern Bool MC_(clo_partial_loads_ok);
485 extern Long MC_(clo_freelist_vol);
487 /* Blocks with a size >= MC_(clo_freelist_big_blocks) will be put
489 extern Long MC_(clo_freelist_big_blocks);
492 extern LeakCheckMode MC_(clo_leak_check);
495 extern VgRes MC_(clo_leak_resolution);
499 extern UInt MC_(clo_show_leak_kinds);
503 extern UInt MC_(clo_errors_for_leak_kinds);
536 extern UInt MC_(clo_leak_check_heuristics);
540 extern Bool MC_(clo_workaround_gcc296_bugs);
548 extern Int MC_(clo_malloc_fill);
549 extern Int MC_(clo_free_fill);
553 and/or freed are optionally kept depending on MC_(clo_keep_stacktraces). */
563 extern KeepStacktraces MC_(clo_keep_stacktraces);
588 extern Int MC_(clo_mc_level);
601 VG_REGPARM(2) void MC_(helperc_value_checkN_fail_w_o) ( HWord, UWord );
602 VG_REGPARM(1) void MC_(helperc_value_check8_fail_w_o) ( UWord );
603 VG_REGPARM(1) void MC_(helperc_value_check4_fail_w_o) ( UWord );
604 VG_REGPARM(1) void MC_(helperc_value_check1_fail_w_o) ( UWord );
605 VG_REGPARM(1) void MC_(helperc_value_check0_fail_w_o) ( UWord );
609 VG_REGPARM(1) void MC_(helperc_value_checkN_fail_no_o) ( HWord );
610 VG_REGPARM(0) void MC_(helperc_value_check8_fail_no_o) ( void );
611 VG_REGPARM(0) void MC_(helperc_value_check4_fail_no_o) ( void );
612 VG_REGPARM(0) void MC_(helperc_value_check1_fail_no_o) ( void );
613 VG_REGPARM(0) void MC_(helperc_value_check0_fail_no_o) ( void );
616 VG_REGPARM(1) void MC_(helperc_STOREV64be) ( Addr, ULong );
617 VG_REGPARM(1) void MC_(helperc_STOREV64le) ( Addr, ULong );
618 VG_REGPARM(2) void MC_(helperc_STOREV32be) ( Addr, UWord );
619 VG_REGPARM(2) void MC_(helperc_STOREV32le) ( Addr, UWord );
620 VG_REGPARM(2) void MC_(helperc_STOREV16be) ( Addr, UWord );
621 VG_REGPARM(2) void MC_(helperc_STOREV16le) ( Addr, UWord );
622 VG_REGPARM(2) void MC_(helperc_STOREV8) ( Addr, UWord );
624 VG_REGPARM(2) void MC_(helperc_LOADV256be) ( /*OUT*/V256*, Addr );
625 VG_REGPARM(2) void MC_(helperc_LOADV256le) ( /*OUT*/V256*, Addr );
626 VG_REGPARM(2) void MC_(helperc_LOADV128be) ( /*OUT*/V128*, Addr );
627 VG_REGPARM(2) void MC_(helperc_LOADV128le) ( /*OUT*/V128*, Addr );
628 VG_REGPARM(1) ULong MC_(helperc_LOADV64be) ( Addr );
629 VG_REGPARM(1) ULong MC_(helperc_LOADV64le) ( Addr );
630 VG_REGPARM(1) UWord MC_(helperc_LOADV32be) ( Addr );
631 VG_REGPARM(1) UWord MC_(helperc_LOADV32le) ( Addr );
632 VG_REGPARM(1) UWord MC_(helperc_LOADV16be) ( Addr );
633 VG_REGPARM(1) UWord MC_(helperc_LOADV16le) ( Addr );
634 VG_REGPARM(1) UWord MC_(helperc_LOADV8) ( Addr );
636 void MC_(helperc_MAKE_STACK_UNINIT) ( Addr base, UWord len,
640 VG_REGPARM(2) void MC_(helperc_b_store1) ( Addr a, UWord d32 );
641 VG_REGPARM(2) void MC_(helperc_b_store2) ( Addr a, UWord d32 );
642 VG_REGPARM(2) void MC_(helperc_b_store4) ( Addr a, UWord d32 );
643 VG_REGPARM(2) void MC_(helperc_b_store8) ( Addr a, UWord d32 );
644 VG_REGPARM(2) void MC_(helperc_b_store16)( Addr a, UWord d32 );
645 VG_REGPARM(2) void MC_(helperc_b_store32)( Addr a, UWord d32 );
646 VG_REGPARM(1) UWord MC_(helperc_b_load1) ( Addr a );
647 VG_REGPARM(1) UWord MC_(helperc_b_load2) ( Addr a );
648 VG_REGPARM(1) UWord MC_(helperc_b_load4) ( Addr a );
649 VG_REGPARM(1) UWord MC_(helperc_b_load8) ( Addr a );
650 VG_REGPARM(1) UWord MC_(helperc_b_load16)( Addr a );
651 VG_REGPARM(1) UWord MC_(helperc_b_load32)( Addr a );
654 IRSB* MC_(instrument) ( VgCallbackClosure* closure,
661 IRSB* MC_(final_tidy) ( IRSB* );