diff options
| -rw-r--r-- | tools/perf/util/annotate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 2468b8aa0b6b..11a8a447a3af 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
| @@ -1891,6 +1891,7 @@ int symbol__annotate(struct symbol *sym, struct map *map, | |||
| 1891 | struct annotation_options *options, | 1891 | struct annotation_options *options, |
| 1892 | struct arch **parch) | 1892 | struct arch **parch) |
| 1893 | { | 1893 | { |
| 1894 | struct annotation *notes = symbol__annotation(sym); | ||
| 1894 | struct annotate_args args = { | 1895 | struct annotate_args args = { |
| 1895 | .privsize = privsize, | 1896 | .privsize = privsize, |
| 1896 | .evsel = evsel, | 1897 | .evsel = evsel, |
| @@ -1921,6 +1922,7 @@ int symbol__annotate(struct symbol *sym, struct map *map, | |||
| 1921 | 1922 | ||
| 1922 | args.ms.map = map; | 1923 | args.ms.map = map; |
| 1923 | args.ms.sym = sym; | 1924 | args.ms.sym = sym; |
| 1925 | notes->start = map__rip_2objdump(map, sym->start); | ||
| 1924 | 1926 | ||
| 1925 | return symbol__disassemble(sym, &args); | 1927 | return symbol__disassemble(sym, &args); |
| 1926 | } | 1928 | } |
| @@ -2796,8 +2798,6 @@ int symbol__annotate2(struct symbol *sym, struct map *map, struct perf_evsel *ev | |||
| 2796 | 2798 | ||
| 2797 | symbol__calc_percent(sym, evsel); | 2799 | symbol__calc_percent(sym, evsel); |
| 2798 | 2800 | ||
| 2799 | notes->start = map__rip_2objdump(map, sym->start); | ||
| 2800 | |||
| 2801 | annotation__set_offsets(notes, size); | 2801 | annotation__set_offsets(notes, size); |
| 2802 | annotation__mark_jump_targets(notes, sym); | 2802 | annotation__mark_jump_targets(notes, sym); |
| 2803 | annotation__compute_ipc(notes, size); | 2803 | annotation__compute_ipc(notes, size); |
