[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221012182639.5a607add@rorschach.local.home>
Date: Wed, 12 Oct 2022 18:26:39 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Beau Belgrave <beaub@...ux.microsoft.com>
Cc: mhiramat@...nel.org, linux-trace-devel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tracing: Track event ref in tracefs enable/disable
On Wed, 12 Oct 2022 14:57:17 -0700
Beau Belgrave <beaub@...ux.microsoft.com> wrote:
> When events are enabled via the "enable" file within tracefs there is no
> get or put ref. Add these to ensure modules and dynamic events do not
> unload while the event is enabled via tracefs.
Why is this an issue?
The events are only called from the module code, and when the module is
unloaded, they are no longer called. Why keep the module from unloading
when enabled?
-- Steve
Powered by blists - more mailing lists