Received: by 10.223.185.116 with SMTP id b49csp4619209wrg; Mon, 26 Feb 2018 22:55:38 -0800 (PST) X-Google-Smtp-Source: AH8x224xJxFz/I8nJQN/59cKBQdVS8dig+zj3an23COv2l/1HyymK/RHovXom++ivlxg6g9WXH30 X-Received: by 10.98.19.146 with SMTP id 18mr13258142pft.3.1519714538471; Mon, 26 Feb 2018 22:55:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519714538; cv=none; d=google.com; s=arc-20160816; b=EvXaRBLBsXVV2YPbYCIy/QVJObmis0QgA8vIr9D9W2swRibllBiEnKMPHMeRSAv7xy 72KwjERYaD9tEGEUeNGm5cVTMDb6vWliYbF3fGhE/slFwo+rM2pQf+225lQwoj/9YjMz b3GNHp3DRVrIoOMIuBx/HVL3tgeB6PNG0tMBLNfhE3PTZ7Mjtah9D/T66y5VhyIUerf5 NzpIz9xrZupKAgQZNLgWpbhBVrSzORgQ9bwVF3iyRPCKJd3gHFw2HKkXJ6x6C9MtzBdX gquwIV95jyhqv25yfInTUKbdtdKtvOBCETB4zzKlPUkmAl91RjSmEzqwzOCJ4pZhbC+C RBPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Kk00hTHiH8WNufNxtobuf61msnO20OoJh7t0Lt5wSFQ=; b=jDkm81L7hqt4THimGHpfWhDF5YLLfE5ER1bGb5PlMjcfvghzRqdnKvl2Oyk09BE3Dh zPX26Eak8XrKnvusGRANu0op2JbZuKa0tyTR6o+uHFS6O+IHMawrlw49bTAFvKyBkj08 OSiAq69S22azL0M4f+An8tLg5B5VQRvSfGbNXWRRdhwSgWkrKH4Y54PRcVR3pt1ZnnHk zw7zfsWxQQbrdE9NmHrswpaQexZkuG+6zOwLI6w7HcHXBMWe3oBErOcpq7htgorDuWOJ BEV6+kd9WtDPHRNluoF2avZwOmJFQgFeO8l8cXdlIOtQ2cUmWu44Fm2ajBd8e9v6VXzz TUvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=G3GAUwGS; 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 k15si6012974pfi.174.2018.02.26.22.55.23; Mon, 26 Feb 2018 22:55:38 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=G3GAUwGS; 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 S1752056AbeB0Gx5 (ORCPT + 99 others); Tue, 27 Feb 2018 01:53:57 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:34862 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbeB0Gx4 (ORCPT ); Tue, 27 Feb 2018 01:53:56 -0500 Received: by mail-wr0-f195.google.com with SMTP id l43so23694612wrc.2 for ; Mon, 26 Feb 2018 22:53:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Kk00hTHiH8WNufNxtobuf61msnO20OoJh7t0Lt5wSFQ=; b=G3GAUwGSdJxwu7rVBGzoXEgeKN5xaTg2ts9xo9nHKAVay5BcbW1vRY7W7CdyXyrlaB wnPdvKrkmbMirxAmGlQw4O/9ZB0QahDue3pgEQgmCaznvgSnu1yNiCAP558NRn/0/SQb lPwTvIcO8tDtyyqDyEOiLn+ePvmB1rFvnpNRTIMTXOY1EmGEhcFa3+iVTjXIqUuxLI7K IKHhe7mHmT0/koeJscygjd9sCTQEhBxTxIHfE77S+CmqRm+QnVdE1P0YQP3awvhGEuKV BhvObqTK3+XefFPDgrt0RHrfF/wLao/yzgv9BsCqwCI+IoYq/hFqBnHyOQzHaDc6bcb3 Jv8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Kk00hTHiH8WNufNxtobuf61msnO20OoJh7t0Lt5wSFQ=; b=jqOeXfDw09sflw1odoKAIJn4AtY6c6lBztnBb6ZvvbeTN8VVf7Tjqrk3M7WQWzJnWv 9wutHT6cAagWcdoXfODXEcuZqDXq10Me1am7KIlxS5ekmfNNOLVezdUYwa2PHiwDZBBf KVNwWkdt6zx2Cj1L3ZPBWAXlY2OCuso7jXVWfvM9PvL/ytv1qhWQZv2NTVDo6OhEMUVe aZkyzpH0Qi1UUGvL0dmykPOwU1/Lfr+d56++g3R+DufNrTJ9687dUQDQ+qQQE0SQ4Eh1 zV0rpGPBHnGQqFQtkAxDUix3EGcaYZhpk5SMINKE9UnrjwoY5934LBKFyb04jmDu+hqg wTFw== X-Gm-Message-State: APf1xPBZUTH/KUW6YXxCADQohLUcyGzBFJrI3CpAiHD8qF7G/VS6Q+Vv mrHwj33L4q+V5ZhHSx++iS0= X-Received: by 10.223.155.142 with SMTP id d14mr12138440wrc.93.1519714435156; Mon, 26 Feb 2018 22:53:55 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id 78sm9458324wmb.25.2018.02.26.22.53.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Feb 2018 22:53:54 -0800 (PST) Date: Tue, 27 Feb 2018 07:53:52 +0100 From: Ingo Molnar To: kan.liang@intel.com Cc: acme@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf top: Fix annoying fallback message on older kernel Message-ID: <20180227065352.kuuwworei2uxwbd4@gmail.com> References: <1519669030-176549-1-git-send-email-kan.liang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519669030-176549-1-git-send-email-kan.liang@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * kan.liang@intel.com wrote: > 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; > } Thanks! Ingo