From: Cliff Wickman <cpw@sgi.com>
To: Valdis.Kletnieks@vt.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC] use of /sys versus /proc
Date: Fri, 23 May 2008 15:48:19 -0500 [thread overview]
Message-ID: <20080523204819.GA20374@sgi.com> (raw)
In-Reply-To: <23175.1211563160@turing-police.cc.vt.edu>
On Fri, May 23, 2008 at 01:19:20PM -0400, Valdis.Kletnieks@vt.edu wrote:
> On Fri, 23 May 2008 08:12:55 CDT, Cliff Wickman said:
> >
> > I have a need to display TLB shootdown statistics. (I'm working
> > on a patch to implement this on a new machine at SGI.)
> >
> > I had planned to display these statistics through /proc
> > as in arch/ia64/sn/kernel/sn2/sn2_smp.c (/proc/sgi_sn/ptc_statistics).
> >
> > However, considering the general move to reserve /proc for
> > process-related things, I thought the community might prefer the
> > interface to be in /sys.
>
> Is debugfs an option?
I tried that out and it works about like /proc, which is good.
It doesn't clutter /proc.
Plus it can disappear gracefully from the kernel if CONFIG_DEBUG_FS
is set off. (it is set on in the default x86_64 configuration)
So thanks for the suggestion. It may be the answer.
--
Cliff Wickman
Silicon Graphics, Inc.
cpw@sgi.com
(651) 683-3824
next prev parent reply other threads:[~2008-05-23 20:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 13:12 [RFC] use of /sys versus /proc Cliff Wickman
2008-05-23 17:19 ` Valdis.Kletnieks
2008-05-23 20:48 ` Cliff Wickman [this message]
2008-05-23 20:47 ` Alexey Dobriyan
2008-05-23 20:08 ` Robin Holt
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=20080523204819.GA20374@sgi.com \
--to=cpw@sgi.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=linux-kernel@vger.kernel.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