Received: by 10.223.185.116 with SMTP id b49csp3466699wrg; Mon, 5 Mar 2018 22:43:52 -0800 (PST) X-Google-Smtp-Source: AG47ELvGTwMmQbO3na3T92xp6XZDv47ElJRksBLIJcvswIRsR+1fKeL4Z6srz5KUZj5J2ugMiRAS X-Received: by 10.99.116.22 with SMTP id p22mr14529826pgc.132.1520318632104; Mon, 05 Mar 2018 22:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520318632; cv=none; d=google.com; s=arc-20160816; b=qwGCjJEYv4K9hdE2WGP0hds4njq/0fwO/3pR1cpI2s4Jvdjd4eR6lU30420mosZuQR 1UvF5kF9jz5Fkqur7D1xZd/rH/cMzM6JMfKNU4jamiIYzr6CcwT17eMgN3LzWgQ06KM6 3A64Vx67QrOSMNEz3pWlSXt38vk9CYKlh63XhHK0TIUVpXTLEfyySG76RIxc29sk104H 1zvk/bglOhLrfJzGYpI5EAWYGghs1NO/r4Y/csNUxsNQzd8wTX+UF+P/4A47MAWFVQ72 7Q8MsOM//CkPMTT9UZKA1agXhADgxwCPKr+9K9n2M36RgjioUEgmGcaVpb/oiQsyJr0x ApEw== 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=n94mSJpWIqgUr+Fdu5nj8I6JYPA7+F0Xu5YDoDAoN88=; b=cnavi2ka3e8IWNQTU6Ek3iIkM6Sxq72lDcsR4o8++DBXgET9iKg9VLtLCpQQlbFA2A 5KZkQ/wf9A1L7t9oaV8xI9m8frNmrBDlIkkUhvIXyAdy9Enf44lItKgiYNmT4XMW72xp ebWmlpTcVJ7wM2xECZSFs3KhhOd3mS5Ykpgw+JL9ssMcy4TXDJKmk+2jqeVgG3lhQJwG 5L8kIRepGuaADdOJrS/ymkPWJXydYS2qmNBDMPreGc2weDOinXgFR/BE04YRvRo1r5rC LAhh8CItata49HC9y6X31NjXjXyLjKuDTnjQ0C4e1j/JMlt40Wr/dcNrY/xWt0kTDn6T A3ww== 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 f3-v6si10697576plf.289.2018.03.05.22.43.38; Mon, 05 Mar 2018 22:43:52 -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 S932128AbeCFGmR (ORCPT + 99 others); Tue, 6 Mar 2018 01:42:17 -0500 Received: from terminus.zytor.com ([198.137.202.136]:56983 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbeCFGmQ (ORCPT ); Tue, 6 Mar 2018 01:42:16 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w266g9VC012060; Mon, 5 Mar 2018 22:42:09 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w266g80u012057; Mon, 5 Mar 2018 22:42:08 -0800 Date: Mon, 5 Mar 2018 22:42:08 -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: acme@redhat.com, Kan.liang@intel.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, kan.liang@intel.com, hpa@zytor.com Reply-To: acme@redhat.com, Kan.liang@intel.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, kan.liang@intel.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/core] perf top: Fix annoying fallback message on older kernels Git-Commit-ID: 853745f5e6d95faaae6381c9a01dbd43de992fb3 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: 853745f5e6d95faaae6381c9a01dbd43de992fb3 Gitweb: https://git.kernel.org/tip/853745f5e6d95faaae6381c9a01dbd43de992fb3 Author: Kan Liang AuthorDate: Mon, 26 Feb 2018 10:17:10 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 26 Feb 2018 16:04:08 -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; }