From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9E9EC4332F for ; Fri, 9 Dec 2022 22:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbiLIWG7 (ORCPT ); Fri, 9 Dec 2022 17:06:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229897AbiLIWG3 (ORCPT ); Fri, 9 Dec 2022 17:06:29 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5804A5DE3; Fri, 9 Dec 2022 14:06:04 -0800 (PST) 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 6905BB82939; Fri, 9 Dec 2022 22:06:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19DBCC433EF; Fri, 9 Dec 2022 22:05:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670623562; bh=xhGA8QOjljLpEDGY+74NnEPLPXQ6/MDsLE1V+TwRSe8=; h=From:To:Cc:Subject:Date:From; b=NGeEu4h2Y1MVWU4BWOQxmqfv2h7Q8r8v8gTd9KD2Q36leUgDTC07dNWqj4ttEXKw5 DQQb7Dlbme3iIr7rdkAsOV+g2k50nQgrefzyb3UaUN2yZVj+STDNCgNEzbmjX16+82 +Z854OJlLNnp8XPhKizSEOIKzZ0fxir4hKSJF4A99mbrSya+JMOlI8nhPhT+WsCT51 nKDXbIkEurHeB09Zn2Dda454f8JAcmieoNtDpZo7kaYI9dLlX3c5BCyC06zYFM+Ttj OkP4GKIB9wkfU58gh+a6KrbBWZYmXnUAtvEuo+oVmFFS/lUxmEXRgdb05Bo6brcNAU kjm8W7GtkP/6w== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , Juri Lelli , Clark Williams , Bagas Sanjaya , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V5 0/3] Add osnoise/options options Date: Fri, 9 Dec 2022 23:05:51 +0100 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org After adding the osnoise/options file, a set of on/off options came to my mind, most based on discussions while debugging problems with Juri and Clark. The PANIC_ON_STOP option facilitates the vmcore generation to aid in the latency analysis using a crash dump. The OSNOISE_PREEMPT_DISABLE and OSNOISE_IRQ_DISABLE options refine the type of noise that the osnoise tracer detects, allowing the tool to measure only IRQ-related noise, or NMI/HW-related noise, respectively. Each patch has a description of the options and the last patch documents them in the osnoise documentation file. [1] https://lore.kernel.org/r/cover.1668692096.git.bristot@kernel.org/ Changes from V4: - rename preempt_disable/irq_disable variables to disable_preemption/disable_irq (Steven Rostedt) Changes from V3: - Fix documentation (Bagas Sanjaya) - Optmize the preempt disable option (Steven Rostedt) Changes from v2: - rebased on top of linux-trace.git/ftrace/core - removed the patches already added to the ftrace/core Changes from v1: - Changed the cover letter topic - Add Acked-by Masami to the first patch - Add the PANIC_ON_STOP option - Add the OSNOISE_PREEMPT_DISABLE and OSNOISE_IRQ_DISABLE options - Improved the documentation Daniel Bristot de Oliveira (3): tracing/osnoise: Add PANIC_ON_STOP option tracing/osnoise: Add preempt and/or irq disabled options Documentation/osnoise: Add osnoise/options documentation Documentation/trace/osnoise-tracer.rst | 20 +++++++++- kernel/trace/trace_osnoise.c | 52 +++++++++++++++++++++++--- 2 files changed, 65 insertions(+), 7 deletions(-) -- 2.32.0