Re: [PATCH 2/5] debugfs: function to know if debugfs is initialized

From: Ingo Molnar
Date: Mon Mar 23 2009 - 04:18:24 EST



* Frederic Weisbecker <fweisbec@xxxxxxxxx> wrote:

> With ftrace, some tracers are registered in early initcalls
> and attempt to create files on the debugfs filesystem.
> Depending on when they are activated, they can try to create their
> file at any time. Some checks can be done on the tracing area
> but providing a helper to know if debugfs is registered make it
> really more easy.
>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
> Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
> ---
> fs/debugfs/inode.c | 16 ++++++++++++++++
> include/linux/debugfs.h | 8 ++++++++
> 2 files changed, 24 insertions(+), 0 deletions(-)

Greg, is this patch is fine with you?

If yes, then would you mind if we picked this up into the tracing
tree - as a subsequent fix-patch relies on it. There's no debugfs
patches pending that i can see that would conflict with this.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/