[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250711104436.df72f612ad78f06ec96e63f7@kernel.org>
Date: Fri, 11 Jul 2025 10:44:36 +0900
From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] tracing: Remove "__attribute__()" from the type
field of event format
On Thu, 10 Jul 2025 09:53:27 -0400
Steven Rostedt <rostedt@...dmis.org> wrote:
> On Thu, 10 Jul 2025 22:45:20 +0900
> Masami Hiramatsu (Google) <mhiramat@...nel.org> wrote:
>
> > > And it doesn't free after allocation because it only does the
> > > allocation for events that will never be freed. For modules, it
> > > registers the allocated string so it will be freed on unload.
> >
> > What happen if the tracepoint in module has the __attribute__?
> > (or enum etc?)
>
> It adds the string to a linked list via add_str_to_module(). When the
> module is unloaded, it searches the link list "module_strings" for all
> the strings registered under that module and frees it.
OK, thanks for the clarification!
>
> See trace_module_remove_events().
Let me check it.
Thanks!
>
> -- Steve
--
Masami Hiramatsu (Google) <mhiramat@...nel.org>
Powered by blists - more mailing lists