public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: stephane eranian <eranian@googlemail.com>
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: Wed, 07 May 2008 16:31:06 +0200	[thread overview]
Message-ID: <4821BD2A.3090000@firstfloor.org> (raw)
In-Reply-To: <7c86c4470805070724v793fbdcamf18579308a183a9d@mail.gmail.com>

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-07 14:31 UTC|newest]

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

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=4821BD2A.3090000@firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=akpm@linux-foundation.org \
    --cc=eranian@googlemail.com \
    --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