summaryrefslogtreecommitdiffstats
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, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 67f9d9ffacfb..77deb3a40596 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -159,8 +159,6 @@ static int hist_iter__branch_callback(struct hist_entry_iter *iter,
159 struct perf_evsel *evsel = iter->evsel; 159 struct perf_evsel *evsel = iter->evsel;
160 int err; 160 int err;
161 161
162 hist__account_cycles(sample->branch_stack, al, sample, false);
163
164 bi = he->branch_info; 162 bi = he->branch_info;
165 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); 163 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel);
166 164
@@ -199,6 +197,8 @@ static int process_branch_callback(struct perf_evsel *evsel,
199 if (a.map != NULL) 197 if (a.map != NULL)
200 a.map->dso->hit = 1; 198 a.map->dso->hit = 1;
201 199
200 hist__account_cycles(sample->branch_stack, al, sample, false);
201
202 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann); 202 ret = hist_entry_iter__add(&iter, &a, PERF_MAX_STACK_DEPTH, ann);
203 return ret; 203 return ret;
204} 204}