Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3859818rwb; Sun, 7 Aug 2022 08:55:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5OWYEscQ4NOl50k5t5zyGXOtkhY7QnB8XHbspQrKoSsZ0bxwHdKXKM9Dpb1cSv2zeC1bfM X-Received: by 2002:a17:90a:9709:b0:1f3:7ac:73dd with SMTP id x9-20020a17090a970900b001f307ac73ddmr16727239pjo.184.1659887713571; Sun, 07 Aug 2022 08:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659887713; cv=none; d=google.com; s=arc-20160816; b=fclGdBnlbbvUI5Odfg7oMcW8h3+DGM9K+sevEtzk/ttX1SxxskZOBo+Hg2s9Q+NxZW 73W6p1aDYIrwtPFRa0DrwvFBKtI+fAKxbcaH3ZWwsPoAF//HyMSLtmSMAT1zHsnsWPZI E2szEbApwzpZB1wm4hSdIq86eibGzxymWU5htGFA2rsDRXF9oX7K4P7YUN9JrujFZX/P Vdy/epIC37JfC27W6QYE66yx5eVF/2nwqvLEWWhBwLsfGvePvmrEisWm94S2fRX5WlB+ at+1P2KthkRUbcpw5cUYe9uY7AjAtUyl2HxrxvzDAMZfQwT7hKExCFW8IIoomP4kw1SK u34A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QTm0Fa5NeO4gV5vsXv44jv3ky+1FUP2v92+IAnY2Isk=; b=eh3jBrNM2v/jtVHY/34AOjcDSXqRB1zEPUyzjYPm6//TLRnPEgCbBIS9SsTBt1/o0o Owdm4zPmQ3L8UCMHv6pSs63cOxxPH7MYZWjEBsfYlV02Ka7N/3Fee+9Rzv0FLF3V4jxE gjm8YWk5ZqV+7v4hD7eJcaTqAUnM/BqF4hizF3muru54w6Jqd492qEbnha6WkP7ln6CN nSN7smcoFh4X+61sFCdS/PEuOQKwpyWmsgp9xYdub2DyunMgDAZYSW5WKX7MrewhroeV W0efDpeCHLpXLAdokQPK6RRXoEKJFn39G3lnJ7b3exHJiCOCwmH0tFMhhhhtn89O1Ezc Jtpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZfGufmrM; 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 rj6-20020a17090b3e8600b001f2497a514bsi14687977pjb.174.2022.08.07.08.55.00; Sun, 07 Aug 2022 08:55:13 -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; dkim=fail header.i=@igalia.com header.s=20170329 header.b=ZfGufmrM; 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 S234914AbiHGPql (ORCPT + 99 others); Sun, 7 Aug 2022 11:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiHGPqj (ORCPT ); Sun, 7 Aug 2022 11:46:39 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBC095AC; Sun, 7 Aug 2022 08:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: 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=QTm0Fa5NeO4gV5vsXv44jv3ky+1FUP2v92+IAnY2Isk=; b=ZfGufmrMNpOaMMyfdbmknIovK0 9A5ObDAO9/kVZt1QjWBzJY3Q5sGqgh8UyJfw7KQdIsFchs3Si5FjA7eQcSCo71vIV8fzSTuBpos5/ NOCpj/xDga4jklJZ6Lgzz8epXtBC4P6bQfRPlPAYAdU9Cp2CuyIFnlkGYjAz3KmloqV65NScgB0Ju TjetD1WQmN1+2iD4Khd9Ije00UbMDoRdQWt3mnIgZQgPooY75UmIiVZipdhv4IfTIojgTwiRpCSKh cBpFqFREyvjGzwNZhn7R2QUuxnXXbqIjxRNXOqh19IC1a7TrE/r+H/TTqGAX6SO61pBm/FROU7Fg3 B21CCzSw==; Received: from [187.56.70.103] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1oKiU1-0011yy-S9; Sun, 07 Aug 2022 17:46:29 +0200 Message-ID: Date: Sun, 7 Aug 2022 12:46:03 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 08/13] tracing: Improve panic/die notifiers Content-Language: en-US To: kexec@lists.infradead.org, rostedt@goodmis.org, Sergei Shtylyov Cc: pmladek@suse.com, bhe@redhat.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.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, akpm@linux-foundation.org References: <20220719195325.402745-1-gpiccoli@igalia.com> <20220719195325.402745-9-gpiccoli@igalia.com> From: "Guilherme G. Piccoli" In-Reply-To: <20220719195325.402745-9-gpiccoli@igalia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 19/07/2022 16:53, Guilherme G. Piccoli wrote: > Currently the tracing dump_on_oops feature is implemented > through separate notifiers, one for die/oops and the other > for panic - given they have the same functionality, let's > unify them. > > Also improve the function comment and change the priority of > the notifier to make it execute earlier, avoiding showing useless > trace data (like the callback names for the other notifiers); > finally, we also removed an unnecessary header inclusion. > > Cc: Petr Mladek > Cc: Sergei Shtylyov > Cc: Steven Rostedt > Signed-off-by: Guilherme G. Piccoli > > --- > > V2: > - Different approach; instead of using IDs to distinguish die and > panic events, rely on address comparison like other notifiers do > and as per Petr's suggestion; > > - Removed ACK from Steven since the code changed. > > kernel/trace/trace.c | 55 ++++++++++++++++++++++---------------------- > 1 file changed, 27 insertions(+), 28 deletions(-) > [...] Hi Sergei / Steve, do you think this version is good now, after your last round of reviews? Thanks, Guilherme