From patchwork Thu Nov 24 14:50:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 25603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3441772wrr; Thu, 24 Nov 2022 06:52:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6NtkFq9EdRa/SSG1ijy+WJ5xoGMuTA3BQzZr2GLhN94f1wj9jBcMjSPq4z+GtYpsGv3sV5 X-Received: by 2002:a17:906:245a:b0:78d:857d:b4a8 with SMTP id a26-20020a170906245a00b0078d857db4a8mr6280587ejb.495.1669301575368; Thu, 24 Nov 2022 06:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669301575; cv=none; d=google.com; s=arc-20160816; b=rjL/lUVIjpO29Fa0gAs4bHqCXffn8zL54CY8N0qAZ4VnGrocC4i0VF31iGgDYm126S w1XeDAWcy2EjNZWrLfIeGcJWcw9/BCN1bLQrnAoXw4x7dR/K5HXA0VKTQtuoVmomKo2r z5PiM56vaIuTWtpF/0cl7KKhl9FJBuWKcpmwJhG1WLSrj4yeJZviHDmvEKoU0nSlvPsu 4v+9EorBadmqodOQoVNzwzp5UVxlPXhyxHvPJ14draDSb/wRtl4GX84C0lChLQBf7KDA J488F+xQhES2Wjz/JdHphdJ4KYieMs3PjxSb4X+6b/455HuNR8AirnTFKWyxSYWB4IpS 685g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id; bh=v/9sQxb3u4F9IMFKeIaegN86+o0NmZ3LU7iFHvfqMUE=; b=E63g9QoexmFIZMqMI4ixfx2i7K91Vh40Ua4e5B8T5HnkXfhaaRJ2f6H+eNUs+0LQpx /+l2s8JQtqN/Rg3ThbPAvM6pYRsDsD9kkZ6eIkIPYlWWiWgkoWNzR1qa7qdT3Ppa2/8b MdsYIOSYeJDrYDY3g6QAy4CCZpTFk5WiZlQwFdFsT+tJiEO4bcOFUlYkHIwfSM6AmsQi qML+s0gzCKKW60CY9pjiZBLMz5JlOEpbWWfpNzucH6zYghONMq3ecoz7liSXOWPqviRT deMpdvcdL+KkMVupwpKhBY1C2b35wALWXa0K06gKq/jjPAbMe8LbBVsyh379FPnwGzy/ /txg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di13-20020a170906730d00b00782e437a368si372270ejc.160.2022.11.24.06.52.30; Thu, 24 Nov 2022 06:52:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbiKXOv2 (ORCPT + 99 others); Thu, 24 Nov 2022 09:51:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiKXOvA (ORCPT ); Thu, 24 Nov 2022 09:51:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 065BA134128 for ; Thu, 24 Nov 2022 06:50:50 -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 B7905B82847 for ; Thu, 24 Nov 2022 14:50:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 706E4C4347C; Thu, 24 Nov 2022 14:50:47 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from ) id 1oyDYs-001X5U-1n; Thu, 24 Nov 2022 09:50:46 -0500 Message-ID: <20221124145046.434583980@goodmis.org> User-Agent: quilt/0.66 Date: Thu, 24 Nov 2022 09:50:26 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Andrew Morton , Daniel Bristot de Oliveira , Jonathan Corbet Subject: [for-next][PATCH 07/11] Documentation/osnoise: Add osnoise/options documentation References: <20221124145019.782980678@goodmis.org> MIME-Version: 1.0 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750389568865412683?= X-GMAIL-MSGID: =?utf-8?q?1750389568865412683?= From: Daniel Bristot de Oliveira Add the documentation about the osnoise/options file, along with an explanation about the OSNOISE_WORKLOAD option. Link: https://lkml.kernel.org/r/777af8f3d87beedd304805f98eff6c8291d64226.1668692096.git.bristot@kernel.org Cc: Daniel Bristot de Oliveira Cc: Masami Hiramatsu Cc: Jonathan Corbet Signed-off-by: Daniel Bristot de Oliveira Signed-off-by: Steven Rostedt (Google) --- 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..3c675ed82b27 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.