Re: [PATCH 4/5] fprobe: Always unregister fgraph function from ops

From: Steven Rostedt
Date: Wed Feb 19 2025 - 09:54:04 EST


On Wed, 19 Feb 2025 09:57:15 +0900
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx> wrote:

> Good catch! I forgot to remove the filter in this case.
> Is there anyway to be sure the filter is empty or clear it if
> fprobe_graph_active == 0?

You can call ftrace_free_filter(), but you need to make sure that the ops
is not active. Hmm, I should add a warning and exit if the ops is active
when that function is called.

-- Steve