Re: [RFC][PATCH] tracing: Allow creating instances with specified system events

From: Steven Rostedt
Date: Tue Nov 28 2023 - 09:54:26 EST


On Tue, 28 Nov 2023 09:20:29 -0500
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> On Tue, 28 Nov 2023 14:14:29 +0100
> Dmytro Maluka <dmaluka@xxxxxxxxxxxx> wrote:
>
>
> > This limitation will cause (unrelated) events created by modules that
> > are insmoded after creating the instance to be also added to the
> > instance. Why not filter those as well?
>
> I did think of that. But that would be a separate patch. Where I would save
> the string that is passed in, and whenever a new module is loaded, it would
> only add the events if the events' system matches in the string. This would
> also allow adding event systems that do not yet exist.

Now that I'm implementing this, it makes more sense to just do that as one
patch. Otherwise the check against the systems string is redundant, as the
creation of the events needs to check against the tr->systems too. I found
that I was deleting most of this patch to implement the change.

-- Steve