annotate.c (1491c22a5f8563951d3a798758f82b471ecbf501) | annotate.c (e64aa75bf5559be3ce72e53ae28b76a2f633ca06) |
---|---|
1/* 2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> 3 * 4 * Parts came from builtin-annotate.c, see those files for further 5 * copyright notes. 6 * 7 * Released under the GPL v2. (and only v2, not any later version) 8 */ --- 589 unchanged lines hidden (view full) --- 598{ 599 list_for_each_entry_continue(pos, head, node) 600 if (pos->offset >= 0) 601 return pos; 602 603 return NULL; 604} 605 | 1/* 2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com> 3 * 4 * Parts came from builtin-annotate.c, see those files for further 5 * copyright notes. 6 * 7 * Released under the GPL v2. (and only v2, not any later version) 8 */ --- 589 unchanged lines hidden (view full) --- 598{ 599 list_for_each_entry_continue(pos, head, node) 600 if (pos->offset >= 0) 601 return pos; 602 603 return NULL; 604} 605 |
606static double disasm__calc_percent(struct annotation *notes, int evidx, 607 s64 offset, s64 end, const char **path) | 606double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset, 607 s64 end, const char **path) |
608{ 609 struct source_line *src_line = notes->src->lines; 610 double percent = 0.0; 611 612 if (src_line) { 613 size_t sizeof_src_line = sizeof(*src_line) + 614 sizeof(src_line->p) * (src_line->nr_pcnt - 1); 615 --- 715 unchanged lines hidden --- | 608{ 609 struct source_line *src_line = notes->src->lines; 610 double percent = 0.0; 611 612 if (src_line) { 613 size_t sizeof_src_line = sizeof(*src_line) + 614 sizeof(src_line->p) * (src_line->nr_pcnt - 1); 615 --- 715 unchanged lines hidden --- |