Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2809187rwb; Wed, 30 Nov 2022 11:07:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xSgC5eYYh44RhepsT72ObU1ksoBJw0A89f79/b3NNuXwBniObLSIN6ooOEkz5TUXUvUnx X-Received: by 2002:aa7:c844:0:b0:461:a130:ea3c with SMTP id g4-20020aa7c844000000b00461a130ea3cmr55371511edt.272.1669835278747; Wed, 30 Nov 2022 11:07:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669835278; cv=none; d=google.com; s=arc-20160816; b=DLJKtZTIq9acdYjfaUJRIQGxrGG61zbRWdm4XVwKpLBrbRwfnMnGtAXIulE0MIs4Jq c3bZ39keDq9Hb4vHDris2SYu4EkkSWfOsfjEIIFJul5zG/J8zmNl5PDnTeAjbqm3ph6y 0wkYRYDEs0cGMjKAFKjjhKxGG1klKvjY9pEVMNN+bkhzgExDJljIy3Vjn7sEhaMA3qn5 QQPEds+B6PcP6TZQmgrXa6H8fnMih+eC1q8WG7Hh+cCKLAeMmyA4JNdYeal6bLmW2l9Q onGODaUppwcbD5IVXjuYvAlS3xjGlJz2v3nfm8Pa5kmZ5mpRVrEbovaIYawQDLnqz0Iz pfjw== 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=SuR4XrBDJ03a8zE65CtxOLuh82yJ5bsOg17DGuJZt8E=; b=ckQbnm7BDK0FrNI3phItjIvl65spFKAoM6AJD2kZ8s9MV8oknMgaJId66pZ9MZc4Eo 3q5PsTAWpFDf/WxlRTjnBNhIRTUDHaiKOq7itQfdIPOaA/LSCk5L6gbi35xP8VSih4kW l5Dz3hGECf2u/1/SUjnVoYoCHi3Hv07OBXG51hoIeifHacVzJs09B3ET6UEVsBH9qX3L dWKp04KGUynB2aZiEpTXQr1L52ruCUmXoE3lM3AObpJgXx9VEmym7eaS3yl5mqsZclRa Qbd1eiT8OVWrrR6kXXRBNIDuA5VXaKWqCumCTpFscwruN0kZ5wv89KykDcROLY/9CE9T DcMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XHDHym0f; 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 3-20020a170906328300b007827639faffsi1451697ejw.760.2022.11.30.11.07.37; Wed, 30 Nov 2022 11:07:58 -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=XHDHym0f; 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 S230425AbiK3SgV (ORCPT + 83 others); Wed, 30 Nov 2022 13:36:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbiK3SgA (ORCPT ); Wed, 30 Nov 2022 13:36:00 -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 BA84598953; Wed, 30 Nov 2022 10:35:55 -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 7AA2BB81C9C; Wed, 30 Nov 2022 18:35:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B5FEC43470; Wed, 30 Nov 2022 18:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669833353; bh=IvVRl4+fARp9XLGnHwE9fvcyF8luYUHd16dM9vMV/1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XHDHym0fw/am9a6O1+HkdUZhYjS/i9Ib8fXUEfx3TCvQVtbQnDv5q3TH4i8PNdTwU T3Ll1ycSOBJ5l1LAVtpaYW75hthJoCLP4hLQ4kyh4jmHjKqTKadniT7Qaf1yTVm93y OJnkhsy+zZwk7VUBtd9mueaQhsH+OPdSRgUx6dpeBhW5JLhg46Tj+VsUXRsb/TmbOm CrKISttzd85lp40AMkRx7BpYWArFGCSF7NyD1NZnnOrPzBu6Vq97QNh8RveZjBKRN1 L6LxCstxWJdTiYzuh9LEnu64SZLS7sggxGmn7mf9iglvHvo809ug6/csr6UukY19Gs UOdfbmKFJ44BA== 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 3/3] Documentation/osnoise: Add osnoise/options documentation Date: Wed, 30 Nov 2022 19:35:42 +0100 Message-Id: <255d17a89bcd9ca8eef6931c0052b1a520e0b580.1669832184.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 Cc: Bagas Sanjaya 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..f2008e317223 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