[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150121225109.6b27b555@grimm.local.home>
Date: Wed, 21 Jan 2015 22:51:09 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: tj@...nel.org, linux-kernel@...r.kernel.org,
Al Viro <viro@...IV.linux.org.uk>,
Ingo Molnar <mingo@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [RFC][PATCH 0/5] tracing: Add new file system tracefs
On Thu, 22 Jan 2015 11:18:19 +0800
Greg Kroah-Hartman <gregkh@...uxfoundation.org> wrote:
> Tejun would know best, he wrote it :)
Oh good, as Bugs Bunny would say "where's the doc?" (or was that
"what's up doc"?)
>
> What specifically are you looking for? I think there's at least two
> filesystems using it already, are they not good enough examples?
>
Well, I see the two biggest users are sysfs and cgroups, where I never
understood how sysfs actually works, and cgroups, the filesystem is
very integrated with the usage of cgroups.
There doesn't seem to be any abi where one can relate to the vfs
system.
I'd like to keep the interface like debugfs had for tracefs, because
all of tracing depends on it, and it would require a full rewrite to
convert it to something that doesn't have the vfs type of paradigm, in
which case, tracefs would not be done for another decade.
That is, I need to create the following interface:
tracefs_create_file()
tracefs_create_dir()
tracefs_remove()
tracefs_remove_recursive()
and that's all I need for the filesystem. There doesn't seem to be any
documentation on kernfs about how to implement this.
Yes, I can study the code, but I was hoping that there was some
kernfs.txt that described how to create a new fs with it. It just saves
time if there was a document than having to read the code and perhaps
use it in a way it wasn't supposed to be used.
-- Steve
--
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