mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "stephane eranian" <eranian@googlemail.com>
To: "Andi Kleen" <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Ingo Molnar" <mingo@elte.hu>,
	tglx@linutronix.de
Subject: Re: [PATCH] perfmon: add context switch hooks for x86
Date: Thu, 8 May 2008 08:42:35 -0800	[thread overview]
Message-ID: <7c86c4470805080942v4b3c17a7jacf5e14eb21b1345@mail.gmail.com> (raw)
In-Reply-To: <4821BD2A.3090000@firstfloor.org>

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
>

      reply	other threads:[~2008-05-08 16:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-07  8:33 stephane eranian
2008-05-07 14:17 ` Andi Kleen
2008-05-07 14:24   ` stephane eranian
2008-05-07 14:31     ` Andi Kleen
2008-05-08 16:42       ` stephane eranian [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c86c4470805080942v4b3c17a7jacf5e14eb21b1345@mail.gmail.com \
    --to=eranian@googlemail.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®