From: Greg KH <greg@kroah.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [RFC] tracefs
Date: Thu, 22 Oct 2009 21:27:54 -0700 [thread overview]
Message-ID: <20091023042754.GB26358@kroah.com> (raw)
In-Reply-To: <1256260230.20866.816.camel@gandalf.stny.rr.com>
On Thu, Oct 22, 2009 at 09:10:30PM -0400, Steven Rostedt wrote:
> On Thu, 2009-10-22 at 17:49 -0700, Greg KH wrote:
> > Hi all,
> >
> > At LinuxCon this year, Steven and I talked about moving the debugfs
> > usage in the tracing core to a stand-alone filesystem to give the
> > ability to start to lock down the api so that people an count on what is
> > going on in the tracing userspace interface.
> >
> > So, on the flight to Tokyo for the kernel summit, I wrote up tracefs.
> > Here's the first very rough cut at it below. I've run it here on my
> > laptop, and all seems well, but I do have a few questions:
> > - I've made the mount point be /sys/kernel/trace/ Is that ok? Should
> > it be /sys/kernel/tracing/? Or something else? You get to pick the
> > mount point now, so I don't want to hear any more grumblings about
> > the location in the future :)
>
> /trace
>
> (rostedt hides)
Yeah, I knew you were going to do that :)
> > - the block tracing code was not changed, as it uses
> > /sys/kernel/debug/block/ at the moment, not the
> > /sys/kernel/debug/tracing/ directory. To change the block tracing
> > code, it would require us to change the userspace tools as well,
> > which I don't know if we want to do. Thanks to Jens for
> > straightening this all out for me, originally I thought it was a bug
> > in the block tracing code.
>
> I thought we were suppose to port the block tracing over to tracepoints
> anyway, and remove the "block" tracer?
That's between you and Jens, but at the kernel summit, he said it was
not going to go away any year soon.
> > - is this type of conversion to a custom virtual filesystem acceptable
> > to the other tracing developers? Any objection to not using debugfs
> > calls anymore? The operation is identical, but it keeps the rest of
> > the kernel from intruding on your space now.
>
> What I would like is to still use debugfs for new features until we
> understand them better. That location, files can disappear or have their
> formats completely changed. When things move to tracefs, then the API is
> a bit more rigid. Files can still change, but they must change in a way
> to be backward compatible. We need a nice way to document how a file can
> change, and stick to it.
That sounds like a very good idea. I'll respin the patch to only merge
one tracer over at a time.
You are going to have a bit of a difficult time if you mix debugfs and
tracefs as people will not know where to look for the files. But hey,
that's your problem to deal with :)
> [ Snip the s/debugfs/tracefs/ changes ]
>
> Note, as mentioned above. I envision having a way to start out in
> debugfs and then slowly move things over to tracefs when they become
> standardize. Think of debugfs as linux-next ;-)
>
> Although most of the files are pretty much stable, I don't want to do a
> cross the board change at the moment.
That sounds reasonable. Thanks for the review, I'll respin this when I
get back home next week.
thanks,
greg k-h
next prev parent reply other threads:[~2009-10-23 4:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 0:49 [RFC] tracefs Greg KH
2009-10-23 1:10 ` Steven Rostedt
2009-10-23 4:27 ` Greg KH [this message]
2009-10-23 5:35 ` Ingo Molnar
2009-10-23 5:32 ` Ingo Molnar
2009-10-23 9:38 ` Frederic Weisbecker
2009-10-23 10:29 ` Ingo Molnar
2009-10-23 13:12 ` Steven Rostedt
2009-10-25 4:05 ` Christoph Hellwig
2009-10-28 1:06 ` Greg KH
2009-10-29 8:04 ` Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091023042754.GB26358@kroah.com \
--to=greg@kroah.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox