From: Gabriele Monaco <gmonaco@redhat.com>
To: Nam Cao <namcao@linutronix.de>
Cc: Steven Rostedt <rostedt@goodmis.org>,
linux-kernel@vger.kernel.org,
linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] rv/rtapp/sleep: Make the error more informative for user
Date: Tue, 19 May 2026 17:26:31 +0200 [thread overview]
Message-ID: <2d19140a92df11d28f9b74e4a370f55940e042f1.camel@redhat.com> (raw)
In-Reply-To: <87y0hf2zj9.fsf@yellow.woof>
On Tue, 2026-05-19 at 17:24 +0200, Nam Cao wrote:
> Gabriele Monaco <gmonaco@redhat.com> writes:
> > On Tue, 2026-05-19 at 09:49 +0200, Nam Cao wrote:
> > > The rtapp/sleep monitor detects real-time tasks which go to sleep in an
> > > real-time-unsafe manner. If this happen, the monitor triggers a trace
> > > event
> > > in the sched_wakeup tracepoint's handler.
> >
> > Ok so here WAKE is no longer tied to the wakeup event but to the end of the
> > task
> > switch.
> >
> > So what happens if a task was not sleeping but just got preempted? Wouldn't
> > that
> > trigger WAKE (though that isn't a real wakeup) without RT_FRIENDLY_WAKE ?
>
> The monitor's rule says that when a task sleeps, it will not wake
> without rt-friendly wake. If it "wakes" without initial sleep, it is
> simply ignored.
Right makes sense.
> I can change the name to be SCHEDULE_IN or something like that to make
> it clearer.
>
Yeah that'd be clearer, or at least a comment stating this somewhere.
Thanks,
Gabriele
next prev parent reply other threads:[~2026-05-19 15:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 7:49 [PATCH 0/3] rv: rtapp monitor update Nam Cao
2026-05-19 7:49 ` [PATCH 1/3] rv/rtapp/sleep: Make the error more informative for user Nam Cao
2026-05-19 15:07 ` Gabriele Monaco
2026-05-19 15:24 ` Nam Cao
2026-05-19 15:26 ` Gabriele Monaco [this message]
2026-05-19 7:49 ` [PATCH 2/3] rv/rtapp/sleep: Update nanosleep rule Nam Cao
2026-05-19 12:58 ` Gabriele Monaco
2026-05-19 14:51 ` Nam Cao
2026-05-21 7:04 ` Gabriele Monaco
2026-05-25 11:38 ` Nam Cao
2026-05-19 7:49 ` [PATCH 3/3] rv/rtapp: Add wakeup monitor Nam Cao
2026-05-21 6:40 ` Gabriele Monaco
2026-05-25 11:45 ` Nam Cao
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=2d19140a92df11d28f9b74e4a370f55940e042f1.camel@redhat.com \
--to=gmonaco@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=namcao@linutronix.de \
--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®