lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/3] perf_events: update extra shared registers management (v2)
From
Date
On Mon, 2011-05-23 at 11:11 +0200, Peter Zijlstra wrote:
> + if (event->hw.extra_reg.idx == EXTRA_REG_RSP_0) {
> + event->attr.config = 0x01bb;
> + event->hw.extra_reg.idx = EXTRA_REG_RSP_1;
> + event->hw.extra_reg.msr = MSR_OFFCORE_RSP_1;
> + } else if (event->hw.extra_reg.idx == EXTRA_REG_RSP_1) {
> + event->attr.config = 0x01b7;
> + event->hw.extra_reg.idx = EXTRA_REG_RSP_0;
> + event->hw.extra_reg.msr = MSR_OFFCORE_RSP_0;
> + }

clearly I meant to write:

event->hw.config &= ~X86_RAW_EVENT_MASK;
event->hw.config |= 0x01b[b7];

:-)


\
 
 \ /
  Last update: 2011-05-23 11:35    [W:0.074 / U:22.844 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site