From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755127AbbHFHEV (ORCPT ); Thu, 6 Aug 2015 03:04:21 -0400 Received: from terminus.zytor.com ([198.137.202.10]:55995 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755097AbbHFHEQ (ORCPT ); Thu, 6 Aug 2015 03:04:16 -0400 Date: Thu, 6 Aug 2015 00:03:59 -0700 From: tip-bot for Milian Wolff Message-ID: Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, acme@redhat.com, dsahern@gmail.com, milian.wolff@kdab.com, mingo@kernel.org Reply-To: hpa@zytor.com, acme@redhat.com, mingo@kernel.org, milian.wolff@kdab.com, dsahern@gmail.com, linux-kernel@vger.kernel.org, tglx@linutronix.de To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf trace: Write to stderr by default Git-Commit-ID: 007d66a0bd43d886eb3e4aceaf1a96b8743ccaff 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: 007d66a0bd43d886eb3e4aceaf1a96b8743ccaff Gitweb: http://git.kernel.org/tip/007d66a0bd43d886eb3e4aceaf1a96b8743ccaff Author: Milian Wolff AuthorDate: Wed, 5 Aug 2015 16:52:23 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 5 Aug 2015 16:52:23 -0300 perf trace: Write to stderr by default Without this patch, it is cumbersome to read the trace output but ignoring the normal, potentially verbose, output of the debuggee. One common example is doing something like the following: perf trace -s find /tmp > /dev/null Without this patch, the trace summary will be lost. Now, it will still be printed at the end. This behavior is also applied by strace. Cc: Milian Wolff Cc: David Ahern Link: http://lkml.kernel.org/n/tip-tqnks6y2cnvm5f9g2dsfr7zl@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 98d423e..a474970 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -2965,7 +2965,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused) .mmap_pages = UINT_MAX, .proc_map_timeout = 500, }, - .output = stdout, + .output = stderr, .show_comm = true, .trace_syscalls = true, };