From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082AbbFYH5k (ORCPT ); Thu, 25 Jun 2015 03:57:40 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36397 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbbFYH5b (ORCPT ); Thu, 25 Jun 2015 03:57:31 -0400 Date: Thu, 25 Jun 2015 00:57:20 -0700 From: tip-bot for Adrian Hunter Message-ID: Cc: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, acme@redhat.com, jolsa@redhat.com, adrian.hunter@intel.com, linux-kernel@vger.kernel.org Reply-To: hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, acme@redhat.com, jolsa@redhat.com, mingo@kernel.org In-Reply-To: <1435045969-15999-1-git-send-email-adrian.hunter@intel.com> References: <1435045969-15999-1-git-send-email-adrian.hunter@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf session: Print a newline when dumping PERF_RECORD_FINISHED_ROUND Git-Commit-ID: 5531e16227cc18bc13b028a052a609a233b49c07 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: 5531e16227cc18bc13b028a052a609a233b49c07 Gitweb: http://git.kernel.org/tip/5531e16227cc18bc13b028a052a609a233b49c07 Author: Adrian Hunter AuthorDate: Tue, 23 Jun 2015 10:52:48 +0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 23 Jun 2015 18:21:43 -0300 perf session: Print a newline when dumping PERF_RECORD_FINISHED_ROUND With 'perf report -D' the PERF_RECORD_FINISHED_ROUND event was printed without a newline, resulting in: 0x91a18 [0x8]: PERF_RECORD_FINISHED_ROUNDAggregated stats Other events print their details, but PERF_RECORD_FINISHED_ROUND doesn't have any so just add a print for a newline. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/1435045969-15999-1-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index aa482c1..aac1c4c 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -686,6 +686,8 @@ static int process_finished_round(struct perf_tool *tool __maybe_unused, union perf_event *event __maybe_unused, struct ordered_events *oe) { + if (dump_trace) + fprintf(stdout, "\n"); return ordered_events__flush(oe, OE_FLUSH__ROUND); }