[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7c86c4470805080942v4b3c17a7jacf5e14eb21b1345@mail.gmail.com>
Date: Thu, 8 May 2008 08:42:35 -0800
From: "stephane eranian" <eranian@...glemail.com>
To: "Andi Kleen" <andi@...stfloor.org>
Cc: linux-kernel@...r.kernel.org,
"Andrew Morton" <akpm@...ux-foundation.org>,
"Ingo Molnar" <mingo@...e.hu>, tglx@...utronix.de
Subject: Re: [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@...stfloor.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
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists