|
@@ -151,6 +151,12 @@ struct hist_entry {
|
|
struct callchain_root callchain[0]; /* must be last member */
|
|
struct callchain_root callchain[0]; /* must be last member */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static __pure inline bool hist_entry__has_callchains(struct hist_entry *he)
|
|
|
|
+{
|
|
|
|
+ const struct perf_evsel *evsel = hists_to_evsel(he->hists);
|
|
|
|
+ return evsel__has_callchain(evsel);
|
|
|
|
+}
|
|
|
|
+
|
|
static inline bool hist_entry__has_pairs(struct hist_entry *he)
|
|
static inline bool hist_entry__has_pairs(struct hist_entry *he)
|
|
{
|
|
{
|
|
return !list_empty(&he->pairs.node);
|
|
return !list_empty(&he->pairs.node);
|