|
@@ -416,8 +416,16 @@ static int __cmd_report(struct perf_report *rep)
|
|
|
hists->symbol_filter_str = rep->symbol_filter_str;
|
|
|
|
|
|
hists__collapse_resort(hists);
|
|
|
- hists__output_resort(hists);
|
|
|
nr_samples += hists->stats.nr_events[PERF_RECORD_SAMPLE];
|
|
|
+
|
|
|
+ /* Non-group events are considered as leader */
|
|
|
+ if (symbol_conf.event_group &&
|
|
|
+ !perf_evsel__is_group_leader(pos)) {
|
|
|
+ struct hists *leader_hists = &pos->leader->hists;
|
|
|
+
|
|
|
+ hists__match(leader_hists, hists);
|
|
|
+ hists__link(leader_hists, hists);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (nr_samples == 0) {
|
|
@@ -425,6 +433,9 @@ static int __cmd_report(struct perf_report *rep)
|
|
|
goto out_delete;
|
|
|
}
|
|
|
|
|
|
+ list_for_each_entry(pos, &session->evlist->entries, node)
|
|
|
+ hists__output_resort(&pos->hists);
|
|
|
+
|
|
|
if (use_browser > 0) {
|
|
|
if (use_browser == 1) {
|
|
|
perf_evlist__tui_browse_hists(session->evlist, help,
|