From: Stephane Eranian <eranian@hpl.hp.com>
To: "Bryan O'Sullivan" <bos@serpentine.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/6] 2.6.16-rc1 perfmon2 patch for review
Date: Tue, 24 Jan 2006 07:09:12 -0800 [thread overview]
Message-ID: <20060124150912.GB7130@frankl.hpl.hp.com> (raw)
In-Reply-To: <1137775645.28944.61.camel@serpentine.pathscale.com>
Bryan,
On Fri, Jan 20, 2006 at 08:47:24AM -0800, Bryan O'Sullivan wrote:
> On Fri, 2006-01-20 at 07:20 -0800, Stephane Eranian wrote:
>
> > +static struct pfm_smpl_fmt dfl_fmt={
> > + .fmt_name = "default_format2",
> > + .fmt_uuid = PFM_DFL_SMPL_UUID,
>
> What's the point of using a UUID here?
>
Every sampling buffer format, even the default, needs a name.
Not all measurements need a kernel level sampling buffer. In that
case they pass the NULL uuid (uuid = all zeroes).
> > +static struct file_system_type pfm_fs_type = {
> > + .name = "pfmfs",
> > + .get_sb = pfmfs_get_sb,
> > + .kill_sb = kill_anon_super,
> > +};
>
> A comment that describes what pfmfs is for would be useful here, and
> perhaps a warning to hold one's nose, if the code that follows is
> anything to go by :-)
>
Yes, this is sort of obscure. But any file descriptor must be associated
with a filesystem (and super block). This creates the minimum skeleton
for such filesystem. The same technique is used for pipes, tmpfs,...
> > +static ctl_table pfm_ctl_table[]={
>
> Why are you using sysctls, and not sysfs? Why is this in a file that
> claims to be procfs-related?
>
Because I tried regrouping all the /proc AND related interface into a single
C file.
> Also, it looks like much of the procfs goo is actually not related to
> individual processes, really doesn't belong in /proc at all, and should
> move to some place in sysfs somewhere.
>
Well, it is not clear to me what criteria is used for /sys vs /proc. Yours
is based on whether the information is process or system-wide based. That
looks reasonable, yet I can see evidence of just the opposite in /proc
today, such as /proc/meminfo. Is this maintained because of backward compatibility?
--
-Stephane
next prev parent reply other threads:[~2006-01-24 15:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-20 15:20 Stephane Eranian
2006-01-20 16:47 ` Bryan O'Sullivan
2006-01-24 15:09 ` Stephane Eranian [this message]
2006-01-25 20:08 ` Bryan O'Sullivan
2006-01-25 23:52 ` Greg KH
2006-01-26 4:55 ` Stephane Eranian
2006-01-26 5:24 ` Greg KH
2006-01-26 5:43 ` Stephane Eranian
2006-01-26 18:23 ` Bryan O'Sullivan
2006-01-27 0:14 ` Greg KH
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=20060124150912.GB7130@frankl.hpl.hp.com \
--to=eranian@hpl.hp.com \
--cc=bos@serpentine.com \
--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
Powered by JetHome