public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nam Cao <namcao@linutronix.de>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>,
	"Gabriele Monaco" <gmonaco@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] rv: Add explicit lockdep context for reactors
Date: Mon, 10 Nov 2025 11:53:53 +0100	[thread overview]
Message-ID: <87a50ukvjy.fsf@yellow.woof> (raw)
In-Reply-To: <20251015115714-e8e69ed8-a5e4-4139-8d6d-7f2487674e68@linutronix.de>

Thomas Weißschuh <thomas.weissschuh@linutronix.de> writes:
> On Tue, Oct 14, 2025 at 04:50:18PM +0200, Gabriele Monaco wrote:
>> I don't mean to really sacrifice accuracy, DA monitors are disabled after a
>> reaction. This comes from the assumption that the model becomes invalid, so
>> whatever comes after might be meaningless. Monitors restart as soon as we are
>> sure we reached the initial state.
>> In this case, it already doesn't make sense to monitor events triggered by
>> reactors.

I can get behind this idea. I would even suspend tracepoints entirely
during tracepoint handling. Currently there is nothing protecting LTL's
internal data if multiple CPUs touch it internally. It needs a (raw)
spin lock, but cannot use it because spin locks step on some
tracepoints.

Suspending tracepoints during tracepoint handling would make lots of
things accessible to RV.

>> LTL is a bit more complex, so it might make sense to continue monitoring just
>> after a reaction, but I'm not sure how useful that is.
>
> Ack.
>
> It is still possible to manually re-enable all monitors through sysfs, correct?
> That is needed for the kind of testing I have in mind.
>
> Do we still consider these hypothetical tracepoint loops a blocker for this
> patch series? In my opinion the usage of lockdep does not exacerbate the risk.

Gabriele, if you want to take these patches:

Acked-by: Nam Cao <namcao@linutronix.de>

as the lockdep's tracepoints are not used by RV at the moment, so it
should be fine. And the patch does help with RV development.

But we need to investigate further into suspending monitor or suspending
tracepoints. If that is not feasible, we can revert this patch in the
future.

Nam


      reply	other threads:[~2025-11-10 10:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-14  5:51 [PATCH 0/3] rv: Add explicit lockdep context for reactors Thomas Weißschuh
2025-10-14  5:51 ` [PATCH 1/3] rv: Pass va_list to reactors Thomas Weißschuh
2025-10-14  7:08   ` Gabriele Monaco
2025-10-14  5:51 ` [PATCH 2/3] rv: Make rv_reacting_on() static Thomas Weißschuh
2025-10-14  5:51 ` [PATCH 3/3] rv: Add explicit lockdep context for reactors Thomas Weißschuh
2025-10-14  6:55   ` Gabriele Monaco
2025-10-14  7:13     ` Thomas Weißschuh
2025-10-14  7:38   ` Nam Cao
2025-10-14  9:46     ` Thomas Weißschuh
2025-10-14 10:22       ` Gabriele Monaco
2025-10-14 12:51         ` Thomas Weißschuh
2025-10-14 13:45           ` Gabriele Monaco
2025-10-14 14:18             ` Thomas Weißschuh
2025-10-14 14:50               ` Gabriele Monaco
2025-10-15 10:07                 ` Thomas Weißschuh
2025-11-10 10:53                   ` Nam Cao [this message]

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=87a50ukvjy.fsf@yellow.woof \
    --to=namcao@linutronix.de \
    --cc=gmonaco@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=thomas.weissschuh@linutronix.de \
    /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