Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3406493rwb; Fri, 9 Dec 2022 14:11:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7srePqBhhsdX+iC/XMoFl6DK78WW02I0k37a6bahNCRA6Ki1uruiUOKzTOUkGfzS6x6Qqp X-Received: by 2002:a05:6a20:8e14:b0:a9:f48e:aea0 with SMTP id y20-20020a056a208e1400b000a9f48eaea0mr10568403pzj.9.1670623898978; Fri, 09 Dec 2022 14:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670623898; cv=none; d=google.com; s=arc-20160816; b=uR6S2BJkuCuBCZyLe7zRdUCMSGb6WYgIguc1ppaJf4CCK2M2vUGCdgsW9EDRuqAL9M C8itcJckmTTeN7qzFBJcOEJcbFyF5DRqz5P+RrYb0juwe4gNXSfgRJIglJyAlePtz8VL oEfVl5oq5sCJkSHepZSIEEZBM19CqtHPabwcBctmwYauyxTPWdf4dgKnEVEJLaWLzdww uObJb9p/y5mU59uz7xmmXsYAFfhhx5ncJqFu/WMlq1o9UJy4AWp1OO+h+e94llyPjwW6 Id3XXIVi8GGmEwqVRbcOVLq3BYtIjNHlGyz8aij7/Ql7ms49xQDhOyaPwqsapnUFpPPV udMA== 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=AHB5hjCZF/gnbkmMls4z88k+6imUT6OTtfLmgoyhM3A=; b=XLrX1O7ZL345LO5a0b1tm0jURtZPbl7trr/qy8ZwTXnXJLe/jCVkcV/ybjboISB3yY mfBoaSAu7FPkhN5ippZSnhGhfeA2ibU2w3ODBlmNC+RmTtLtUwo9kzgzitVCJ1e/OqEJ cBT2+Bg7kZxysXgbyOhWBGLZ/vYcR4OYTS9yJ+DOmUgineg9LPGyN9uT7ikjerfi5+Zd iTABq3CGeuu2aWiVOcwnMeoCxYtQQAoNL03YFDht1KW6NkYPoculk555pJlz+3ZuPL5O +AzXvsKEcxWt68kCKacICRpSh0HY6OVRwOUgHKz573WmntAVUC4ojQAQJn8sGD9EzcVS ZRHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gmQSdEO+; 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 e26-20020a63501a000000b0047895910bd0si2436753pgb.825.2022.12.09.14.11.28; Fri, 09 Dec 2022 14:11:38 -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=gmQSdEO+; 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 S230203AbiLIWHM (ORCPT + 76 others); Fri, 9 Dec 2022 17:07:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbiLIWGi (ORCPT ); Fri, 9 Dec 2022 17:06:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEA72BB0ED; Fri, 9 Dec 2022 14:06:10 -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 68A4B62370; Fri, 9 Dec 2022 22:06:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6F0FC433D2; Fri, 9 Dec 2022 22:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670623569; bh=13oCDAnt7f3rlE9DpU68cvHeHJUi8m64xEllotvf6ZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gmQSdEO+0XTok1DL97OAd+O33z9ldHg0Mc3wdZy6DDVpRFbmqa2P+Lu3LrpZRF5y2 30Fcj1wrkIWjSnBh/PEe0JUjzfmGCI0FSITsU7X+JZMP4bRrGcceUxSFHFTIrzX6oO aTZ6CEiTwHDWq+Vjl243S/0Ux84N1EizjhNKWzpKh2zERTBfwGEhj4+JVoZA7qyMt5 CD58o4vnOvf68dGlvcgMKm39NuoigakSmuJsCVKIYv5b/Z8Bl6a+GZqZz6MQ0hGYGE OFD+bt9nq4BaWHcbNav/ytZqSqJmpHnCjSpJShJYcNT3CEpBgnI4/+5u9o8rjzz0BO 7YemLWYNj1OAg== 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 3/3] Documentation/osnoise: Add osnoise/options documentation Date: Fri, 9 Dec 2022 23:05:54 +0100 Message-Id: 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 Reviewed-by: Bagas Sanjaya --- 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