2006-10-09 14:10:53

by Stephane Eranian

[permalink] [raw]
Subject: [PATCH 00/21] 2.6.18 perfmon2 : introduction

Hello,

Perfmon2 is a new kernel subsystem which provides access to the
hardware performance counters present all all modern processors.
It provides suport for basic counting and sampling on a per-thread
or system-wide basis. It supports all the major processor architectures.

The following series of patches includes the generic perfmon2
subsystem and the support for i386, x86_64, and powerpc. The perfmon2
subsystem also works on MIPS and all Itanium processors. The Itanium support
is not posted because it does not easily accomodate the 100k message
limit of lkml. The powerpc support is still very preliminary.

The patches are relative to 2.6.18

I have already posted on the list about this subsystem. I am submitting
today to get reviews and make progress towards getting the subsystem
merged into the mainline kernel.

The patches are split up between common and arch-specific. Each part
is further decomposed into new files and modified files. The generic
code is now split up by functionality to make reading easier.

For each new or modified files, I provide a detailed description of
the changes.

This version incoporates a lot of changes based on feedback I got
from my previous posting on LKML. I would like to thank the reviewers
for their very detailed comments. Through this tough process, I think,
the code overall quality has improved.

I apologize for the delay in posting this message but I was travelling.

Thanks.

--
-Stephane


2006-10-12 01:23:53

by Andrew Morton

[permalink] [raw]
Subject: Re: [PATCH 00/21] 2.6.18 perfmon2 : introduction

On Mon, 9 Oct 2006 07:10:07 -0700
Stephane Eranian <[email protected]> wrote:

> Perfmon2 is a new kernel subsystem which provides access to the
> hardware performance counters present all all modern processors.

patch 21/21 got lost - please resend.

How does one test this? A short-form perfmon-for-dummies guide would be
nice..

Thanks.

2006-10-12 07:03:10

by Stephane Eranian

[permalink] [raw]
Subject: Re: [PATCH 00/21] 2.6.18 perfmon2 : introduction

Andrew,

On Wed, Oct 11, 2006 at 06:14:10PM -0700, Andrew Morton wrote:
> On Mon, 9 Oct 2006 07:10:07 -0700
> Stephane Eranian <[email protected]> wrote:
>
> > Perfmon2 is a new kernel subsystem which provides access to the
> > hardware performance counters present all all modern processors.
>
> patch 21/21 got lost - please resend.

The first patch is numbered 00 (introduction), so nothing got lost.

>
> How does one test this? A short-form perfmon-for-dummies guide would be
> nice..

Yes, I agree with you. However, I would suggest you download the libpfm package
from:
http://perfmon2.sf.net

Click on project files.

This package contains very simple examples on how one can use the interface.

I am currently working on fixing the remaining issues you reported in your feedback.
As for the biggest change which is to drop UUID in favor of strings, I have decided
to make the switch.

--
-Stephane