• Home
  • Raw
  • Download

Lines Matching refs:CLG_

49 FullCost CLG_(total_cost) = 0;
52 EventMapping* CLG_(dumpmap) = 0;
60 Int CLG_(get_dump_counter)(void) in CLG_() function
65 Char* CLG_(get_out_file)() in CLG_() function
67 CLG_(init_dumps)(); in CLG_()
71 Char* CLG_(get_out_directory)() in CLG_() function
73 CLG_(init_dumps)(); in CLG_()
103 dump_array_size = CLG_(stat).distinct_objs + in init_dump_array()
104 CLG_(stat).distinct_files + in init_dump_array()
105 CLG_(stat).distinct_fns + in init_dump_array()
106 CLG_(stat).context_counter; in init_dump_array()
111 file_dumped = obj_dumped + CLG_(stat).distinct_objs; in init_dump_array()
112 fn_dumped = file_dumped + CLG_(stat).distinct_files; in init_dump_array()
113 cxt_dumped = fn_dumped + CLG_(stat).distinct_fns; in init_dump_array()
190 if (CLG_(clo).compress_strings) { in print_obj()
217 if (CLG_(clo).compress_strings) { in print_file()
238 if (CLG_(clo).compress_strings) { in print_fn()
259 if (CLG_(clo).compress_strings && CLG_(clo).compress_mangled) { in print_mangled_fn()
305 if (CLG_(clo).compress_strings) { in print_mangled_fn()
343 CLG_(print_cxt)(16, bbcc->cxt, bbcc->rec_index); in print_fn_pos()
346 if (!CLG_(clo).mangle_names) { in print_fn_pos()
392 if (!CLG_(clo).mangle_names) { in print_fn_pos()
471 p->file = CLG_(get_file_node)(bbcc->bb->obj, file); in get_debug_pos()
513 c->cost = CLG_(get_eventset_cost)( CLG_(sets).full ); in init_fcost()
514 CLG_(init_cost)( CLG_(sets).full, c->cost ); in init_fcost()
540 if (CLG_(clo).dump_bbs) { in fprint_apos()
563 if (CLG_(clo).dump_instr) { in fprint_pos()
565 if ( CLG_(clo).compress_pos && (last->addr >0) && in fprint_pos()
578 if (CLG_(clo).dump_bb) { in fprint_pos()
580 if ( CLG_(clo).compress_pos && (last->bb_addr >0) && in fprint_pos()
593 if (CLG_(clo).dump_line) { in fprint_pos()
595 if ( CLG_(clo).compress_pos && (last->line >0) && in fprint_pos()
620 int p = CLG_(sprint_mappingcost)(outbuf, es, cost); in fprint_cost()
638 CLG_(print_cost)(-5, CLG_(sets).full, c->cost); in fprint_fcost()
644 fprint_cost(fd, CLG_(dumpmap), c->cost); in fprint_fcost()
647 CLG_(add_and_zero_cost)( CLG_(sets).full, dump_total_cost, c->cost ); in fprint_fcost()
661 CLG_(print_jcc)(-10, jcc); in fprint_jcc()
675 CLG_ASSERT(CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost)); in fprint_jcc()
684 if (!CLG_(clo).dump_instr && !CLG_(clo).dump_bb && target.line==0) { in fprint_jcc()
699 if (CLG_(clo).mangle_names) in fprint_jcc()
744 if (CLG_(clo).mangle_names) in fprint_jcc()
749 if (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost)) { in fprint_jcc()
757 fprint_cost(fd, CLG_(dumpmap), jcc->cost); in fprint_jcc()
759 CLG_(init_cost)( CLG_(sets).full, jcc->cost ); in fprint_jcc()
792 CLG_(print_bbcc)(15, bbcc); in fprint_bbcc()
813 if (CLG_(clo).dump_bbs || CLG_(clo).dump_instr || in fprint_bbcc()
817 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) { in fprint_bbcc()
831 (*CLG_(cachesim).add_icost)(currCost->cost, bbcc, instr_info, ecounter); in fprint_bbcc()
838 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
842 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) { in fprint_bbcc()
852 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
871 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
876 !CLG_(is_zero_cost)(CLG_(sets).full, bbcc->skipped)) || in fprint_bbcc()
879 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) { in fprint_bbcc()
890 if (bbcc->skipped && !CLG_(is_zero_cost)( CLG_(sets).full, in fprint_bbcc()
892 CLG_(add_and_zero_cost)( CLG_(sets).full, in fprint_bbcc()
905 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost ))) in fprint_bbcc()
911 if (CLG_(clo).dump_bbs || CLG_(clo).dump_bb) { in fprint_bbcc()
912 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) { in fprint_bbcc()
918 if (CLG_(clo).dump_bbs) my_fwrite(fd, (void*)"\n", 1); in fprint_bbcc()
1038 CLG_(print_cxt)(9, (*pm)->cxt, (*pm)->rec_index); in qsort()
1091 CLG_(print_cxt)(9, (*pv)->cxt, (*pv)->rec_index); in qsort()
1102 CLG_(print_cxt)(9, (*pm)->cxt, (*pm)->rec_index); in qsort()
1114 CLG_(print_cxt)(9, (*pm)->cxt, (*pm)->rec_index); in qsort()
1154 for(i = 0; i < CLG_(current_call_stack).sp; i++) { in cs_addCount()
1155 call_entry* e = &(CLG_(current_call_stack).entry[i]); in cs_addCount()
1158 CLG_(add_diff_cost_lz)( CLG_(sets).full, &(e->jcc->cost), in cs_addCount()
1159 e->enter_cost, CLG_(current_state).cost); in cs_addCount()
1163 i,CLG_(current_tid),bbcc->cxt->fn[0]->name); in cs_addCount()
1182 for(i = 0; i < CLG_(current_call_stack).sp; i++) { in cs_addPtr()
1183 call_entry* e = &(CLG_(current_call_stack).entry[i]); in cs_addPtr()
1213 CLG_(forall_bbccs)(hash_addCount); in prepare_dump()
1217 if (CLG_(clo).separate_threads) in prepare_dump()
1220 CLG_(forall_threads)(cs_addCount); in prepare_dump()
1229 CLG_(forall_bbccs)(hash_addPtr); in prepare_dump()
1231 if (CLG_(clo).separate_threads) in prepare_dump()
1234 CLG_(forall_threads)(cs_addPtr); in prepare_dump()
1260 p += CLG_(sprint_mappingcost)(outbuf + p, em, cost); in fprint_cost_ln()
1296 if (!CLG_(clo).combine_dumps) { in new_dumpfile()
1302 if (CLG_(clo).separate_threads) in new_dumpfile()
1352 if (CLG_(clo).separate_threads) { in new_dumpfile()
1364 CLG_(clo).skip_plt ? "yes" : "no"); in new_dumpfile()
1367 CLG_(clo).collect_jumps ? "yes" : "no"); in new_dumpfile()
1370 CLG_(clo).separate_recursions); in new_dumpfile()
1373 CLG_(clo).separate_callers); in new_dumpfile()
1377 CLG_(clo).dump_bbs ? "yes" : "no"); in new_dumpfile()
1380 CLG_(clo).separate_threads ? "yes" : "no"); in new_dumpfile()
1384 (*CLG_(cachesim).getdesc)(buf); in new_dumpfile()
1389 bbs_done, CLG_(stat).bb_executions); in new_dumpfile()
1416 if (fnc->separate_callers != CLG_(clo).separate_callers) { in new_dumpfile()
1421 if (fnc->separate_recursions != CLG_(clo).separate_recursions) { in new_dumpfile()
1433 CLG_(clo).dump_instr ? " instr" : "", in new_dumpfile()
1434 CLG_(clo).dump_bb ? " bb" : "", in new_dumpfile()
1435 CLG_(clo).dump_line ? " line" : ""); in new_dumpfile()
1440 CLG_(sprint_eventmapping)(buf+i, CLG_(dumpmap)); in new_dumpfile()
1445 sum = CLG_(get_eventset_cost)( CLG_(sets).full ); in new_dumpfile()
1446 CLG_(zero_cost)(CLG_(sets).full, sum); in new_dumpfile()
1447 if (CLG_(clo).separate_threads) { in new_dumpfile()
1448 thread_info* ti = CLG_(get_current_thread)(); in new_dumpfile()
1449 CLG_(add_diff_cost)(CLG_(sets).full, sum, ti->lastdump_cost, in new_dumpfile()
1458 thread_info** thr = CLG_(get_threads)(); in new_dumpfile()
1461 CLG_(add_diff_cost)(CLG_(sets).full, sum, in new_dumpfile()
1466 fprint_cost_ln(fd, "summary: ", CLG_(dumpmap), sum); in new_dumpfile()
1469 CLG_(init_cost_lz)( CLG_(sets).full, &dump_total_cost ); in new_dumpfile()
1484 fprint_cost_ln(fd, "totals: ", CLG_(dumpmap), in close_dumpfile()
1487 CLG_(add_cost_lz)(CLG_(sets).full, in close_dumpfile()
1488 &CLG_(total_cost), dump_total_cost); in close_dumpfile()
1515 CLG_DEBUG(1, "+ print_bbccs(tid %d)\n", CLG_(current_tid)); in print_bbccs_of_thread()
1517 print_fd = new_dumpfile(print_buf, CLG_(current_tid), print_trigger); in print_bbccs_of_thread()
1519 CLG_DEBUG(1, "- print_bbccs(tid %d): No output...\n", CLG_(current_tid)); in print_bbccs_of_thread()
1533 if (!CLG_(is_zero_cost)( CLG_(sets).full, ccSum[currSum].cost )) { in print_bbccs_of_thread()
1560 if (CLG_(clo).dump_bbs) { in print_bbccs_of_thread()
1586 CLG_(copy_cost)( CLG_(sets).full, ti->lastdump_cost, in print_bbccs_of_thread()
1587 CLG_(current_state).cost ); in print_bbccs_of_thread()
1589 CLG_DEBUG(1, "- print_bbccs(tid %d)\n", CLG_(current_tid)); in print_bbccs_of_thread()
1601 if (!CLG_(clo).separate_threads) { in print_bbccs()
1603 Int orig_tid = CLG_(current_tid); in print_bbccs()
1605 CLG_(switch_thread)(1); in print_bbccs()
1606 print_bbccs_of_thread( CLG_(get_current_thread)() ); in print_bbccs()
1607 CLG_(switch_thread)(orig_tid); in print_bbccs()
1610 print_bbccs_of_thread( CLG_(get_current_thread)() ); in print_bbccs()
1612 CLG_(forall_threads)(print_bbccs_of_thread); in print_bbccs()
1618 void CLG_(dump_profile)(Char* trigger, Bool only_current_thread) in CLG_() function
1623 CLG_(init_dumps)(); in CLG_()
1627 CLG_(stat).bb_executions, in CLG_()
1634 bbs_done = CLG_(stat).bb_executions++; in CLG_()
1680 void CLG_(init_dumps)() in CLG_() function
1694 if (!CLG_(clo).out_format) in CLG_()
1695 CLG_(clo).out_format = DEFAULT_OUTFORMAT; in CLG_()
1707 VG_(expand_file_name)("--callgrind-out-file", CLG_(clo).out_format); in CLG_()