[0/8] rtla improvements

Message ID cover.1683827510.git.bristot@kernel.org
Headers
Series rtla improvements |

Message

Daniel Bristot de Oliveira May 11, 2023, 6:04 p.m. UTC
  This is a series of improvements for rtla, mainly as a result of our
daily usage of the tool debugging problems at red hat.

The cgroup support and house keeping options are from our usage
of the tool debugging containers.

The auto-analysis overhead reduction is needed when we go to
large boxes - but it is really hand in practice, as it gives an idea
of the problem without having to look at the trace.

Finally, running hwnoise 100 % of CPU time might cause some systems
to slow down too much. Reduce its utilization to 75% by default to
avoid problems for people using it for the first time.

Daniel Bristot de Oliveira (8):
  rtla: Add -C cgroup support
  rtla: Add --house-keeping option
  rtla: Change monitored_cpus from char * to cpu_set_t
  rtla: Automatically move rtla to a house-keeping cpu
  rtla/timerlat: Give timerlat auto analysis its own instance
  rtla/timerlat_hist: Add auto-analysis support
  rtla: Start the tracers after creating all instances
  rtla/hwnoise: Reduce runtime to 75%

 Documentation/tools/rtla/common_options.rst   |   8 +
 .../tools/rtla/common_timerlat_aa.rst         |   7 -
 .../tools/rtla/rtla-timerlat-hist.rst         |   7 +-
 .../tools/rtla/rtla-timerlat-top.rst          |   7 +
 tools/tracing/rtla/src/osnoise_hist.c         |  90 +++++-
 tools/tracing/rtla/src/osnoise_top.c          |  83 +++++-
 tools/tracing/rtla/src/timerlat_aa.c          |  35 ++-
 tools/tracing/rtla/src/timerlat_aa.h          |   5 +-
 tools/tracing/rtla/src/timerlat_hist.c        | 139 +++++++--
 tools/tracing/rtla/src/timerlat_top.c         | 127 +++++++--
 tools/tracing/rtla/src/utils.c                | 266 ++++++++++++++++--
 tools/tracing/rtla/src/utils.h                |   5 +
 12 files changed, 684 insertions(+), 95 deletions(-)
  

Comments

Daniel Bristot de Oliveira May 11, 2023, 6:04 p.m. UTC | #1
Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 1/8] rtla: Add -C cgroup support
Date: Thu, 11 May 2023 20:02:53 +0200
Message-Id: <df9ab6da3d389ebc4e5049fd84079e801974a397.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Juri Lelli <juri.lelli@redhat.com> from line 'Suggested-by: Juri Lelli <juri.lelli@redhat.com>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 2/8] rtla: Add --house-keeping option
Date: Thu, 11 May 2023 20:02:54 +0200
Message-Id: <9d24752f2af0cb5b6fe9893f236b576cedf31b62.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 3/8] rtla: Change monitored_cpus from char * to cpu_set_t
Date: Thu, 11 May 2023 20:02:55 +0200
Message-Id: <0b2e708c5951e5e3016b0a3838960066cfcea19d.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 4/8] rtla: Automatically move rtla to a house-keeping cpu
Date: Thu, 11 May 2023 20:02:56 +0200
Message-Id: <ebe5dbd39620bfae91eb95fe6c69f766334c6381.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 5/8] rtla/timerlat: Give timerlat auto-analysis its own instance
Date: Thu, 11 May 2023 20:02:57 +0200
Message-Id: <dc2fa88f7c8c6103db986122baa496c944571d02.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 6/8] rtla/timerlat_hist: Add auto-analysis support
Date: Thu, 11 May 2023 20:02:58 +0200
Message-Id: <09d6bbc8642fa930cdfc9fa003a0546f9106261d.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 7/8] rtla: Start the tracers after creating all instances
Date: Thu, 11 May 2023 20:02:59 +0200
Message-Id: <26d837baec9e9e261a1352fba6ffe9be8967ba25.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
(mbox) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'From: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Steven Rostedt <rostedt@goodmis.org> from line 'Cc: Steven Rostedt <rostedt@goodmis.org>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Cc: Daniel Bristot de Oliveira <bristot@kernel.org>'
(body) Adding cc: Masami Hiramatsu <mhiramat@kernel.org> from line 'Cc: Masami Hiramatsu <mhiramat@kernel.org>'
(body) Adding cc: Jonathan Corbet <corbet@lwn.net> from line 'Cc: Jonathan Corbet <corbet@lwn.net>'
(body) Adding cc: Daniel Bristot de Oliveira <bristot@kernel.org> from line 'Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>'
Dry-OK. Log says:
Server: mail.kernel.org
MAIL FROM:<bristot@kernel.org>
RCPT TO:<linux-trace-devel@vger.kernel.org>
RCPT TO:<rostedt@goodmis.org>
RCPT TO:<linux-doc@vger.kernel.org>
RCPT TO:<linux-kernel@vger.kernel.org>
RCPT TO:<juri.lelli@redhat.com>
RCPT TO:<chwhite@redhat.com>
RCPT TO:<bristot@kernel.org>
RCPT TO:<mhiramat@kernel.org>
RCPT TO:<corbet@lwn.net>
From: Daniel Bristot de Oliveira <bristot@kernel.org>
To: linux-trace-devel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>
Cc: linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Juri Lelli <juri.lelli@redhat.com>,
	William White <chwhite@redhat.com>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>
Subject: [PATCH 8/8] rtla/hwnoise: Reduce runtime to 75%
Date: Thu, 11 May 2023 20:03:00 +0200
Message-Id: <09fd28d1be7a5f3e01da1c2c007cf56790635f39.1683827510.git.bristot@kernel.org>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <cover.1683827510.git.bristot@kernel.org>
References: <cover.1683827510.git.bristot@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit

Result: OK
  
Daniel Bristot de Oliveira May 11, 2023, 6:08 p.m. UTC | #2
ok, today is one of those days... Ignore this email, it is the log --dry-run I tried before.

I need to automate this final checks :-)

-- Daniel