Home | History | Annotate | Download | only in callgrind

Lines Matching refs:last

262 	Context* last;
272 last = 0;
283 last = cxt->fn[i-1]->pure_cxt;
285 /* If the last context was the context to print, we are finished */
286 if ((last == cxt) && (rec_index == 0)) return;
332 * the <last> position, update <last>
335 static Bool print_fn_pos(int fd, FnPos* last, BBCC* bbcc)
347 if (last->rec_index != bbcc->rec_index) {
350 last->rec_index = bbcc->rec_index;
351 last->cxt = 0; /* reprint context */
355 if (last->cxt != bbcc->cxt) {
356 fn_node* last_from = (last->cxt && last->cxt->size >1) ?
357 last->cxt->fn[1] : 0;
372 last->cxt = bbcc->cxt;
376 if (last->obj != bbcc->cxt->fn[0]->file->obj) {
380 last->obj = bbcc->cxt->fn[0]->file->obj;
384 if (last->file != bbcc->cxt->fn[0]->file) {
388 last->file = bbcc->cxt->fn[0]->file;
393 if (last->fn != bbcc->cxt->fn[0]) {
395 last->fn = bbcc->cxt->fn[0];
401 if ((last->rec_index != bbcc->rec_index) ||
402 (last->cxt != bbcc->cxt)) {
405 last->fn = bbcc->cxt->fn[0];
406 last->rec_index = bbcc->rec_index;
411 last->cxt = bbcc->cxt;
519 * print position change inside of a BB (last -> curr)
520 * this doesn't update last to curr!
522 static void fprint_apos(Int fd, AddrPos* curr, AddrPos* last, file_node* func_file)
529 if (curr->file != last->file) {
541 if (curr->line != last->line) {
554 * This doesn't set last to curr afterwards!
557 void fprint_pos(Int fd, AddrPos* curr, AddrPos* last)
564 int diff = curr->addr - last->addr;
565 if ( CLG_(clo).compress_pos && (last->addr >0) &&
579 int diff = curr->bb_addr - last->bb_addr;
580 if ( CLG_(clo).compress_pos && (last->bb_addr >0) &&
594 int diff = curr->line - last->line;
595 if ( CLG_(clo).compress_pos && (last->line >0) &&
629 * position are written that changed relative to last written position.
633 last)
641 fprint_pos(fd, &(c->p), last);
642 copy_apos( last, &(c->p) ); /* update last to current position */
653 static void fprint_jcc(Int fd, jCC* jcc, AddrPos* curr, AddrPos* last, ULong ecounter)
669 target.file = last->file;
692 if (last->file != target.file) {
718 fprint_pos(fd, &target, last);
720 fprint_pos(fd, curr, last);
738 if (last->file != file) {
754 fprint_pos(fd, &target, last);
756 fprint_pos(fd, curr, last);
779 static Bool fprint_bbcc(Int fd, BBCC* bbcc, AddrPos* last)
820 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
821 fprint_fcost(fd, currCost, last);
844 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
845 fprint_fcost(fd, currCost, last);
848 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
853 fprint_jcc(fd, jcc, &(currCost->p), last, ecounter);
881 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
882 fprint_fcost(fd, currCost, last);
886 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
898 fprint_fcost(fd, currCost, last);
907 fprint_jcc(fd, jcc, &(currCost->p), last, ecounter);
915 fprint_apos(fd, &(currCost->p), last, bbcc->cxt->fn[0]->file);
916 fprint_fcost(fd, currCost, last);
1585 /* set counters of last dump */