annotate.c (e3a6a62400520452fe39740dca90a1d0b94b8f92) annotate.c (5dfa210e407d0fedf746958bff206995bd46570d)
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 */

--- 1660 unchanged lines hidden (view full) ---

1669 if (src_line->samples[k].percent > percent_max)
1670 percent_max = src_line->samples[k].percent;
1671 }
1672
1673 if (percent_max <= 0.5)
1674 goto next;
1675
1676 offset = start + i;
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 */

--- 1660 unchanged lines hidden (view full) ---

1669 if (src_line->samples[k].percent > percent_max)
1670 percent_max = src_line->samples[k].percent;
1671 }
1672
1673 if (percent_max <= 0.5)
1674 goto next;
1675
1676 offset = start + i;
1677 src_line->path = get_srcline(map->dso, offset, NULL, false);
1677 src_line->path = get_srcline(map->dso, offset, NULL,
1678 false, true);
1678 insert_source_line(&tmp_root, src_line);
1679
1680 next:
1681 src_line = (void *)src_line + sizeof_src_line;
1682 }
1683
1684 resort_source_line(root, &tmp_root);
1685 return 0;

--- 228 unchanged lines hidden ---
1679 insert_source_line(&tmp_root, src_line);
1680
1681 next:
1682 src_line = (void *)src_line + sizeof_src_line;
1683 }
1684
1685 resort_source_line(root, &tmp_root);
1686 return 0;

--- 228 unchanged lines hidden ---