Re: [PATCH][1/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: core

From: Christoph Hellwig
Date: Tue Jun 22 2004 - 12:30:03 EST


On Tue, Jun 22, 2004 at 04:38:06PM +0200, Mikael Pettersson wrote:
> Swiching to open() on /proc/<pid>/<tid>/perfctr followed by ioctl()s
> would be easy to implement. But people @ LKML are sometimes violently
> opposed to ioctl()s, that's why the switch to syscalls happended.

I don't remember the details anymore, but lots of the syscalls could
really be read/write on special files. I'll look through the code again
and send out draft API document.

> One concern is that there doesn't appear to be a user-visible shortcut
> to "your own" /proc/<pid>/<tid>/ like there was when /proc/self still
> had some useful meaning. This is merely annoying, not a show-stopper.

Shouldn't be a real problem to add one.
-
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/