From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754536AbbEOGnj (ORCPT ); Fri, 15 May 2015 02:43:39 -0400 Received: from terminus.zytor.com ([198.137.202.10]:58140 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754216AbbEOGne (ORCPT ); Fri, 15 May 2015 02:43:34 -0400 Date: Thu, 14 May 2015 23:43:19 -0700 From: tip-bot for Namhyung Kim Message-ID: Cc: jolsa@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, tglx@linutronix.de, dsahern@gmail.com, a.p.zijlstra@chello.nl, hpa@zytor.com, acme@redhat.com, mingo@kernel.org Reply-To: tglx@linutronix.de, namhyung@kernel.org, linux-kernel@vger.kernel.org, jolsa@redhat.com, dsahern@gmail.com, acme@redhat.com, mingo@kernel.org, hpa@zytor.com, a.p.zijlstra@chello.nl In-Reply-To: <1431184784-30525-2-git-send-email-namhyung@kernel.org> References: <1431184784-30525-2-git-send-email-namhyung@kernel.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf report: Force tty output if -T/ --thread option is given Git-Commit-ID: b138f42ed4920f808b5599efc2c4b150c27a4153 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: b138f42ed4920f808b5599efc2c4b150c27a4153 Gitweb: http://git.kernel.org/tip/b138f42ed4920f808b5599efc2c4b150c27a4153 Author: Namhyung Kim AuthorDate: Sun, 10 May 2015 00:19:43 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 12 May 2015 09:59:48 -0300 perf report: Force tty output if -T/--thread option is given The -T/--thread option is supported only on --stdio mode (at least for now). So enforce the tty output if the option was requested. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1431184784-30525-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 62b49ca..4d642db 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -815,8 +815,8 @@ repeat: goto error; } - /* Force tty output for header output. */ - if (report.header || report.header_only) + /* Force tty output for header output and per-thread stat. */ + if (report.header || report.header_only || report.show_threads) use_browser = 0; if (strcmp(input_name, "-") != 0)