Lines Matching full:cost
404 /* copy file position and init cost */
421 /* copy file position and init cost */
426 c->cost = CLG_(get_eventset_cost)( CLG_(sets).full );
427 CLG_(init_cost)( CLG_(sets).full, c->cost );
527 void fprint_cost(VgFile *fp, const EventMapping* es, const ULong* cost)
529 HChar *mcost = CLG_(mappingcost_as_string)(es, cost);
536 /* Write the cost of a source line; only that parts of the source
539 * Something is written only if cost != 0; returns True in this case.
546 CLG_(print_cost)(-5, CLG_(sets).full, c->cost);
552 fprint_cost(fp, CLG_(dumpmap), c->cost);
554 /* add cost to total */
555 CLG_(add_and_zero_cost)( CLG_(sets).full, dump_total_cost, c->cost );
584 CLG_ASSERT(CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost));
651 if (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost)) {
658 fprint_cost(fp, CLG_(dumpmap), jcc->cost);
660 CLG_(init_cost)( CLG_(sets).full, jcc->cost );
668 /* Cost summation of functions.We use alternately ccSum[0/1], thus
705 /* get debug info of current instruction address and dump cost
718 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) {
731 /* add line cost to current cost sum */
732 (*CLG_(cachesim).add_icost)(currCost->cost, bbcc, instr_info, ecounter);
739 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost )))
743 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) {
753 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost )))
770 /* yes, if JCC only counts jmp arcs or cost >0 */
772 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost )))
780 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) {
794 currCost->cost, bbcc->skipped );
805 (!CLG_(is_zero_cost)( CLG_(sets).full, jcc->cost )))
812 if (!CLG_(is_zero_cost)( CLG_(sets).full, currCost->cost )) {
820 /* when every cost was immediately written, we must have done so,
821 * as this function is only called when there's cost in a BBCC
1041 * update cost sums for active calls
1048 CLG_(add_diff_cost_lz)( CLG_(sets).full, &(e->jcc->cost),
1049 e->enter_cost, CLG_(current_state).cost);
1069 * update cost sums for active calls
1145 const EventMapping* em, const ULong* cost)
1147 HChar *mcost = CLG_(mappingcost_as_string)(em, cost);
1313 ti->states.entry[0]->cost);
1326 thr[t]->states.entry[0]->cost);
1331 /* all dumped cost will be added to total_fcc */
1389 /* on context/function change, print old cost buffer before */
1393 if (!CLG_(is_zero_cost)( CLG_(sets).full, ccSum[currSum].cost )) {
1444 CLG_(current_state).cost );