From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbbEIPV2 (ORCPT ); Sat, 9 May 2015 11:21:28 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:34389 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbbEIPVF (ORCPT ); Sat, 9 May 2015 11:21:05 -0400 From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern Subject: [PATCH 2/3] perf report: Force tty output if -T/--thread option is given Date: Sun, 10 May 2015 00:19:43 +0900 Message-Id: <1431184784-30525-2-git-send-email-namhyung@kernel.org> X-Mailer: git-send-email 2.3.7 In-Reply-To: <1431184784-30525-1-git-send-email-namhyung@kernel.org> References: <1431184784-30525-1-git-send-email-namhyung@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 b63aeda719be..ee541ad555f2 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -803,8 +803,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) -- 2.3.7