From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175AbbFYH6D (ORCPT ); Thu, 25 Jun 2015 03:58:03 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36405 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbbFYH5x (ORCPT ); Thu, 25 Jun 2015 03:57:53 -0400 Date: Thu, 25 Jun 2015 00:57:38 -0700 From: tip-bot for Adrian Hunter Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, jolsa@redhat.com, tglx@linutronix.de, hpa@zytor.com, acme@redhat.com Reply-To: mingo@kernel.org, jolsa@redhat.com, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, tglx@linutronix.de, hpa@zytor.com, acme@redhat.com In-Reply-To: <1435045969-15999-2-git-send-email-adrian.hunter@intel.com> References: <1435045969-15999-2-git-send-email-adrian.hunter@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Print a newline before dumping Aggregated stats Git-Commit-ID: fe692ac86adbbbbf9745909aafe0c87fd7fc6368 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: fe692ac86adbbbbf9745909aafe0c87fd7fc6368 Gitweb: http://git.kernel.org/tip/fe692ac86adbbbbf9745909aafe0c87fd7fc6368 Author: Adrian Hunter AuthorDate: Tue, 23 Jun 2015 10:52:49 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 23 Jun 2015 18:21:43 -0300 perf tools: Print a newline before dumping Aggregated stats 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 Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1435045969-15999-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index aac1c4c..b5549b5 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -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;