Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp311536pxj; Thu, 17 Jun 2021 03:20:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGuWoVf1rQyjP/DbE1j9Z2K+oXNNZBv+q0IF8GYg+JQ9WcN3r+J+9/X4NU0Nk4YwMufnuW X-Received: by 2002:a05:6402:896:: with SMTP id e22mr5351616edy.201.1623925225451; Thu, 17 Jun 2021 03:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623925225; cv=none; d=google.com; s=arc-20160816; b=dSI/PXbtvkSqnaBuv6rn8PzKDZfVeXZDLdzV0Jl3R+htd6ad9F94YIN4fsj4DVsI9P 1JEhN/+X6i+KJXxvufzHmJlWhMYGcpLvPud6BZhO+Oa2OYMvznFbeesCKS2l3r9rBLRX wogpXhOO8xTJYm/uskX4TJ+YXFPA0uDqvsQO9CpUw7pLT1sKVzr23z1TebbFyw4bmLP7 svRqtjDYfCItkYcjNyq99ym3YE3Qz48wH+ZUTIAeVCcKO5J5aA52sUadn24W4uWsykNZ +PcdgbaZDvPxNegWQBJSBRjCmvuAn8KMliUUwOGvRnH+F+XCIYUjQ4vrClgm577TA1po K4ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ojBtLjKaTiNoUvukSQBDvFG3kZgKSaHUvdZcj5mHzg8=; b=P6qKzvoJyejSjVrWWcRkkSolJ4CvSeyItpVllvZRKhf/cZh/pWknJ74y+jM7mpCRjQ S67Fp9slC86J+nZNxRedX6No+/gEnEpWQt5ZxYx8NAzP68JmckvgmVLgUq8v+ybrLUeH CimvEu8URFDOIYctP5igoSnr1ZoPeqR6SNNFxnKH+5d86qqVfQGfTnud7WZNv8trFWD/ h388DLq4XnlAh5V2myAypSp1krBnBm5NIOmDKAfNZjGIB+qaWFBpE3dvnqsRMoFaHneZ H5PFSC8Zk370Aga/ZapC9CL57Rqfc8A6NDa+WgjzFmf9meyq1rrkv7Sdgc+Nb6n/ULi1 3smQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uzBXPGkp; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si5124154edi.123.2021.06.17.03.20.03; Thu, 17 Jun 2021 03:20:25 -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=@suse.com header.s=susede1 header.b=uzBXPGkp; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231735AbhFQKEn (ORCPT + 99 others); Thu, 17 Jun 2021 06:04:43 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:35576 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbhFQKEk (ORCPT ); Thu, 17 Jun 2021 06:04:40 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 22B0E21AF5; Thu, 17 Jun 2021 10:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1623924152; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ojBtLjKaTiNoUvukSQBDvFG3kZgKSaHUvdZcj5mHzg8=; b=uzBXPGkpANMx7FCZGcH7yhpcFgcg19TErgQRmmrML3CURvcDsTbAOR3bxVeQ1k1qL3Gppo jVfGwJ3RKBxyi6EgIEIGYXp5VmqAjudMPZY2P5fto7CP78X1lMiz4UyXudURkPqpV+Gqt2 rh7RnykaYPDPGSysIyEHMdjCiapjD58= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id DD0EEA3BB7; Thu, 17 Jun 2021 10:02:31 +0000 (UTC) Date: Thu, 17 Jun 2021 12:02:31 +0200 From: Petr Mladek To: Chris Down Cc: linux-kernel@vger.kernel.org, Jessica Yu , Sergey Senozhatsky , John Ogness , Steven Rostedt , Greg Kroah-Hartman , Johannes Weiner , Kees Cook , Andy Shevchenko , Rasmus Villemoes , kernel-team@fb.com Subject: Re: [PATCH v7 5/5] printk: index: Add indexing support to dev_printk Message-ID: References: <959c7aed1017cb2c9de922e0a820d397e29c6a5a.1623775748.git.chris@chrisdown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <959c7aed1017cb2c9de922e0a820d397e29c6a5a.1623775748.git.chris@chrisdown.name> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2021-06-15 17:52:56, Chris Down wrote: > While for most kinds of issues we have counters, tracepoints, or metrics > with a stable interface which can reliably be used to indicate issues, > in order to react to production issues quickly we sometimes need to work > with the interface which most kernel developers naturally use when > developing: printk, and printk-esques like dev_printk. > > dev_printk is by far the most likely custom subsystem printk to benefit > from the printk indexing infrastructure, since niche device issues > brought about by production changes, firmware upgrades, and the like are > one of the most common things that we need printk infrastructure's > assistance to monitor. > > Often these errors were never expected to practically manifest in > reality, and exhibit in code without extensive (or any) metrics present. > As such, there are typically very few options for issue detection > available to those with large fleets at the time the incident happens, > and we thus benefit strongly from monitoring netconsole in these > instances. > > As such, add the infrastructure for dev_printk to be indexed in the > printk index. Even on a minimal kernel config, the coverage of the base > kernel's printk index is significantly improved: > > Before: > > [root@ktst ~]# wc -l /sys/kernel/debug/printk/index/vmlinux > 4497 /sys/kernel/debug/printk/index/vmlinux > > After: > > [root@ktst ~]# wc -l /sys/kernel/debug/printk/index/vmlinux > 5573 /sys/kernel/debug/printk/index/vmlinux > > In terms of implementation, in order to trivially disambiguate them, > dev_printk is now a macro which wraps _dev_printk. > > Signed-off-by: Chris Down Reviewed-by: Petr Mladek Tested-by: Petr Mladek Best Regards, Petr