[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140418100153.GD4385@pd.tnic>
Date: Fri, 18 Apr 2014 12:01:53 +0200
From: Borislav Petkov <bp@...en8.de>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/2] tracing: Do not try to recreated toplevel
set_ftrace_* files
On Thu, Apr 17, 2014 at 07:42:57PM -0400, Steven Rostedt wrote:
> From: "Steven Rostedt (Red Hat)" <rostedt@...dmis.org>
>
> With the restructing of the function tracer working with instances, the
> "top level" buffer is a bit special, as the function tracing is mapped
> to the same set of filters. This is done by using a "global_ops" descriptor
> and having the "set_ftrace_filter" and "set_ftrace_notrace" map to it.
>
> When an instance is created, it creates the same files but its for the
> local instance and not the global_ops.
>
> The issues is that the local instance creation shares some code with
> the global instance one and we end up trying to create th top level
> "set_ftrace_*" files twice, and on boot up, we get an error like this:
>
> Could not create debugfs 'set_ftrace_filter' entry
> Could not create debugfs 'set_ftrace_notrace' entry
>
> The reason they failed to be created was because they were created
> twice, and the second time gives this error as you can not create the
> same file twice.
>
> Reported-by: Borislav Petkov <bp@...en8.de>
> Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
Tested-by: Borislav Petkov <bp@...e.de>
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists