Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2806762rwb; Wed, 30 Nov 2022 11:06:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5bQL8HCnVamPH9so20WKLAvpTINVhO+0+Gb4k3jtBrFI4qdF1t976XpFaZUaItnbp8spja X-Received: by 2002:a17:906:c042:b0:781:541:8f1d with SMTP id bm2-20020a170906c04200b0078105418f1dmr54070444ejb.117.1669835180230; Wed, 30 Nov 2022 11:06:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835180; cv=none; d=google.com; s=arc-20160816; b=FGV0caXMIc23OFITzJqPt3zbzodDjJcEZt2bCY6zBZui8Qhal3s747iWR9srGlz+zf aMmCkNvpFw68AAyBGX//eakY2IF6IZk92OiiCYf3FIv7xOW6W5L22RHXcB5QqFpt9UNk QqKFYwFJicwa1qeQ1i4nB629NVLex9DPuh0WYeM7kgvpuypFxDIRGzUjS+oGkfo/Esrv BujgRMSsKr1XCm+dOPBbZeyLuBfDelLq8y9e26RV8QbsX6NN0H7Xk901nxQZCQ1CtTH6 cthRbthievgnC/hU7BSkuMwb8ukq4DsjTDxOt25LFP+HeFzVppYOJcBS+7pXkIvYmQoT g4Yw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9s5G8s2Uc5o1JrztZ9NngqUEEmcnbzTXLkL/jWC+hPM=; b=wMZ34gwn5aTZ+9P/raGu7yNHZgLEzCTnSf7FlZw2wJNat0PbvB9EvCIaaOhrV3HIVu X2S8rM+iZlBK4lnVxGwPSfZ2tOjD+A34Q1NMpwEFZL2kPN1JUWqatkHrk+bXjpTiuoFO 4M9QHO/GPgnh7YufiA+a58wmr/LXVOWsXG/ostT010ZyYDTE3HVgVw5CHwEaSt1dSdbx 8YBVJB91tCPvLsnm1HcCcEIH4XFtbKOAnN+GIyHro/G8F1k/UuAzd+KHeYVLYtp9dueY AJFKfZMO4gDPdmkKF1vpfZUBhGa8hlop2/xvcrUPa06WpAkprZVsTLxp6z0TWb+KWx5u Q0FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OidmiENu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd9-20020a1709076e0900b00781e6ba94ffsi2006278ejc.126.2022.11.30.11.06.00; Wed, 30 Nov 2022 11:06:20 -0800 (PST) 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=pass header.i=@kernel.org header.s=k20201202 header.b=OidmiENu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230350AbiK3SVM (ORCPT + 83 others); Wed, 30 Nov 2022 13:21:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230306AbiK3SUt (ORCPT ); Wed, 30 Nov 2022 13:20:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701B51AF21; Wed, 30 Nov 2022 10:19:18 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E07D761D41; Wed, 30 Nov 2022 18:19:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FF0DC433C1; Wed, 30 Nov 2022 18:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669832357; bh=bK39FsjBF/+0kLaurZ9wMrHdi5SfqFphkImLrVtOP4g=; h=From:To:Cc:Subject:Date:From; b=OidmiENukGHG7vHWGYtvFXe2r/wPC9Zv30zcRkHTjouKPzQG5Q8x473R7wWNhRLiM AFTzPSYCqspzwp1eZuNIGKDJGaTo5X+b2TV1Wv7gpEho5O37OlG20QMQE8FpxKzf1w 0YfBbSbNmqHeJAqgV6UaF0nkWnNf8vJ51QPjO6+l1hGgvQZPIhGFCbFooxk/vk0uoU qpznDdSQ7N3JEvevhR+oO/7IN9n5o4SUGnN3UZQAB2zYfmZQPtNAncCdPIu10GSOXm dbWtWeYjGr47IfW0ccoA6uy8k5XySa3AsdPfY2BLD9K6K6GnL9VnSvwSgvSZHiYmwy MLNduUzDp7nIg== 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 V4 0/3] Add osnoise/options options Date: Wed, 30 Nov 2022 19:19:08 +0100 Message-Id: X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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 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