Skip to content

Commit

Permalink
perf tools: Print a newline before dumping Aggregated stats
Browse files Browse the repository at this point in the history
When dumping events with 'perf report -D' the event print always starts
with a newline (see dump_event()).

Do the same with the "Aggregated stats" print so that it is not jammed
up against the last event print.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1435045969-15999-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
Adrian Hunter authored and Arnaldo Carvalho de Melo committed Jun 23, 2015
1 parent 5531e16 commit fe692ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ size_t perf_session__fprintf_nr_events(struct perf_session *session, FILE *fp)
if (perf_header__has_feat(&session->header, HEADER_AUXTRACE))
msg = " (excludes AUX area (e.g. instruction trace) decoded / synthesized events)";

ret = fprintf(fp, "Aggregated stats:%s\n", msg);
ret = fprintf(fp, "\nAggregated stats:%s\n", msg);

ret += events_stats__fprintf(&session->evlist->stats, fp);
return ret;
Expand Down

0 comments on commit fe692ac

Please sign in to comment.