Re: [PATCH 10/22] 2.6.22-rc3 perfmon2 : PMU context switch support

2007-06-07 Thread Stephane Eranian
David, On Mon, Jun 04, 2007 at 07:50:27AM -0700, David Rientjes wrote: > > + * 02111-1307 USA > > + */ > > +#include > > +#include > > + > > +/* > > + * used only in UP mode > > + */ > > +void pfm_save_prev_context(struct pfm_context *ctxp) > > +{ > > Is this comment still valid even though the

Re: [PATCH 10/22] 2.6.22-rc3 perfmon2 : PMU context switch support

2007-06-04 Thread David Rientjes
On Tue, 29 May 2007, Stephane Eranian wrote: > --- linux-2.6.22.base/perfmon/perfmon_ctxsw.c 1969-12-31 16:00:00.0 > -0800 > +++ linux-2.6.22/perfmon/perfmon_ctxsw.c 2007-05-29 03:24:14.0 > -0700 > @@ -0,0 +1,341 @@ > +/* > + * perfmon_cxtsw.c: perfmon2 context switch code >

[PATCH 10/22] 2.6.22-rc3 perfmon2 : PMU context switch support

2007-05-29 Thread Stephane Eranian
This patch contains the PMU context switch routines. For per-thread contexts, the PMU state must be saved and restored on context switch. For systm-wide context we may need to intervene on certain architectures to cleanup certain registers. The PMU context switch code is concentrated into a singl