Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6201997iob; Tue, 10 May 2022 12:42:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1cUYd4FUCmgFDKeA9PZKyrI4+GPbi50LLLG4T/MBM+K/CtmY2KKW0veQ1yc2PKKdaIOkS X-Received: by 2002:a05:6808:f8b:b0:326:a1ed:942e with SMTP id o11-20020a0568080f8b00b00326a1ed942emr877683oiw.240.1652211777751; Tue, 10 May 2022 12:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211777; cv=none; d=google.com; s=arc-20160816; b=FO7khelFwQHkRdXLmxiFDH0gs0487ZBG57rLqA7fq+4lVdQ0HmEI41kb56gPOXCG+q ai8B13dt3un+vF1nZwu1MJ+9VqVP9Z68sMfMe2SIQtHVO5qgzlTwzRE8m9fNg3gsfLps EvQWOijz/8gc7eHTdOfGbnIPOw2tZ3W2s2m16BQoZlMjx8gBZcIxCgnEnI33gEdOtuOE psJy0tu42QL8Aph5P2GJ3cRAa0sztualCWkWk7Pmni0IMIybt1Y4mHnyc2MvAGo4jLME ISulAklif7IjOHsYxLgQxkoXP+gc8jQ5v4J9SfuCrJG/8ONqXGEx6zZhGdbS4KB2mtwa pOaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=KnopiRBYfR64tfPrgwCm1u1zqWsGx8OYRUaLuFziIs0=; b=IzUuLh8VrLhqbz2HAxTvZzcvp2VtTAZ2i0QTatsQxTdzFjzhS5D+kMspRwKduOng9l BBTRvl7FBbFRZeHgphFkLEWRdQw77Q8TCApeLQKhDfGDKe14IvGhFhqgIgWsJ+aSP7vt d2wq7c3Ly0P2Bpuc8K27kWBkx91RF0z3eOF9Okkc9My+wxCDpIQdhYusSD/uwubSA6MJ sUvS4mLIVEhWee8Eu7Z/RLxoBphtWM2ZXd6FYruIidjODSC5a6E6Bf6831+MFS4irOc0 lskJ9GhCCF5KWGYOhWzJqfZNBWJf4GtV/YNIkfpgbKksLTI+GuSVBI6anLyxFhGLEIeV ZwMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a056871054500b000e1c077515esi13421726oal.29.2022.05.10.12.42.43; Tue, 10 May 2022 12:42:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348346AbiEJRoY (ORCPT + 99 others); Tue, 10 May 2022 13:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245678AbiEJRoW (ORCPT ); Tue, 10 May 2022 13:44:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D7FB2A28DF; Tue, 10 May 2022 10:40:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 44D13B81DF5; Tue, 10 May 2022 17:40:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 749E5C385C2; Tue, 10 May 2022 17:40:16 +0000 (UTC) Date: Tue, 10 May 2022 13:40:14 -0400 From: Steven Rostedt To: "Guilherme G. Piccoli" Cc: akpm@linux-foundation.org, bhe@redhat.com, pmladek@suse.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, coresight@lists.linaro.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org, linux-tegra@vger.kernel.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, netdev@vger.kernel.org, openipmi-developer@lists.sourceforge.net, rcu@vger.kernel.org, sparclinux@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net, halves@canonical.com, fabiomirmar@gmail.com, alejandro.j.jimenez@oracle.com, andriy.shevchenko@linux.intel.com, arnd@arndb.de, bp@alien8.de, corbet@lwn.net, d.hatayama@jp.fujitsu.com, dave.hansen@linux.intel.com, dyoung@redhat.com, feng.tang@intel.com, gregkh@linuxfoundation.org, mikelley@microsoft.com, hidehiro.kawai.ez@hitachi.com, jgross@suse.com, john.ogness@linutronix.de, keescook@chromium.org, luto@kernel.org, mhiramat@kernel.org, mingo@redhat.com, paulmck@kernel.org, peterz@infradead.org, senozhatsky@chromium.org, stern@rowland.harvard.edu, tglx@linutronix.de, vgoyal@redhat.com, vkuznets@redhat.com, will@kernel.org Subject: Re: [PATCH 23/30] printk: kmsg_dump: Introduce helper to inform number of dumpers Message-ID: <20220510134014.3923ccba@gandalf.local.home> In-Reply-To: <20220427224924.592546-24-gpiccoli@igalia.com> References: <20220427224924.592546-1-gpiccoli@igalia.com> <20220427224924.592546-24-gpiccoli@igalia.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Apr 2022 19:49:17 -0300 "Guilherme G. Piccoli" wrote: > Currently we don't have a way to check if there are dumpers set, > except counting the list members maybe. This patch introduces a very > simple helper to provide this information, by just keeping track of > registered/unregistered kmsg dumpers. It's going to be used on the > panic path in the subsequent patch. FYI, it is considered "bad form" to reference in the change log "this patch". We know this is a patch. The change log should just talk about what is being done. So can you reword your change logs (you do this is almost every patch). Here's what I would reword the above to be: Currently we don't have a way to check if there are dumpers set, except perhaps by counting the list members. Introduce a very simple helper to provide this information, by just keeping track of registered/unregistered kmsg dumpers. This will simplify the refactoring of the panic path. -- Steve