From: Tomas Glozar <tglozar@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
John Kacur <jkacur@redhat.com>,
Luis Goncalves <lgoncalv@redhat.com>,
Gabriele Monaco <gmonaco@redhat.com>,
Tomas Glozar <tglozar@redhat.com>
Subject: [PATCH 0/4] rtla: Collect and print number of missed events
Date: Thu, 23 Jan 2025 15:23:35 +0100 [thread overview]
Message-ID: <20250123142339.990300-1-tglozar@redhat.com> (raw)
Due to tracefs buffer overflow, it can happen that rtla misses events,
making the tracing results inaccurate.
Count both the number of missed events and the total number of processed
events, and display missed events as well as their percentage. The numbers
are displayed for both osnoise and timerlat, even though for the earlier,
missed events are generally not expected.
For hist, the number is displayed at the end of the run; for top, it is
displayed on each printing of the top table.
Note: In the future, rtla might transition to using ftrace histogram
triggers to collect data. In that case, this code will be removed;
nevertheless, it is necessary until that happens.
Tomas Glozar (4):
rtla: Count missed trace events
rtla: Count all processed events
rtla: Add function to report missed events
rtla: Report missed event count
tools/tracing/rtla/src/osnoise.c | 20 ++++++++++++++
tools/tracing/rtla/src/osnoise.h | 1 +
tools/tracing/rtla/src/osnoise_hist.c | 1 +
tools/tracing/rtla/src/osnoise_top.c | 1 +
tools/tracing/rtla/src/timerlat_hist.c | 1 +
tools/tracing/rtla/src/timerlat_top.c | 1 +
tools/tracing/rtla/src/trace.c | 38 ++++++++++++++++++++++++++
tools/tracing/rtla/src/trace.h | 2 ++
8 files changed, 65 insertions(+)
--
2.48.1
next reply other threads:[~2025-01-23 14:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 14:23 Tomas Glozar [this message]
2025-01-23 14:23 ` [PATCH 1/4] rtla: Count missed trace events Tomas Glozar
2025-01-23 14:23 ` [PATCH 2/4] rtla: Count all processed events Tomas Glozar
2025-01-23 14:23 ` [PATCH 3/4] rtla: Add function to report missed events Tomas Glozar
2025-01-23 14:23 ` [PATCH 4/4] rtla: Report missed event count Tomas Glozar
2025-01-24 9:24 ` Gabriele Monaco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250123142339.990300-1-tglozar@redhat.com \
--to=tglozar@redhat.com \
--cc=gmonaco@redhat.com \
--cc=jkacur@redhat.com \
--cc=lgoncalv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®