public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: "Fusheng Huang(黄富生)" <Fusheng.Huang@luxshare-ict.com>
Cc: "mhiramat@kernel.org" <mhiramat@kernel.org>,
	"GuoJin Dai( 戴国金)" <GuoJin.Dai@luxshare-ict.com>,
	"linux-trace-kernel@vger.kernel.org"
	<linux-trace-kernel@vger.kernel.org>
Subject: Re: 【ftrace_events list】race between trace_event_eval_update and __register_event discuss
Date: Thu, 17 Jul 2025 10:59:58 -0400	[thread overview]
Message-ID: <20250717105958.7e8c51b6@batman.local.home> (raw)
In-Reply-To: <20250717105007.46ccd18f@batman.local.home>

On Thu, 17 Jul 2025 10:50:07 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> >       __register_event(inline)
> >                 |...
> >                 |+++down_write(&trace_event_sem);
> >                 |
> >                 |---list_add(&call->list, &ftrace_events);
> >                 |
> >                 |+++down_up(&trace_event_sem);
> >               |...

Yeah, I think this may need to be the patch, as __register_event() also
calls event_init() that eventually takes the semaphore :-p

I think there may need to be other places that need that protection, so
I'll go and see if I can find and add them all.

-- Steve

      parent reply	other threads:[~2025-07-17 15:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3c1259275c784bbd9e2f33e1b2d846c1@luxshare-ict.com>
2025-07-17 14:50 ` 【ftrace_events list】race between trace_event_eval_update and __register_event discuss Steven Rostedt
2025-07-17 14:52   ` Steven Rostedt
2025-07-17 14:59   ` Steven Rostedt [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=20250717105958.7e8c51b6@batman.local.home \
    --to=rostedt@goodmis.org \
    --cc=Fusheng.Huang@luxshare-ict.com \
    --cc=GuoJin.Dai@luxshare-ict.com \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.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