aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 2c1bec39c30e..8edc205ff9a7 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -67,6 +67,7 @@ static int perf_evsel__add_sample(struct perf_evsel *evsel,
67 rb_erase(&al->sym->rb_node, 67 rb_erase(&al->sym->rb_node,
68 &al->map->dso->symbols[al->map->type]); 68 &al->map->dso->symbols[al->map->type]);
69 symbol__delete(al->sym); 69 symbol__delete(al->sym);
70 dso__reset_find_symbol_cache(al->map->dso);
70 } 71 }
71 return 0; 72 return 0;
72 } 73 }
@@ -187,6 +188,7 @@ find_next:
187 * symbol, free he->ms.sym->src to signal we already 188 * symbol, free he->ms.sym->src to signal we already
188 * processed this symbol. 189 * processed this symbol.
189 */ 190 */
191 zfree(&notes->src->cycles_hist);
190 zfree(&notes->src); 192 zfree(&notes->src);
191 } 193 }
192 } 194 }
@@ -238,6 +240,8 @@ static int __cmd_annotate(struct perf_annotate *ann)
238 if (nr_samples > 0) { 240 if (nr_samples > 0) {
239 total_nr_samples += nr_samples; 241 total_nr_samples += nr_samples;
240 hists__collapse_resort(hists, NULL); 242 hists__collapse_resort(hists, NULL);
243 /* Don't sort callchain */
244 perf_evsel__reset_sample_bit(pos, CALLCHAIN);
241 hists__output_resort(hists, NULL); 245 hists__output_resort(hists, NULL);
242 246
243 if (symbol_conf.event_group && 247 if (symbol_conf.event_group &&