Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp419163pxb; Mon, 25 Oct 2021 10:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd5HkUEAa+cr/4uWHVCqEDM8HYd5+QCJrNr3iX/U6VsxdGyeMB9Ltzz1sg1RokWwZCQUeI X-Received: by 2002:a05:6402:40f:: with SMTP id q15mr28155578edv.333.1635184161886; Mon, 25 Oct 2021 10:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635184161; cv=none; d=google.com; s=arc-20160816; b=Tm2nNKjT8imPMp8BERn+jSMM0lZIGe9utumT2pUZx3tEQhKbJLJztYQyPRtYBzcHdZ KM3TQFCBqZZAw2rAcpidbECZBr/sI/kXMXLM0R3ogtMcnUK14zbX+2MiJplj0g2F8F0J d6N976+vq+3pCrU4vyv1wkvfMtRAHEoeILHrsvvZmLx88L4FGXRRodJI3o/Cwhyecml/ orqqScNFU3FZ5C2ML7/Jf/xEEo/2EW2PV8azoD5MGcJdGYTwS7ouNz0+DhsADjia7yxf vYOqFNzoUIjtfnC9jI9Io3K5EtEAjhSxfd+/i9dLiyakBTJcZpsx8Y6xkNO6qfI5MDqi 2WAQ== 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=b8r1qbZsNEfOgSexqSEwoDd5Zu2RIbfyGLvLa8M7E8PfjGZZN2WYC5HE3g2UG5Vv// jQ1wW9zDXt8o5D00dckxS8NEFBhR/88Iv0NfW4Qzn7wO3CH+YnYaB2aRZ4181OWm9afn qOpwTqrn5iL6rDD9q4G8bQpuOnJBJcd8Un5XU+LNbOXbW0e5+gF1y3K/aHzhG4jbrh5R p0suG0IldPf5CJST+XOqi927aHGwYBRIOK6e/aqVZlT8M3qa18ZItLcHlszrVNdcKQTe TzY0SnYkCsBTneI6vlkvVRAASvYaW0WIHmLUOcleUm8ddRdv+fwMpBdfR2fKlp5t0yBH lfjQ== 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 h17si6645204eds.170.2021.10.25.10.48.51; Mon, 25 Oct 2021 10:49:21 -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 S234451AbhJYRpc convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Oct 2021 13:45:32 -0400 Received: from us-smtp-delivery-44.mimecast.com ([207.211.30.44]:34451 "EHLO us-smtp-delivery-44.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234338AbhJYRpM (ORCPT ); Mon, 25 Oct 2021 13:45:12 -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-257-3-_tFsGSOWiLRiOUbSyQ-Q-1; Mon, 25 Oct 2021 13:42:44 -0400 X-MC-Unique: 3-_tFsGSOWiLRiOUbSyQ-Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1704D8018AC; Mon, 25 Oct 2021 17:42:43 +0000 (UTC) Received: from x1.com (unknown [10.22.9.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id C1D405C1CF; Mon, 25 Oct 2021 17:42:39 +0000 (UTC) From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: 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 V5 18/20] rtla: Add rtla timerlat documentation Date: Mon, 25 Oct 2021 19:40:43 +0200 Message-Id: <27fb29dae0d383b70f1a79ba7e308aa99cd335e4.1635181938.git.bristot@kernel.org> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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