Re: [PATCH] performance counters 3.1 for 2.5.45 [4/4]: kernel changes

From: Stephen Hemminger (shemminger@osdl.org)
Date: Mon Nov 04 2002 - 15:12:19 EST


On Thu, 2002-10-31 at 15:10, Mikael Pettersson wrote:
> This is part 4 of 4 of perfctr-3.1 for the 2.5.45 kernel:
> kernel changes to integrate the low and high-level drivers.
>
> /Mikael
>
> CREDITS | 1 +
> MAINTAINERS | 6 ++++++
> arch/i386/Kconfig | 1 +
> arch/i386/kernel/entry.S | 11 +++++++++++
> arch/i386/kernel/i8259.c | 3 +++
> arch/i386/kernel/process.c | 9 +++++++++
> arch/i386/mach-generic/irq_vectors.h | 5 +++--
> drivers/Makefile | 1 +
> include/asm-i386/apic.h | 3 +++
> include/asm-i386/processor.h | 2 ++
> include/asm-i386/unistd.h | 1 +
> kernel/timer.c | 2 ++
> 12 files changed, 43 insertions(+), 2 deletions(-)

Rather than adding yet another system call, shouldn't this be done by
extending the cpu part of sysfs (or /proc)?

It looks like the operations in sys_vperfctr could be easily mapped to a
RAM based file system. As it stands it reminds me of one of the old DEC
graphic libraries with one API entry for all the operations, and 65
different flag values.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:33 EST