From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757695Ab0CaQ0y (ORCPT ); Wed, 31 Mar 2010 12:26:54 -0400 Received: from mail-fx0-f227.google.com ([209.85.220.227]:42685 "EHLO mail-fx0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756724Ab0CaQ0x (ORCPT ); Wed, 31 Mar 2010 12:26:53 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=jDKrzww7wNBkPGTRKkzWosP6eM2XU0/dNLMFxmR8uGeNBS/lhV/3OEkjnehBQ+9bc1 F0DeVrIdgxDHk+i9+3CzVqx+WAVf7WBaXO22aSQRnI3K6nkTde6zQgXmZuf0mDmr8aLl Fo+Y0sz0nWn8Sd7NoU1RwmzcIVKyenQu8TCLQ= Date: Wed, 31 Mar 2010 20:26:47 +0400 From: Cyrill Gorcunov To: Peter Zijlstra Cc: Robert Richter , Stephane Eranian , Ingo Molnar , LKML , Lin Ming Subject: Re: [PATCH 0/3] perf/core, x86: unify perfctr bitmasks Message-ID: <20100331162647.GA15288@lenovo> References: <1269880612-25800-1-git-send-email-robert.richter@amd.com> <20100330134145.GI11907@erda.amd.com> <1269961255.5258.221.camel@laptop> <20100330155949.GJ11907@erda.amd.com> <1269968113.5258.442.camel@laptop> <20100330182906.GD5211@lenovo> <1269975840.5258.609.camel@laptop> <20100331161523.GA9058@lenovo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100331161523.GA9058@lenovo> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2010 at 08:15:23PM +0400, Cyrill Gorcunov wrote: > On Tue, Mar 30, 2010 at 09:04:00PM +0200, Peter Zijlstra wrote: > > On Tue, 2010-03-30 at 22:29 +0400, Cyrill Gorcunov wrote: > [...] > > > [...] > +static inline bool p4_is_odd_cpl(u32 escr) > +{ > + unsigned int t0 = (escr & P4_ESCR_T0_ANY) << 0; > + unsigned int t1 = (escr & P4_ESCR_T1_ANY) << 2; > + > + if ((t0 ^ t1) != t0) > + return true; /me in shame: This is bogus, Peter don't take it yet. > + > + return false; > +} [...] -- Cyrill