Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11312522rwb; Fri, 25 Nov 2022 14:01:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf74ntNWklPjV7EvX4LTrgqMj7/hzYM4rk4b7lqBpEYyGQks2naNAk1Xt5/VN131NADown+S X-Received: by 2002:a17:906:7ce:b0:7b9:a74b:efbb with SMTP id m14-20020a17090607ce00b007b9a74befbbmr13947076ejc.18.1669413688888; Fri, 25 Nov 2022 14:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669413688; cv=none; d=google.com; s=arc-20160816; b=AhM2xcUaFtqRXF5/6drPLk2hz2OWbT3kNC5Yd5YZPea/iuZwutez1bebG0sWY+kz0x FFBVu3/DEWNBzY+TVasDV9xL03WILY8Y8cETHwogrkFtNhoEm/ugnhjKw/50YGS9nP62 FHYqtPfxgvdseC231YLJhNcbtVmQOxVIDJaMJ6jA5kKedHW4AhQZWyV3wFNnKoOD4Dww qckqCYgYjmiZuaIWrviHakGgxZw8oChTb2otF/ZUjhxYaOkb5SEIe1MlAMe2fTb5UjWY v1emJO2bHmzLFBgsg44Ky3Ljz5MqVZMTBI1QZSTUaz1W8R0o14Fxd+9X0HJW8E0BoO2F q47Q== 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:date:subject:cc:to:from :dkim-signature; bh=S78HgkaKWlMEffnAHrQafzh01wx3N3SWJLizieGNDkw=; b=kk/BEWeUCNywJLJuNI8KODcpdR/Tpk+E/Br3+6iSxR55ZPnpdrjXjuYY2T75YO1408 mqRyuJzMbVCvtw2aW76I4mA9ppusBAfD3p72qUsFYDBlwesVUt2lt/4RoRJCGaxlghz2 g85FyqrX1iZRy6MuGggeZiTPSa5PszRLWKCvqq/VH6oNE0HVpoBbsVEA/dzHaxptbHSU 1WUdqphDS4NoG68vs5wJ7RP2ZuUT2JojDDDtlFQ0Xr8b/K+B4qt02jyEhhzfU+10uQzF alEOHeU7CaqiDyy+TjZmE63qd83IJt5ayG5pnQmeQGhUBnfrRnPWKLjp9N+DMhu/MDr5 rxAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ruupuHhK; 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 hs22-20020a1709073e9600b0078239e3f846si4901451ejc.1.2022.11.25.14.01.07; Fri, 25 Nov 2022 14:01:28 -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=ruupuHhK; 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 S230089AbiKYVUr (ORCPT + 85 others); Fri, 25 Nov 2022 16:20:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbiKYVUn (ORCPT ); Fri, 25 Nov 2022 16:20:43 -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 0DC0C442C5; Fri, 25 Nov 2022 13:20:42 -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 B6A0BB82AEF; Fri, 25 Nov 2022 21:20:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86710C433D6; Fri, 25 Nov 2022 21:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669411239; bh=fM3Z9ts7iQFlYVNcl8/0c3e3g8FbZxuJ3byH62UaVoI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ruupuHhKnNKrd+Mso6lNPvh33EUuONTam/VAUFnQkL+O8tbAyzVsOp/1sDpk9OSEP DI6IiCSrg5aRM9cuT5Jfo4qgrKtadbGxOuGJHF35yIxpgIblKn+UbI7EV5eahKVKjo 6b9C5+nj8zH/3gp0l6WOOLzM+KFT8kv6qdPQxeghL3WGAoUY+W11p+OnK0yacnHMBM 0fwijyXUHh5Lu43mVsZ6eUxuv99hS79K1/Jwn8WZD0LSmJJW69fQl0Bro2saEA+Xnj BPIqiOMa55/h+4dTDF93fsVGbwfEHompw+JvRgxrN9kOBGgTNCCgd3wz7iWDXfL0VS jfywj/dhuQIWQ== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , Juri Lelli , Clark Williams , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 3/3] Documentation/osnoise: Add osnoise/options documentation Date: Fri, 25 Nov 2022 22:20:24 +0100 Message-Id: <0a8ecf364af29b0c1d5007f4d71265127c114a1f.1669409262.git.bristot@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: 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 Add the documentation about the osnoise/options file, the options, and some additional explanation about the OSNOISE_WORKLOAD option. Cc: Daniel Bristot de Oliveira Cc: Steven Rostedt Cc: Masami Hiramatsu Cc: Jonathan Corbet Signed-off-by: Daniel Bristot de Oliveira --- Documentation/trace/osnoise-tracer.rst | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Documentation/trace/osnoise-tracer.rst b/Documentation/trace/osnoise-tracer.rst index 3c675ed82b27..0641781b00f5 100644 --- a/Documentation/trace/osnoise-tracer.rst +++ b/Documentation/trace/osnoise-tracer.rst @@ -92,8 +92,8 @@ Note that the example above shows a high number of HW noise samples. The reason being is that this sample was taken on a virtual machine, and the host interference is detected as a hardware interference. -Tracer options ---------------------- +Tracer Configuration +-------------------- The tracer has a set of options inside the osnoise directory, they are: @@ -115,6 +115,22 @@ The tracer has a set of options inside the osnoise directory, they are: NO_OSNOISE_WORKLOAD disables the OSNOISE_WORKLOAD option. The special DEAFAULTS option resets all options to the default value. +Tracer Options +-------------- + +The osnoise/options file exposes a set of on/off configuration options for +the osnoise tracer. These options are: + + - DEFAULTS: reset the options to the default value. + - OSNOISE_WORKLOAD: do not dispatch osnoise workload (see dedicated + section below). + - PANIC_ON_STOP: call panic() if the tracer stops. This option serves to + capture a vmcore. + - OSNOISE_PREEMPT_DISABLE: disable preemption while running the osnoise + workload, allowing only IRQ and hardware-related noise. + - OSNOISE_IRQ_DISABLE: disable IRQs while running the osnoise workload, + allowing only NMIs and hardware-related noise, like hwlat tracer. + Additional Tracing ------------------ -- 2.32.0