Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4258182iog; Tue, 28 Jun 2022 12:17:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vWYk40+Wl8YSO+9lViy3UJDHmPk8BX6hFf/V9VTW9Dg0ohe3ptT3RlyX4fDlltHeBTtRCM X-Received: by 2002:a17:902:b592:b0:168:b8ee:8166 with SMTP id a18-20020a170902b59200b00168b8ee8166mr5196096pls.156.1656443860558; Tue, 28 Jun 2022 12:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656443860; cv=none; d=google.com; s=arc-20160816; b=z/c7kRX3fLnooRmFKTrgDnCmvH5K5GdWVmxl/5s+beznmNFI7jnh5NwIDuuJYXM3yD htDupyRRpi+4DY80yxMdbnsDAoxcXuLroCmo4HX1wDdYM+Rpy4n90FLxhamjOM12i6EP jQEmB7u8T3gXZR8E1M2E4ozUpy8BnEHwylK6uqdQs6wgvZn9wrOMVOR9DXbrTTsXs19D fctfIPiApxD8GhqeBpDkSRaNi3c00rbdo/YM3hR36AxRVbdeqO7TiM8VzN2RAclAAZC/ ekqVXU0mSsheYFh0OpQ7tkJ/vvGcKNYwSXbbzCIFwHQOMJTLe1VGEXvuMcZNQAtAEyhB F+5Q== 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=1xoC/oipbaKtlMhIQHTn+jZK8JsYoeiX0Q52fWb7z2w=; b=F3xRIAkSnDxjaYKVB6iNPuBaoTVvBduK9Q4YWXpN4wV9f5Yfg1Qczb/w0NR66e2+NF 9Zsej/jwBBf0bR3JkN8xsmK2X+szBidEBehut6d0ilELx9+kIof7ujY8Odw609RELUjm sKw8lolG9C8K9krQFfDEN1eVWLhUkU79E+93Hx4E2MaOytTNXRX6UYfUOQ2eKxwh42VZ Pv7XtFUOerfkXB412HnNtmkk3sVbpW0TKLHnujSXJg+b3Anh/B3IgcgLBAGYuYOzEBV9 X8SX37/BVTvUgZyyozMFc3gTSmhFoXp37XKd9Jp54Yb9WqhRKBL50NdyfUD1ShaJpAdi 3UOg== 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 l2-20020a656802000000b003fdf16f1011si18030991pgt.358.2022.06.28.12.17.28; Tue, 28 Jun 2022 12:17:40 -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 S234909AbiF1THB (ORCPT + 99 others); Tue, 28 Jun 2022 15:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234515AbiF1TGk (ORCPT ); Tue, 28 Jun 2022 15:06:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1DB919036; Tue, 28 Jun 2022 12:06:39 -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 BA578B81E05; Tue, 28 Jun 2022 19:06:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FDE4C3411D; Tue, 28 Jun 2022 19:06:35 +0000 (UTC) Date: Tue, 28 Jun 2022 15:06:34 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: Wim Van Sebroeck , Guenter Roeck , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Will Deacon , Catalin Marinas , Marco Elver , Dmitry Vyukov , "Paul E. McKenney" , Shuah Khan , Gabriele Paoloni , Juri Lelli , Clark Williams , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org Subject: Re: [PATCH V4 13/20] rv/reactor: Add the panic reactor Message-ID: <20220628150634.30c511aa@gandalf.local.home> In-Reply-To: <67e522ab57e64eee313af508a8c70f3cce33e525.1655368610.git.bristot@kernel.org> References: <67e522ab57e64eee313af508a8c70f3cce33e525.1655368610.git.bristot@kernel.org> 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 Thu, 16 Jun 2022 10:44:55 +0200 Daniel Bristot de Oliveira wrote: > Sample reactor that panics the system when an exception is found. This > is useful both to capture a vmcore, or to fail-safe a critical system. > > Cc: Wim Van Sebroeck > Cc: Guenter Roeck > Cc: Jonathan Corbet > Cc: Steven Rostedt > Cc: Ingo Molnar > Cc: Thomas Gleixner > Cc: Peter Zijlstra > Cc: Will Deacon > Cc: Catalin Marinas > Cc: Marco Elver > Cc: Dmitry Vyukov > Cc: "Paul E. McKenney" > Cc: Shuah Khan > Cc: Gabriele Paoloni > Cc: Juri Lelli > Cc: Clark Williams > Cc: linux-doc@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: linux-trace-devel@vger.kernel.org > Signed-off-by: Daniel Bristot de Oliveira > --- > kernel/trace/rv/Kconfig | 8 ++++++ > kernel/trace/rv/Makefile | 1 + > kernel/trace/rv/reactor_panic.c | 44 +++++++++++++++++++++++++++++++++ > 3 files changed, 53 insertions(+) > create mode 100644 kernel/trace/rv/reactor_panic.c > > diff --git a/kernel/trace/rv/Kconfig b/kernel/trace/rv/Kconfig > index be8e3dab0a52..91a17b13a080 100644 > --- a/kernel/trace/rv/Kconfig > +++ b/kernel/trace/rv/Kconfig > @@ -60,4 +60,12 @@ config RV_REACT_PRINTK > Enables the printk reactor. The printk reactor emmits a printk() > message if an exception is found. > > +config RV_REACT_PANIC > + bool "Panic reactor" > + depends on RV_REACTORS > + default y if RV_REACTORS Just put default y if it already depends on RV_REACTORS. -- Steve > + help > + Enables the panic reactor. The panic reactor emmits a printk() > + message if an exception is found and panic()s the system. > + > endif # RV > diff --git a/kernel/trace/rv/Makefile b/kernel/trace/rv/Makefile