Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2780838pxa; Fri, 7 Aug 2020 22:46:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpibrPu8wRKk2ArAuu84o++O5xnPt8QbrzEVouXwFcJWEnMgIgvWSgLIuUk9iwmc2N5aR7 X-Received: by 2002:a17:906:2cc2:: with SMTP id r2mr12395833ejr.482.1596865560080; Fri, 07 Aug 2020 22:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596865560; cv=none; d=google.com; s=arc-20160816; b=qezbw4pT2QVS73Re/IHjKyXMSFNXS7gMoqNC3QtThHDw3LvS9tLWPaL3dH3H6iWCJL cAVjsgeMlUSQQbucMRyDs6qVYRR90oL4tjypV10uDUjtgUCdtgHgG2EfwGvbpvXWThiO 0JJaJ61RQWSHOOrCuJg/6J5ddJ6nB7ClGJMQ6j1hikvNEceBRuwbp/iwxOF8V4zH5Go6 82iD8zo2DNBV71Lt67s6jSVoQwnkovpiF8SsgWQ77ZjuvOHd9BZU+Yl1hNv4oeoij5Sq Hpg/H5Dfsdu0ErWnAOZHzfsEPRdOFzOQgEI6j7dOR5qWffsxjy+riPy+xT6+rMatdS0W CbRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0/wbGuup5MJsBWH1JcPaM0IV+vf36zFgjMfwQRE6lUo=; b=NiLPeDxI90TxDeFGrw1du1TtDXMzHznWynx8db6Kvx6kJxtrgvUA/YOFciNPZWwqAJ vDuPM+2C4wT7WrC+n1yJVECikAZOg6USvAikXlJSTaZEQbStXoaV6b0PYT2n/0vzyr+T lu9uzZtHEa526BCeaiCv/HMuKTTmd9UbGsl+KbHo2TM4zqhNEwPYGNYMuX3DRYDfpbOM bPO5ZKzcPqQcquUUEnSfkv7r2FDfHuMNDPVT3HuytX4kwxHuzFpKgaTHrmGE7rynTgSO ohzGbAJtPYBmd6isyzNSYx6doANN5CFNvaT1dY+eQVL9DDTcDEFlfUOJGxZx+nKQmgRw vPUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WbXFGB1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si6533503edy.554.2020.08.07.22.45.37; Fri, 07 Aug 2020 22:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WbXFGB1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726474AbgHHFpH (ORCPT + 99 others); Sat, 8 Aug 2020 01:45:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:55332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725786AbgHHFpH (ORCPT ); Sat, 8 Aug 2020 01:45:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 672DF2177B; Sat, 8 Aug 2020 05:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596865507; bh=A3HzZFYqgjH52azA3Qx3vH1BMJlp4qELJhyhFaQEuJA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WbXFGB1tTYMahSa3GxVVjpnLnbAVER98ZqskFruFs8rsn7cohv0dNwmYwNMM3azBj 9Uh18P2sgXi24Xg89o/swb3Gd5lyBU4G3P7TdSlJ7kVAL5jsQkNqIgxpB6P8ijSzdw afULkJcKHPxOkaoSkfAsjN5/cHf59ELpyt0ezBoQ= Date: Sat, 8 Aug 2020 07:45:04 +0200 From: Greg KH To: Jonathan Adams Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Jim Mattson , David Rientjes Subject: Re: [RFC PATCH 3/7] core/metricfs: metric for kernel warnings Message-ID: <20200808054504.GD1037591@kroah.com> References: <20200807212916.2883031-1-jwadams@google.com> <20200807212916.2883031-4-jwadams@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200807212916.2883031-4-jwadams@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 02:29:12PM -0700, Jonathan Adams wrote: > Count kernel warnings by function name of the caller. > > Each time WARN() is called, which includes WARN_ON(), increment a counter > in a 256-entry hash table. The table key is the entry point of the calling > function, which is found using kallsyms. Why is this needed? As systems seem to like to reboot when WARN() is called, will this only ever show 1? :) > > We store the name of the function in the table (because it may be a > module address); reporting the metric just walks the table and prints > the values. > > The "warnings" metric is cumulative. If you are creating specific files in a specific location that people can rely on, shouldn't they show up in Documentation/ABI/ as well? But again, is this feature something that anyone really needs/wants? What can the number of warnings show you? thanks, greg k-h