Received: by 10.223.185.116 with SMTP id b49csp4780526wrg; Wed, 7 Mar 2018 00:27:43 -0800 (PST) X-Google-Smtp-Source: AG47ELs3sPch32uB+SlVPQ26X6Hjy33HkPyLehfh/pJiAzNy1sEmrSAQkA8jaLl+Ub2f6saBgSFK X-Received: by 10.98.141.205 with SMTP id p74mr21754922pfk.211.1520411263761; Wed, 07 Mar 2018 00:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520411263; cv=none; d=google.com; s=arc-20160816; b=VMOKHTOC89ivyh0Ip6VY36J0yAjCGwjp55xFQtmGaN9lTUnwhWsakRWRot58ZejZHN NWsL8CWJDyJQb6kCreDWfR+MUjlpO8HyzqOo/d9LItRj0lftuQHtazZTb9KluNwuxHoK mf3v1uhujcKHIHwgIabu1KfKEs8R2Nt2MdGEiHfmMfoP37VhrQAiCul8CFJYqHBcHX+J Kicld+Ahd6nDJr12qBD4jVuWBIzg8/qrCtExZD2oeRMl3aKyRTL61qb2/UcQXNoRrGfa mpKqM5R6W/CX/UOVrHggaH425LsQtVqPVyZwkyTVX8qaOlZvBHaTwbNUgzi7WOn0qQPX /3/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=z2VvkvxyAc7SMy/bd3TxwQNf7K6965RSUBRgWdxiTns=; b=UtESyZ8smS5KC6iZQ39GNsqpxzk8kGYEsqae8/lpBv4A7v4Pvr0rOvbSoek/ePetsH gGQgNNvJPRifCj4eqVC3Nc/Sb0vtyhyKWnfh0C0mQ9cWuMagTmV6i5WVFGD2gfqozRCk zbZvwuQadfkbd8+07dQHx9zf6zHsgtjTZk5oKaJkLsN/ZAp6gEZLp84ogy095OWiHhC4 iCapL41WHX50Ngzz0L/L4QBT2wvJi5U8uApnnEk0tSFujZWMKDwHqA2s0d6ubd1fdIgn +Eb8IMTtnhAXhoNaT4flEm7oePb4QyY1Ikgh+DAjcV+UYOPilwtCvKKTpcvH/cYU29Tz HPuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si12455033pll.348.2018.03.07.00.27.29; Wed, 07 Mar 2018 00:27:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754128AbeCGIZ1 (ORCPT + 99 others); Wed, 7 Mar 2018 03:25:27 -0500 Received: from terminus.zytor.com ([198.137.202.136]:46149 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbeCGIZZ (ORCPT ); Wed, 7 Mar 2018 03:25:25 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w278PHsf006440; Wed, 7 Mar 2018 00:25:17 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w278PH67006436; Wed, 7 Mar 2018 00:25:17 -0800 Date: Wed, 7 Mar 2018 00:25:17 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Kan Liang Message-ID: Cc: kan.liang@intel.com, Kan.liang@intel.com, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com Reply-To: Kan.liang@intel.com, kan.liang@intel.com, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com In-Reply-To: <1519669030-176549-1-git-send-email-kan.liang@intel.com> References: <1519669030-176549-1-git-send-email-kan.liang@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf top: Fix annoying fallback message on older kernels Git-Commit-ID: 626af862da9c650e80bdea44684be9334f8eb75b 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 626af862da9c650e80bdea44684be9334f8eb75b Gitweb: https://git.kernel.org/tip/626af862da9c650e80bdea44684be9334f8eb75b Author: Kan Liang AuthorDate: Mon, 26 Feb 2018 10:17:10 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 5 Mar 2018 11:48:56 -0300 perf top: Fix annoying fallback message on older kernels On older (e.g. v4.4) kernels, an annoying fallback message can be observed in 'perf top': ┌─Warning:──────────────────────┐ │fall back to non-overwrite mode│ │ │ │ │ │Press any key... │ └───────────────────────────────┘ The 'perf top' utility has been changed to overwrite mode since commit ebebbf082357 ("perf top: Switch default mode to overwrite mode"). For older kernels which don't have overwrite mode support, 'perf top' will fall back to non-overwrite mode and print out the fallback message using ui__warning(), which needs user's input to close. The fallback message is not critical for end users. Turning it to debug message which is printed when running with -vv. Reported-by: Ingo Molnar Signed-off-by: Kan Liang Cc: Kan Liang Fixes: ebebbf082357 ("perf top: Switch default mode to overwrite mode") Link: http://lkml.kernel.org/r/1519669030-176549-1-git-send-email-kan.liang@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index b7c823ba8374..35ac016fcb98 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -991,7 +991,7 @@ static int perf_top_overwrite_fallback(struct perf_top *top, evlist__for_each_entry(evlist, counter) counter->attr.write_backward = false; opts->overwrite = false; - ui__warning("fall back to non-overwrite mode\n"); + pr_debug2("fall back to non-overwrite mode\n"); return 1; }