lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1306143168.18455.10.camel@twins>
Date:	Mon, 23 May 2011 11:32:48 +0200
From:	Peter Zijlstra <peterz@...radead.org>
To:	Stephane Eranian <eranian@...gle.com>
Cc:	linux-kernel@...r.kernel.org, mingo@...e.hu, andi@...stfloor.org,
	ming.m.lin@...el.com
Subject: Re: [PATCH 0/3] perf_events: update extra shared registers
 management (v2)

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];

:-)
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ