Re: [for-next][PATCH 15/16] ftrace: Add freeing algorithm to free ftrace_mod_maps
From: Steven Rostedt
Date: Sun Oct 08 2017 - 14:42:23 EST
On Sun, 8 Oct 2017 01:42:15 -0700
Joel Fernandes <joelaf@xxxxxxxxxx> wrote:
> Hi Steve,
>
> > "Joel Fernandes (Google)" <joel.opensrc@xxxxxxxxx> wrote:
> [..]
> > Also could you let me know what is the correct behavior of the filters
> > after a module being traced is unloaded, are the filters supposed to
> > be setup again after the module is unloaded, before the module can be
> > loaded again?
>
> Actually I learnt that it doesn't get preserved and wrote a patch to fix that, let me know
> what you think, thanks. (its only lightly tested - checked that the filters are preserved,
> will do more testing tomorrow):
They should not be preserved, it's too non-deterministic.
I'm wondering why the setting of the ip to zero didn't keep it from
showing up again. I'll have to investigate that.
-- Steve