lkml.org 
[lkml]   [2008]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] perfmon: add context switch hooks for x86
Andi,

It is not necessarily that easy. I will lok at this next week.

On 5/7/08, Andi Kleen <andi@firstfloor.org> wrote:
> stephane eranian wrote:
> > Andi,
> >
> > It would be much bigger because it would pull in a bunch of generic
> > and model-specific
> > data structures and code.
> >
> > To context switch, you need to know what the registers are, thus you
> > need the PMU
> > mapping table, which is implemented by a kernel module, so it needs
> > its registration
> > framework....
>
>
> Can you strip it down to be simpler?
>
> Minimally generic x86 perfctr switching code just needs an array with
> MSR numbers, doesn't it? And there are only a few variants.
>
>
> -Andi
>


\
 
 \ /
  Last update: 2008-05-08 18:45    [W:0.087 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site