Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2094740rwb; Thu, 17 Nov 2022 06:31:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UivlkgywPMM/M0ICLuCL8WbP91WLTkflAeW8QoqkuBkP4lANsWkCZSmUmE79uS0UlWx+w X-Received: by 2002:aa7:9546:0:b0:562:5026:b136 with SMTP id w6-20020aa79546000000b005625026b136mr3153890pfq.84.1668695480652; Thu, 17 Nov 2022 06:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668695480; cv=none; d=google.com; s=arc-20160816; b=Vsw10VhJGHY/7DDUvKPq4JDj88ZVLz3BWhFV7gZbCS20VWSkKMGYzK9/DODNcS5Bns 8oq4JWNbbpoCDOZxX7yx4hmeCW25I9RM6b4vUvRP1oQL28X/ud/KRMymZT9dyg9SCigh JhuCYZ4OrwgNfQcHmb3PA7+NeugRQlE16AZ9WpShQEaLYOGXEDides2xCRzM6TRdKkPb AuF2In/l/pZjxBgKfX/jYDB0sZHRL+y38VGV7tWQd9hINQLFWDuwVmrTE4QHdsa6twnv Md+CdQmWoxNd3BOFs2l63BHnO9/fEFQ2AjoyOfL3ZSlkoyzDWVYJmowAJgpmfgtf7nnc vhKw== 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=Qwm+rkczXEYVP+KZvzj9rfS/VkSrh9kt2gI7a0xTfow=; b=PoSYoi8JmJx9x7kTuZoUREBF3A0PZFX4eB8cLvo4eGKlRvY2qXa8Az1sxiBK6EG6Qd XtWyp3PlMmqEt50ybdbFiIHBQ4u2EVzmvqvkuEnGflKqFlL8Px+X0equdtT6F9+e7UcW epOF7vCuteNMiz9l+uhmjWLIrlU+0JcgNOCYT++ss/TwvKxImuW/+dub9UnmsZkrHMhN tTkSSNE5HefDtF6+KxbJogLxtIRR3tEN8to2OhnwePPdEEv0KQXrzZTtkpAxHctX+EOy Ioi6B0p7qBvCfblJs+MNRjdMtT5cR0E1g8DKavIi+ZLAev+hxjLdj2wc0S1fV1eUS6tV eSGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iDQFKQzv; 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 n6-20020a170902d2c600b0017f5bacd4d8si1162428plc.571.2022.11.17.06.31.00; Thu, 17 Nov 2022 06:31: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=iDQFKQzv; 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 S240254AbiKQNqx (ORCPT + 92 others); Thu, 17 Nov 2022 08:46:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239997AbiKQNqg (ORCPT ); Thu, 17 Nov 2022 08:46:36 -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 AD9C272993; Thu, 17 Nov 2022 05:46:34 -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 4322F61E3B; Thu, 17 Nov 2022 13:46:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D8AAC433D7; Thu, 17 Nov 2022 13:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668692793; bh=wIs6OQ9wUma9T3nTyddN8q7kE8iPbPMX9EIUDRvWD88=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iDQFKQzvg0VfXgx9T73PhPe0D2nAyg+9d0aSuv/NaygYXlIGstQhEwBW1xVAbpttz jEy5KEcFZsgdsR22cdR5fGdP35chxR4ksV4erWaKHEqT0A7KH6FmxI5PFqTFEFWlTb Uft/SjIIdXBFKv4rWy6T8W7YWF73ki+XRNov+E56uhDnaye3XezVdXI0m0pD2G4TIW gnSAt/Gzqw7zmq9cYnDodrz60JTY2yOdwarz7hQzGAYzGiz1ljOSIN8du6WEqlimd5 IRejCvZJwKdeDXtolBdQO+qV/oQJUAzAbkAUG/wZkRK974IgUYzSVb1hbOTQybhB9Q zsJKUmiL2DafA== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt Cc: Masami Hiramatsu , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] Documentation/osnoise: Add osnoise/options documentation Date: Thu, 17 Nov 2022 14:46:20 +0100 Message-Id: <777af8f3d87beedd304805f98eff6c8291d64226.1668692096.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, along with an 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/trace/osnoise-tracer.rst b/Documentation/trace/osnoise-tracer.rst index 963def9f97c6..e1eed255a4ac 100644 --- a/Documentation/trace/osnoise-tracer.rst +++ b/Documentation/trace/osnoise-tracer.rst @@ -109,6 +109,11 @@ The tracer has a set of options inside the osnoise directory, they are: - tracing_threshold: the minimum delta between two time() reads to be considered as noise, in us. When set to 0, the default value will be used, which is currently 5 us. + - osnoise/options: a set of on/off options that can be enabled by + writing the option name to the file or disabled by writing the option + name preceded with the 'NO_' prefix. For example, writing + NO_OSNOISE_WORKLOAD disables the OSNOISE_WORKLOAD option. The + special DEAFAULTS option resets all options to the default value. Additional Tracing ------------------ @@ -150,3 +155,10 @@ tracepoints is smaller than eight us reported in the sample_threshold. The reason roots in the overhead of the entry and exit code that happens before and after any interference execution. This justifies the dual approach: measuring thread and tracing. + +Running osnoise tracer without workload +--------------------------------------- + +By enabling the osnoise tracer with the NO_OSNOISE_WORKLOAD option set, +the osnoise: tracepoints serve to measure the execution time of +any type of Linux task, free from the interference of other tasks. -- 2.32.0