From patchwork Tue Jun 13 22:08:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 107591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp856626vqr; Tue, 13 Jun 2023 15:17:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LkxtYb1Ier+x9laRdBkVxymIrjWiH11jQNuVIaaUEjDnn017fShVh2P0RdgpG3eRcUIWC X-Received: by 2002:a17:906:dc94:b0:966:634d:9d84 with SMTP id cs20-20020a170906dc9400b00966634d9d84mr16714044ejc.20.1686694678597; Tue, 13 Jun 2023 15:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686694678; cv=none; d=google.com; s=arc-20160816; b=tVaA2Uga4c6VA5ZYLtcdDY8RBiFqnzHMyOhXbtc1nijKPNrYFJh/WhHQeme3fZyHvd +6zm7EyDFrQ5bODB+NIIpVMBnW3kQp6HtgWeMwZ69etj1XfK5E6abUguZE+28sJJE0Pa uwW2/BLTlZB9lKonfLz5WBBfFq6Fp7CVe3BpnjPxQRUGGYTs0yVwDR/iG5UaebM8tsWg XU9wKoGTYZSPV91xkd0IoFz+rR6jDBB2ddNYcTe1K9Xwgy6hYFvsnjFOKnS+w5xxm4KH zduBKvGhx4/OkO2qZonWgvL8tzjM60OlMTEmGQoYICfw1MTwvCtUN7g1v+ehpKvX//Mh fagA== 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=3Fhl9POfSs1Dj/MIFVJG+TT2P0h7Jpa3GKIs8/NwuLk=; b=VFUavrdG9vOyUvf5bqUCX6qRLQxn8P+I+s5G+LSvoSYcOJ+5soRa6XFpNYZJsm8Spk l2gWaMHql/emCSo2E0dWNaT4M1SMc2+TtxLk+qe3Xg0dP4UbWX8h0Bq6vQRA6CJOK3GQ ctT3WJfqEO+k/JmY++v+HsW/PGpPjxWEtY0/zzlhndy15VjUzf1lIkiPZh7980lcSFBb g3LQ3mlgQZeKrYTTlU6xpa2Ey+5Qvx2p20OobOY41ajp/mudtBhRfqC4NR0fnCD2GTm5 MbvagiFzU3cg6AEiYufF/bfFh4EKxm6hG5XE0NGgJVZ7Y8wedrVbrT4boE8lxgp8zntT kaOg== 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 k24-20020a170906579800b0094f9b7c61e7si6854975ejq.792.2023.06.13.15.17.33; Tue, 13 Jun 2023 15:17:58 -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; 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 S234504AbjFMWJB (ORCPT + 99 others); Tue, 13 Jun 2023 18:09:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234872AbjFMWIc (ORCPT ); Tue, 13 Jun 2023 18:08:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5773A10E6 for ; Tue, 13 Jun 2023 15:08:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1031F63B92 for ; Tue, 13 Jun 2023 22:08:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82202C433AD; Tue, 13 Jun 2023 22:08:26 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.96) (envelope-from ) id 1q9CBd-000EHW-1v; Tue, 13 Jun 2023 18:08:25 -0400 Message-ID: <20230613220825.415487197@goodmis.org> User-Agent: quilt/0.66 Date: Tue, 13 Jun 2023 18:08:01 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Daniel Bristot de Oliveira , William White , Jonathan Corbet , Juri Lelli Subject: [for-next][PATCH 11/11] Documentation: Add tools/rtla timerlat -u option documentation References: <20230613220750.330146797@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, 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?1768627559270026702?= X-GMAIL-MSGID: =?utf-8?q?1768627559270026702?= From: Daniel Bristot de Oliveira Add the -u/--user-thread option documentation for timerlat top/hist. Link: https://lkml.kernel.org/r/bf727c8ccb8f50792200ae620141e047edf4af7a.1686066600.git.bristot@kernel.org Cc: William White Cc: Jonathan Corbet Tested-by: Juri Lelli Signed-off-by: Daniel Bristot de Oliveira Signed-off-by: Steven Rostedt (Google) --- 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.