aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/hist.c')
-rw-r--r--tools/perf/util/hist.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index b9828fce7bf0..d9a5a19391dc 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -156,8 +156,7 @@ void perf_session__collapse_resort(struct perf_session *self)
156 * reverse the map, sort on count. 156 * reverse the map, sort on count.
157 */ 157 */
158 158
159static void perf_session__insert_output_hist_entry(struct perf_session *self, 159static void perf_session__insert_output_hist_entry(struct rb_root *root,
160 struct rb_root *root,
161 struct hist_entry *he, 160 struct hist_entry *he,
162 u64 min_callchain_hits) 161 u64 min_callchain_hits)
163{ 162{
@@ -165,7 +164,7 @@ static void perf_session__insert_output_hist_entry(struct perf_session *self,
165 struct rb_node *parent = NULL; 164 struct rb_node *parent = NULL;
166 struct hist_entry *iter; 165 struct hist_entry *iter;
167 166
168 if (self->use_callchain) 167 if (symbol_conf.use_callchain)
169 callchain_param.sort(&he->sorted_chain, &he->callchain, 168 callchain_param.sort(&he->sorted_chain, &he->callchain,
170 min_callchain_hits, &callchain_param); 169 min_callchain_hits, &callchain_param);
171 170
@@ -201,7 +200,7 @@ void perf_session__output_resort(struct perf_session *self, u64 total_samples)
201 next = rb_next(&n->rb_node); 200 next = rb_next(&n->rb_node);
202 201
203 rb_erase(&n->rb_node, &self->hists); 202 rb_erase(&n->rb_node, &self->hists);
204 perf_session__insert_output_hist_entry(self, &tmp, n, 203 perf_session__insert_output_hist_entry(&tmp, n,
205 min_callchain_hits); 204 min_callchain_hits);
206 } 205 }
207 206