Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp351151imm; Thu, 6 Sep 2018 03:34:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbAhBPbfeOBWHXXRS5PUMEJHjXEmFmDwwPkOoVwrAun2rxP3V5XoKsPEb5iKYJrVFfmZSuE X-Received: by 2002:a17:902:7b97:: with SMTP id w23-v6mr2038190pll.66.1536230064429; Thu, 06 Sep 2018 03:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536230064; cv=none; d=google.com; s=arc-20160816; b=IujeAwjY53oQ4vA4UPe8uzO2y94xnj+cgTJ/d8i9DFrQtlXeO88XSy4bh/A1XMy+Sb u0T2IBw126UJygmyWcsCrvD5mavWUhJfISIJn0DlK6hPpwk6Bajp57rKgx8YHwGZBbDC 8decZDy5EgJccGMlA5+JxdPUsO1JYg3KQn6UrtgzJaanXwwx6NQFxqjzaAKhcTZLNPmJ cdWgRFh3Um2tsVeaYHVclqPrsUXlUF689CmyGA4hibDOblKo/iHCXm7NYNNKv6LOuQsn YeO+heGT+Tux508sTU39SKMzxy6Gj9ks51VmmHhFckKhnYy/XEXF18tM7d/FGG3/qegH Nhkg== 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; bh=NqAbaFN92D4G3+p51ZzLNslymfO2UQnKyKaP0bcNla0=; b=kadAjBmEEx/OL594mwg121d6MQbJt2u+sgRVOyQj+LV0u5pXtDkJwRP0FmZFBYE1xi 8QHTdSQlL4fnn8sYQyXRa+zXIITYnN6aimU8LKMxvev4qYV3nzlY/CS6yOrlpYIdXDLz jkfW61vr3o4LhI8W8IXY3rjBCjjMBfx3hsVLvwh8HBmgjkmixlbto2zrJT5hNIfDBD7D 2vgEeHZecfrEhPRjR+/YesqoiourjHydJteCrPEDCQBfSRWUirtGGy3sYpPTbtAKO3IC PkzmYsRO3wSWsnAC6Smykep84kKVNsPL7mKJkz/1Zesj9wx9127nXAQtWyM1j7wqts/G CrSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="gJ5l310/"; 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 o6-v6si4358650pgp.631.2018.09.06.03.34.06; Thu, 06 Sep 2018 03:34:24 -0700 (PDT) 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=@infradead.org header.s=bombadil.20170209 header.b="gJ5l310/"; 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 S1727618AbeIFL4C (ORCPT + 99 others); Thu, 6 Sep 2018 07:56:02 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:34790 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725880AbeIFL4C (ORCPT ); Thu, 6 Sep 2018 07:56:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NqAbaFN92D4G3+p51ZzLNslymfO2UQnKyKaP0bcNla0=; b=gJ5l310/94vKEQc2SdsDmoOOC c7oaczOaE4boY9L4MHEnqPOTCaMZq+EdKPdMzkZh2I6jwlaXlQPJ91kB+lsQyTOcQ9cENptsOmc7L SmA/8w+8ceXoZYKcU3oVceHpPcbaEebyJZxiNzeScALuWV1ioEiRgLZM/EYShDnY+fjjAaBE/1C+6 bQucWYv38HjiMYRx0O3sSKHBV2ik57oI0vLC7OpF8T7LFlYGpCd/bQ9SaxwakByVZOQ8Nrix/9slz cKBM/JF8IW5IOQ7X4hbQx5YUR7Yo67MmVVF7Xr/v30t2tyVCQF2JkFCyz2aUExfLTLyoqazQ6fz8D KRmkye8KQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fxobw-0004Ow-4T; Thu, 06 Sep 2018 07:21:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E9CE520210301; Thu, 6 Sep 2018 09:21:49 +0200 (CEST) Date: Thu, 6 Sep 2018 09:21:49 +0200 From: Peter Zijlstra To: Andi Kleen Cc: Eduardo Valentin , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Kan Liang , Dan Carpenter , Jia Zhang , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCHv2 1/1] perf/x86/intel: make error messages less confusing Message-ID: <20180906072149.GE24082@hirez.programming.kicks-ass.net> References: <20180823150732.11249-1-eduval@amazon.com> <20180905085212.GS24124@hirez.programming.kicks-ass.net> <20180905155317.GA20320@u40b0340c692b58f6553c.ant.amazon.com> <20180905214707.GM27886@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905214707.GM27886@tassilo.jf.intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 05, 2018 at 02:47:07PM -0700, Andi Kleen wrote: > On Wed, Sep 05, 2018 at 08:53:17AM -0700, Eduardo Valentin wrote: > > On Wed, Sep 05, 2018 at 10:52:12AM +0200, Peter Zijlstra wrote: > > > On Thu, Aug 23, 2018 at 08:07:32AM -0700, Eduardo Valentin wrote: > > > > On a system with X86_FEATURE_ARCH_PERFMON disabled > > > > and with a model not known by family PMU drivers, > > > > user gets a kernel message log like the following: > > > > [ 0.100114] Performance Events: unsupported p6 CPU model 85 no PMU driver, software events only. > > > > > > > > The "unsupported .. CPU" part may be confusing for some > > > > users leading to wrong understanding that the kernel > > > > does not support the CPU model. > > > > > > Send them back to first grade, such that they might learn to read? > > > > > > > :-) > > I think it's a valid concern, I guess Eduardo actually has real people > who got confused. But it is really easy to confuse real people; as real people are mostly clueless. There is only so much you can do for the semi illiterate masses. Should we dumb down everything to baby talk just to cater to them? The string is clearly prefixed by the subsystem, if you get confused by that your reading comprehension really is rock bottom. [ 0.100114] Performance Events: unsupported p6 CPU model 85 no PMU driver, software events only. Heck, it even mentions "no PMU driver", how much clues do you need? Also, the proposed alternative: [ 0.667154] Performance Events: CPU does not support PMU: no PMU driver, software events only. Looses out information on which CPU family we failed on. Nor does it mention the most likely reason for this error: virt crap. I'd not mind a warning like: [] Performance Events: Your crappy virt solution is lying about it's CPU model, it doesn't have a (matching) PMU.