Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp416852pxb; Wed, 27 Oct 2021 05:31:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDVIAHnBcXZAOrD9WplYsmOgpaNP9+zK93eki2qN12VySjmLtgIWtpVt7D2PLZGU2unwXF X-Received: by 2002:aa7:c053:: with SMTP id k19mr43548610edo.293.1635337877065; Wed, 27 Oct 2021 05:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635337877; cv=none; d=google.com; s=arc-20160816; b=pKBIt8pcqwfBaNiU3aC4OKzB0lJQHCC2y6Kfyjw9Xq9o74N+P3TyQgs6czSD1VqxKu kljy97KCvR+UGYWFL4Plb4vpFYCIGa2iEqX8Ti+n7dPb1v9RU/UeGJZ2tojPqZeTFwpr 22j4O5AMBmYxzcdePAmgGWQng7mqh3hEwYUOskPSdE5dI4BeozbQbAh93u8PE26XJOUd YdFeSw4Q0s9qQ4a7YRBtzE+roRICxERBzaN2HC3zV63LT2m3IXqE3VfaBC0f2zUoiWiT /BCmAYJFZucQrXvP6daPwhkHjh/hpqbwa00gcPUjn615fwT56xnhzv5gfQ8YinHhtI1N RC+A== 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; bh=vMm9G/afUF80B+hUdFDb8R79Qv6mPzn3DI9CcjOT5qY=; b=MplYejKU+G566hZJX+oFpeZAi/kdNsD+PiHhMXSdcaG29JJZMaNnKnuNWXT57/Bj6j sXCuBxzWi7lte0M7pCRJjlijnvvMk3nj+xHoHwgtm95S0ot6DA0TXbr03E/UDjTH+P2a FkUlL2+EEl905PUPBdUYOBTAdrengAH71BfCZWbqDsOXaMH5GAv9pfRRfKKZKp6kU//n PM0RO4irrUILfyiTyIzo9o2OpSwEAqvYTNC9tiHlfEk/sR/mE4HKClSgzHC/Kq29fbjn 1yGuk/1VRw7/NKbxEukn/2QU1D6hxqAK8KjXZTkj+NI7GMKpnkfplpxU0EJndE+vdUqF lN2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si34422262edb.12.2021.10.27.05.30.06; Wed, 27 Oct 2021 05:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239942AbhJZWMk convert rfc822-to-8bit (ORCPT + 99 others); Tue, 26 Oct 2021 18:12:40 -0400 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:41291 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240026AbhJZWLw (ORCPT ); Tue, 26 Oct 2021 18:11:52 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-223-ykweK9dxNBGCp72_ijyg7Q-1; Tue, 26 Oct 2021 18:09:24 -0400 X-MC-Unique: ykweK9dxNBGCp72_ijyg7Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D92C5CF98F; Tue, 26 Oct 2021 22:09:22 +0000 (UTC) Received: from x1.com (unknown [10.22.32.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 300BC60BF1; Tue, 26 Oct 2021 22:09:06 +0000 (UTC) From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: Tao Zhou , Daniel Bristot de Oliveira , Ingo Molnar , Tom Zanussi , Masami Hiramatsu , Juri Lelli , Clark Williams , John Kacur , Peter Zijlstra , Thomas Gleixner , Sebastian Andrzej Siewior , linux-rt-users@vger.kernel.org, linux-trace-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V6 18/20] rtla: Add rtla timerlat documentation Date: Wed, 27 Oct 2021 00:06:29 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=bristot@kernel.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset=WINDOWS-1252 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Man page for rtla timerlat tool. Cc: Steven Rostedt Cc: Ingo Molnar Cc: Tom Zanussi Cc: Masami Hiramatsu Cc: Juri Lelli Cc: Clark Williams Cc: John Kacur Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Sebastian Andrzej Siewior Cc: Daniel Bristot de Oliveira Cc: linux-rt-users@vger.kernel.org Cc: linux-trace-devel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Daniel Bristot de Oliveira --- .../rtla/common_timerlat_description.rst | 10 ++++ Documentation/tools/rtla/rtla-timerlat.rst | 57 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 Documentation/tools/rtla/common_timerlat_description.rst create mode 100644 Documentation/tools/rtla/rtla-timerlat.rst diff --git a/Documentation/tools/rtla/common_timerlat_description.rst b/Documentation/tools/rtla/common_timerlat_description.rst new file mode 100644 index 000000000000..321201cb8597 --- /dev/null +++ b/Documentation/tools/rtla/common_timerlat_description.rst @@ -0,0 +1,10 @@ +The **rtla timerlat** tool is an interface for the *timerlat* tracer. The +*timerlat* tracer dispatches a kernel thread per-cpu. These threads +set a periodic timer to wake themselves up and go back to sleep. After +the wakeup, they collect and generate useful information for the +debugging of operating system timer latency. + +The *timerlat* tracer outputs information in two ways. It periodically +prints the timer latency at the timer *IRQ* handler and the *Thread* +handler. It also enable the trace of the most relevant information via +**osnoise:** tracepoints. diff --git a/Documentation/tools/rtla/rtla-timerlat.rst b/Documentation/tools/rtla/rtla-timerlat.rst new file mode 100644 index 000000000000..44a49e6f302b --- /dev/null +++ b/Documentation/tools/rtla/rtla-timerlat.rst @@ -0,0 +1,57 @@ +================ +rtla-timerlat +================ +------------------------------------------- +Measures the operating system timer latency +------------------------------------------- + +:Manual section: 1 + +SYNOPSIS +======== +**rtla timerlat** [*MODE*] ... + +DESCRIPTION +=========== + +.. include:: common_timerlat_description.rst + +The *timerlat* tracer outputs information in two ways. It periodically +prints the timer latency at the timer *IRQ* handler and the *Thread* handler. +It also provides information for each noise via the **osnoise:** tracepoints. +The **rtla timerlat top** mode displays a summary of the periodic output +from the *timerlat* tracer. The **rtla hist hist** mode displays a histogram +of each tracer event occurrence. For further details, please refer to the +respective man page. + +MODES +===== +**top** + + Prints the summary from *timerlat* tracer. + +**hist** + + Prints a histogram of timerlat samples. + +If no *MODE* is given, the top mode is called, passing the arguments. + +OPTIONS +======= +**-h**, **--help** + + Display the help text. + +For other options, see the man page for the corresponding mode. + +SEE ALSO +======== +**rtla-timerlat-top**\(1), **rtla-timerlat-hist**\(1) + +*timerlat* tracer documentation: + +AUTHOR +====== +Written by Daniel Bristot de Oliveira + +.. include:: common_appendix.rst -- 2.31.1