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, 6 insertions, 1 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 1cd785b5b56e..08b6cd945f1e 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -1141,7 +1141,12 @@ void hists__output_resort(struct hists *hists, struct ui_progress *prog)
1141 struct hist_entry *n; 1141 struct hist_entry *n;
1142 u64 min_callchain_hits; 1142 u64 min_callchain_hits;
1143 struct perf_evsel *evsel = hists_to_evsel(hists); 1143 struct perf_evsel *evsel = hists_to_evsel(hists);
1144 bool use_callchain = evsel ? (evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN) : symbol_conf.use_callchain; 1144 bool use_callchain;
1145
1146 if (evsel && !symbol_conf.show_ref_callgraph)
1147 use_callchain = evsel->attr.sample_type & PERF_SAMPLE_CALLCHAIN;
1148 else
1149 use_callchain = symbol_conf.use_callchain;
1145 1150
1146 min_callchain_hits = hists->stats.total_period * (callchain_param.min_percent / 100); 1151 min_callchain_hits = hists->stats.total_period * (callchain_param.min_percent / 100);
1147 1152