|
|
Subscribe / Log in / New account

rtla: Timerlat auto-analysis

From:  Daniel Bristot de Oliveira <bristot-AT-kernel.org>
To:  Daniel Bristot de Oliveira <bristot-AT-kernel.org>, Steven Rostedt <rostedt-AT-goodmis.org>, Jonathan Corbet <corbet-AT-lwn.net>
Subject:  [PATCH 0/3] rtla: Timerlat auto-analysis
Date:  Tue, 31 Jan 2023 16:38:52 +0100
Message-ID:  <cover.1675179318.git.bristot@kernel.org>
Cc:  linux-trace-devel-AT-vger.kernel.org, linux-doc-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

Currently, timerlat displays the timerlat tracer latency results, saving
the intuitive timerlat trace for the developer to analyze.

This patch goes a step forward in the automaton of the scheduling latency
analysis by providing a summary of the root cause of a latency higher than
the passed "stop tracing" parameter if the trace stops.

The output is intuitive enough for non-expert users to have a general idea
of the root cause by looking at each factor's contribution percentage
while keeping the technical detail in the output for more expert users
to start an in dept debug or to correlate a root cause with an existing one.

The first patch adds the functionality without using it. The second attaches
it to the timerlat top, and the last one updates the man page.

Daniel Bristot de Oliveira (3):
  rtla/timerlat: Add auto-analysis core
  rtla/timerlat: Add auto-analysis support to timerlat top
  Documentation/rtla: Add timerlat-top auto-analysis options

 .../tools/rtla/common_timerlat_aa.rst         |   7 +
 .../tools/rtla/rtla-timerlat-top.rst          | 164 ++-
 tools/tracing/rtla/src/timerlat_aa.c          | 990 ++++++++++++++++++
 tools/tracing/rtla/src/timerlat_aa.h          |  12 +
 tools/tracing/rtla/src/timerlat_top.c         |  46 +-
 tools/tracing/rtla/src/utils.h                |   3 +
 6 files changed, 1129 insertions(+), 93 deletions(-)
 create mode 100644 Documentation/tools/rtla/common_timerlat_aa.rst
 create mode 100644 tools/tracing/rtla/src/timerlat_aa.c
 create mode 100644 tools/tracing/rtla/src/timerlat_aa.h

-- 
2.38.1



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds