From: Steven Rostedt <rostedt@goodmis.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Thomas Gleixner <tglx@linutronix.de>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Miguel Ojeda <ojeda@kernel.org>,
Alice Ryhl <aliceryhl@google.com>,
rust-for-linux@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [GIT PULL] tracing: More updates for 6.13
Date: Thu, 28 Nov 2024 15:51:20 -0500 [thread overview]
Message-ID: <20241128155120.6e6cd300@rorschach.local.home> (raw)
In-Reply-To: <CAHk-=wgwQ5gDdHgN54n8hsm566x5bauNPsdZPXm6uOCFvPA1+Q@mail.gmail.com>
On Thu, 28 Nov 2024 11:55:34 -0800
Linus Torvalds <torvalds@linux-foundation.org> wrote:
> I checked my resolution against yours, and I don't think your
> resolution is right.
>
> You didn't check 'cond' on regular rust tracepoints, and you didn't do
> any locking on either kind.
Bah, you're right. The cond is only needed if they utilize it, which
I'm not sure they do, but the locking is definitely needed. My brain
was off when doing the merge conflict. I was thinking more of "what
makes this compile" than how it actually works.
>
> I've pushed out my resolution, and hopefully rust people can actually
> test it. I might just be full of it.
Looks better than what I had. I'll kick my tests on it just as a sanity
check.
>
> That said, I also think that the "__rust_do_trace_##name" inline
> helper should just be renamed to "__trace_##name", and then the
> regular trace_##name() helper could use that inside the
> static_branch_unlikely() check. Because that seems to be the only real
> thing the "rust" version wants - avoiding the static branch
> infrastructure in favor of whatever rust infrastructure.
Hmm, I think that could be done.
>
> But hey, I do basic sanity build testing of the rust code, I don't
> actually _know_ it. Again, I might be missing something.
I need to spend some time understanding the rust code, so I can at least
review it better.
-- Steve
next prev parent reply other threads:[~2024-11-28 20:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 18:19 [GIT PULL] tracing: More updates for 6.13 Steven Rostedt
2024-11-28 19:53 ` pr-tracker-bot
2024-11-28 19:55 ` Linus Torvalds
2024-11-28 20:51 ` Steven Rostedt [this message]
2024-11-28 23:24 ` Steven Rostedt
2024-11-29 2:16 ` Yafang Shao
2024-11-29 3:04 ` Steven Rostedt
2024-11-29 13:14 ` Paul Moore
2024-11-29 13:26 ` Steven Rostedt
2024-11-29 23:08 ` Paul Moore
2024-11-29 9:36 ` Alice Ryhl
-- strict thread matches above, loose matches on Subject: below --
2024-11-27 16:34 Steven Rostedt
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=20241128155120.6e6cd300@rorschach.local.home \
--to=rostedt@goodmis.org \
--cc=aliceryhl@google.com \
--cc=bigeasy@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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