From: Steven Rostedt <rostedt@goodmis.org>
To: Tomas Glozar <tglozar@redhat.com>
Cc: Costa Shulyupin <costa.shul@redhat.com>,
John Kacur <jkacur@redhat.com>,
"Luis Claudio R. Goncalves" <lgoncalv@redhat.com>,
Eder Zulian <ezulian@redhat.com>,
Dan Carpenter <dan.carpenter@linaro.org>,
linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] rtla: Save trace when option `--trace` is specified
Date: Thu, 1 May 2025 10:42:51 -0400 [thread overview]
Message-ID: <20250501104251.46c2e1fb@gandalf.local.home> (raw)
In-Reply-To: <20250304121053.06b84874@gandalf.local.home>
On Tue, 4 Mar 2025 12:10:53 -0500
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Tue, 4 Mar 2025 09:16:11 +0100
> Tomas Glozar <tglozar@redhat.com> wrote:
>
> > út 4. 3. 2025 v 9:00 odesílatel Tomas Glozar <tglozar@redhat.com> napsal:
> > >
> > > So we need to stop tracing here, before we save the trace, if we want
> > > to do that. Perhaps combining this with the cleanup patch [1] and
> > > doing the stopping in save_trace_to_file would make sense?
> > >
> >
> > Also, the patch will also save the trace if running with -a and the
> > threshold was not violated, which is not what one usually wants, e.g.:
> >
> > $ rtla osnoise top -c 0 -q -a 10000000 -d 5s
> > Operating System Noise
> >
> > duration: 0 00:00:05 | time is in us
> > CPU Period Runtime Noise % CPU Aval Max Noise Max
> > Single HW NMI IRQ Softirq Threa
> > d
> > 0 #4 4000000 37712 99.05720 10998
> > 555 7624 0 4011 34 2
> > 4
> > Saving trace to osnoise_trace.txt
> >
> > I believe it would be better to add a new option, something like
> > --force-trace, that would be used to save the trace even if there is
> > no threshold violation. -t/--trace and -a could then be used with the
> > same semantics as before.
>
> As long is this is what you expect to happen. I just wanted to point out
> that recording the trace while it is active means it may never stop
> recording. If that is OK, then I'm fine with the change.
>
I just noticed that this patch was never applied. Is it still something to add?
-- Steve
next prev parent reply other threads:[~2025-05-01 14:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-27 17:02 Costa Shulyupin
2025-02-28 1:06 ` Steven Rostedt
2025-03-03 15:34 ` Tomas Glozar
2025-03-03 15:54 ` Costa Shulyupin
2025-03-04 8:03 ` Tomas Glozar
2025-03-03 20:03 ` Steven Rostedt
2025-03-04 8:00 ` Tomas Glozar
2025-03-04 8:16 ` Tomas Glozar
2025-03-04 17:10 ` Steven Rostedt
2025-05-01 14:42 ` Steven Rostedt [this message]
2025-05-01 18:12 ` Costa Shulyupin
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=20250501104251.46c2e1fb@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=costa.shul@redhat.com \
--cc=dan.carpenter@linaro.org \
--cc=ezulian@redhat.com \
--cc=jkacur@redhat.com \
--cc=lgoncalv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=tglozar@redhat.com \
/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®