From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753888Ab2IYMWf (ORCPT ); Tue, 25 Sep 2012 08:22:35 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:54029 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602Ab2IYMWe (ORCPT ); Tue, 25 Sep 2012 08:22:34 -0400 Date: Tue, 25 Sep 2012 16:22:29 +0400 From: Cyrill Gorcunov To: stephane eranian Cc: Peter Zijlstra , Vince Weaver , linux-kernel@vger.kernel.org, Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , "Meadows, Lawrence F" Subject: Re: [PATCH 1/1] perf, Add support for Xeon-Phi PMU Message-ID: <20120925122229.GI14490@moon> References: <1348572758.3881.24.camel@twins> <20120925114225.GF14490@moon> <1348574486.3881.43.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 25, 2012 at 02:05:58PM +0200, stephane eranian wrote: > On Tue, Sep 25, 2012 at 2:01 PM, Peter Zijlstra wrote: > > On Tue, 2012-09-25 at 15:42 +0400, Cyrill Gorcunov wrote: > > > >> Guys, letme re-read this whole mail thread first since I have no clue > >> what this remapping about ;) > > > > x86_setup_perfctr() / set_ext_hw_attr() have special purposed 0 and -1 > > config values to mean -ENOENT and -EINVAL resp. > > > > This means neither config value can be a 'real' event. Now it turns out > > Xeon-Phi has an actual event 0, which is masked by these special case > > thingies. > > Then how about using -1 or -2 for ENOENT and EINVAL? -2 can't be a valid p4 config as far as i can tell.