From patchwork Tue Jun 6 16:12:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Bristot de Oliveira X-Patchwork-Id: 103986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3520025vqr; Tue, 6 Jun 2023 09:27:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6N64H/yWnvBvGm/gEK22Bda5JwhfsSgRusX9dHmjvSUCFC6bl2sKfMHLe9OVYchoDEdMCI X-Received: by 2002:a05:620a:8e03:b0:75b:23a1:3611 with SMTP id re3-20020a05620a8e0300b0075b23a13611mr169243qkn.34.1686068872771; Tue, 06 Jun 2023 09:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686068872; cv=none; d=google.com; s=arc-20160816; b=rEnHsALca8c9fQPovu+i1GinXbWpvKleI9/p74DIkyyzvijELqvZcl/JXtVy1JF7pe k+/EPGCnGPT2iLndqjQgBxG2O9fR6Ve3g9Z8AzJQu30CE0sSHvqf3u5LJBWwPqhMTJ4P u6BELNzVpuwEYgssrbw9/cyHzdn5rQXCXGSg2eCiJOZ2Pb4lqUhJtuztaSDqMWy+ElwP y9g5GaSjFHzXqDV9U8Q+R8cGnNwLAKqojRL1bdre0yn9aBJtb8XpTlpdQENM400n+S4l CbooDZnbpWu1n1zVrVMpLmqFQljUsrfOffJJnGlOfstYcVUUR9KmRfu84h9Dn1kuey98 XiBQ== 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=dU8UPY60mKVr4+WHYUbSDTnDqKEx7UiRDwm7/lhegK0=; b=RF1lOHDF3s4MF/fnIQ9lGqW7Aq3y1NGf9z2SfmnRokZQQsiQbwwrVypkVnScJ7FXJY qt6rQmRLr9w1Z5pAQKwaR4YjxhJq1qsTP0zuPLBPUv7NlKruHUdTmyCddH1X5LbVsLQm ynjVWdavBouAuW5QBGJ+vnICW4imyrJHz6vu4OgsplbT7JOmAAVNqb8Nvqha4bvRAg+n 1JjJdr8UZwfEv3FpbXjP6+1lKLS3ZCXKB07gQFefHNneKoet5bXoxbNnvs0xqvcoI62h o1ARgUpkKwrOmGgioo5MgIf/C54v3QXP9yDK91bL5v0fQsqlTlbQyHfdoX8RCdnJV5RS jPQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ISrLLMAQ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020ae9e70f000000b0075cf2261b1bsi5881040qka.399.2023.06.06.09.27.38; Tue, 06 Jun 2023 09:27:52 -0700 (PDT) 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=ISrLLMAQ; 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 S238648AbjFFQN5 (ORCPT + 99 others); Tue, 6 Jun 2023 12:13:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237776AbjFFQN1 (ORCPT ); Tue, 6 Jun 2023 12:13:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E9719BD; Tue, 6 Jun 2023 09:13:05 -0700 (PDT) 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 2DF4462DE6; Tue, 6 Jun 2023 16:13:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CEEBC4339E; Tue, 6 Jun 2023 16:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686067983; bh=SNMZc0L/b6GLmVD1yPrxAZQaDWAwMEPVbWJyNUZPapU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ISrLLMAQMED7jumB7rUxj4NLoUAL1EUyBok+B70FXLeTV8RbWw2YEyhDwpUUt2W+8 BSxK7qj0Xsy1sBuOEiYEIDscWsMI8kOhRR5UpQ1uYg9B2NN7A3Omlc1BfNFBZY0dvi 4brp+zhcc4iOG+YQwY906r240v+Ox0bb7YrQqkZA2AgpiYnVG/xEO7OM3wnAUf3T1a tC7uJTlisTSrjMOg93qS/eQVXTnpCtKJ4KNPzc+VxwQ0RwYF7suOc5KDTQFRGDOVrk M4xRJ0dhiRl0bQyu6vIGQpuwUPKNMeKGpLwXJPqYVcPlyuNBp7fyJKxA9iF59EasAc mSJfqaSQpNEEQ== From: Daniel Bristot de Oliveira To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Steven Rostedt Cc: linux-doc@vger.kernel.org, Juri Lelli , William White , Daniel Bristot de Oliveira , Masami Hiramatsu , Jonathan Corbet Subject: [PATCH V3 11/11] Documentation: Add tools/rtla timerlat -u option documentation Date: Tue, 6 Jun 2023 18:12:25 +0200 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE 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?1767971354271866471?= X-GMAIL-MSGID: =?utf-8?q?1767971354271866471?= Add the -u/--user-thread option documentation for timerlat top/hist. Cc: Steven Rostedt Cc: Daniel Bristot de Oliveira Cc: Masami Hiramatsu Cc: Jonathan Corbet Signed-off-by: Daniel Bristot de Oliveira --- Documentation/tools/rtla/common_timerlat_options.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/tools/rtla/common_timerlat_options.rst b/Documentation/tools/rtla/common_timerlat_options.rst index bacdea6de7a3..88506b397c2d 100644 --- a/Documentation/tools/rtla/common_timerlat_options.rst +++ b/Documentation/tools/rtla/common_timerlat_options.rst @@ -26,3 +26,10 @@ Set the /dev/cpu_dma_latency to *us*, aiming to bound exit from idle latencies. *cyclictest* sets this value to *0* by default, use **--dma-latency** *0* to have similar results. + +**-u**, **--user-threads** + + Set timerlat to run without a workload, and then dispatches user-space workloads + to wait on the timerlat_fd. Once the workload is awakes, it goes to sleep again + adding so the measurement for the kernel-to-user and user-to-kernel to the tracer + output.