Re: [PATCH 1/3] perf-events: Add support for supplementary event registers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephane Eranian
Date: Thursday, November 11, 2010 - 11:06 am

Andi,

Thanks for creating this patch. It was on my TODO list for a while.
OFFCORE_RESPONSE is indeed a very useful event.

One thing I noticed in your patch is that you don't special
case the configuration where HT is off. In that case, the
sharing problem goes away. I think you could override
either way during init.

Some more tidbits:
- OFFCORE_RESPONSE_0 is 0x01b7
- OFFCORE_RESPONSE_1 is 0x01bb

The umask is not zero but 1. Dont' know if you get
something meaningful is you pass a umask of zero.
But that's the user's responsibility to set this right.

An alternative approach could have been to stash the
extra MSR value in the upper 32-bit value of the config.
It's 16-bit wide today. OFFCORE_RESPONSE is a
model specific event. There is no guarantee it will be
there in future CPU, so it would be safe to do that as well.

On Thu, Nov 11, 2010 at 5:15 PM, Andi Kleen <andi@firstfloor.org> wrote:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH/FIX] perf-events: Put the per cpu state for int ..., Stephane Eranian, (Thu Nov 11, 10:54 am)
Re: [PATCH 1/3] perf-events: Add support for supplementary ..., Stephane Eranian, (Thu Nov 11, 11:06 am)
Re: [PATCH 2/3] perf: Add support for extra parameters for ..., Frederic Weisbecker, (Fri Nov 12, 6:30 am)