Received: by 10.223.185.116 with SMTP id b49csp4067832wrg; Mon, 26 Feb 2018 10:31:41 -0800 (PST) X-Google-Smtp-Source: AH8x226gSoDFy/Or/IavGsC1AoGR5AFb9cIIBXVfEkW44VJu6vaGq4X+B59Aa3+MK3fxe0mKQm01 X-Received: by 2002:a17:902:6c4d:: with SMTP id h13-v6mr11612898pln.273.1519669901798; Mon, 26 Feb 2018 10:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519669901; cv=none; d=google.com; s=arc-20160816; b=lcYMnEP2mMsqPgYOCLBWwuqFvdE8Sg0PFN5Qe1TZea0pvYs7rNPrdBHI7amt/LBTHg GLJZ1v7rKzpgwb3tk0vyiPYMxAOVOuoyT5Qf1Vy7bfvTw4mCdv1XcafPS2sL9/pjtAKn YUYKu5uD78J4jiui5wr3Ujh0fJ+M/UPQv1H5DvKyw1rYzuAG7Z2qg/e7kODmv1UJBFVV ZonjiFwalhz6cu1DwYw71qqrHShOv5T/sJNJQ/VmwhskWqEquaAdF5hFvnlywhICagix yGd/2VK8eLFTxIdPet+8ObEwgWV+6uIOFqxVxyVpSnE/NHszjzMhWmENq30EVHdFVCA1 WK3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=wguk6se7ILgjsUogzr4rvGubgrnrYankgvugwLJP6ww=; b=MUIQYs6SUvazSiGpb7wu3oFO5Aqv8mEHtRFs0uLHfdUtos9qrrMQ2JqR2fcNy2IhwQ 4lBNg8UADftdsnJjvKRu/tLV7X5baE+M5KDlbZbNs4grIixM1cucKJo0Zz7yA7j9gc71 jwx5lIVaeTDCGnr5FYAHsYQgSJ398oe67MrEak0lQq+FWuE1N5kn1cuETD81ULEay3+9 zVFz2LNaWhcSv94mJZFjrp1XJsxDeQgcyHn53IQYw+UnVq+qjenvpv/OEbutIYFjNxoG JUHshkUoYq8h8L5E78PLx3Zk1atlp+q3igTXBO4uFTcmS0PzOgMPDyxTEhkPxRwY7hwP NUGg== 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 g21si5237473pfh.379.2018.02.26.10.31.25; Mon, 26 Feb 2018 10:31:41 -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 S1751634AbeBZSaM (ORCPT + 99 others); Mon, 26 Feb 2018 13:30:12 -0500 Received: from mga11.intel.com ([192.55.52.93]:30230 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750986AbeBZSaL (ORCPT ); Mon, 26 Feb 2018 13:30:11 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 10:30:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,397,1515484800"; d="scan'208";a="207119539" Received: from otc-lr-04.jf.intel.com ([10.54.39.128]) by fmsmga005.fm.intel.com with ESMTP; 26 Feb 2018 10:30:10 -0800 From: kan.liang@intel.com To: mingo@kernel.org, acme@kernel.org Cc: linux-kernel@vger.kernel.org, Kan Liang Subject: [PATCH] perf top: Fix annoying fallback message on older kernel Date: Mon, 26 Feb 2018 10:17:10 -0800 Message-Id: <1519669030-176549-1-git-send-email-kan.liang@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang On older (v4.4) kernels, the annoying fallback message can be observed in 'perf top'. The 'perf top' has been changed to overwrite mode since 'commit ebebbf082357 ("perf top: Switch default mode to overwrite mode")' For the older kernels which don't have overwrite mode support, the 'perf top' will fall back to non-overwrite mode and print out the fallback message by ui__warning, which needs user's input to close. The fallback message is not critical message for end users. Turning it to debug message which is printed when running with -vv. Fixes: ebebbf082357 ("perf top: Switch default mode to overwrite mode") Reported-by: Ingo Molnar Signed-off-by: Kan Liang --- 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 b7c823b..35ac016 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; } -- 2.7.4