diff options
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/sort.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index f007a26d6f6d..1a046157bfef 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h | |||
@@ -151,6 +151,12 @@ struct hist_entry { | |||
151 | struct callchain_root callchain[0]; /* must be last member */ | 151 | struct callchain_root callchain[0]; /* must be last member */ |
152 | }; | 152 | }; |
153 | 153 | ||
154 | static __pure inline bool hist_entry__has_callchains(struct hist_entry *he) | ||
155 | { | ||
156 | const struct perf_evsel *evsel = hists_to_evsel(he->hists); | ||
157 | return evsel__has_callchain(evsel); | ||
158 | } | ||
159 | |||
154 | static inline bool hist_entry__has_pairs(struct hist_entry *he) | 160 | static inline bool hist_entry__has_pairs(struct hist_entry *he) |
155 | { | 161 | { |
156 | return !list_empty(&he->pairs.node); | 162 | return !list_empty(&he->pairs.node); |