Lines Matching defs:lcp
901 static void get_printing_rules(LeakCheckParams* lcp,
920 switch (lcp->deltamode) {
939 *print_record = lcp->mode == LC_Full && delta_considered &&
940 ( lcp->show_reachable ||
942 ( lcp->show_possibly_lost &&
944 // We don't count a leaks as errors with lcp->mode==LC_Summary.
950 *count_as_error = lcp->mode == LC_Full && delta_considered &&
955 static void print_results(ThreadId tid, LeakCheckParams* lcp)
1064 if (lcp->mode == LC_Full && lcp->max_loss_records_output < n_lossrecords) {
1069 get_printing_rules (lcp, lr, &count_as_error, &print_record);
1078 if (nr_printable_records == lcp->max_loss_records_output)
1088 get_printing_rules(lcp, lr, &count_as_error, &print_record);
1125 MC_(snprintf_delta) (d_bytes, 20, MC_(bytes_leaked), old_bytes_leaked, lcp->deltamode),
1127 MC_(snprintf_delta) (d_blocks, 20, MC_(blocks_leaked), old_blocks_leaked, lcp->deltamode));
1130 MC_(snprintf_delta) (d_bytes, 20, MC_(bytes_indirect), old_bytes_indirect, lcp->deltamode),
1132 MC_(snprintf_delta) (d_blocks, 20, MC_(blocks_indirect), old_blocks_indirect, lcp->deltamode) );
1135 MC_(snprintf_delta) (d_bytes, 20, MC_(bytes_dubious), old_bytes_dubious, lcp->deltamode),
1137 MC_(snprintf_delta) (d_blocks, 20, MC_(blocks_dubious), old_blocks_dubious, lcp->deltamode) );
1140 MC_(snprintf_delta) (d_bytes, 20, MC_(bytes_reachable), old_bytes_reachable, lcp->deltamode),
1142 MC_(snprintf_delta) (d_blocks, 20, MC_(blocks_reachable), old_blocks_reachable, lcp->deltamode) );
1145 MC_(snprintf_delta) (d_bytes, 20, MC_(bytes_suppressed), old_bytes_suppressed, lcp->deltamode),
1147 MC_(snprintf_delta) (d_blocks, 20, MC_(blocks_suppressed), old_blocks_suppressed, lcp->deltamode) );
1148 if (lcp->mode != LC_Full &&
1151 if (lcp->requested_by_monitor_command)
1157 if (lcp->mode == LC_Full &&
1158 MC_(blocks_reachable) > 0 && !lcp->show_reachable)
1162 if (lcp->requested_by_monitor_command)
1328 void MC_(detect_memory_leaks) ( ThreadId tid, LeakCheckParams* lcp)
1332 tl_assert(lcp->mode != LC_Off);
1344 MC_(detect_memory_leaks_last_delta_mode) = lcp->deltamode;
1513 print_results( tid, lcp);