From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755964Ab2IYMBo (ORCPT ); Tue, 25 Sep 2012 08:01:44 -0400 Received: from merlin.infradead.org ([205.233.59.134]:43208 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754704Ab2IYMBm convert rfc822-to-8bit (ORCPT ); Tue, 25 Sep 2012 08:01:42 -0400 Message-ID: <1348574486.3881.43.camel@twins> Subject: Re: [PATCH 1/1] perf, Add support for Xeon-Phi PMU From: Peter Zijlstra To: Cyrill Gorcunov Cc: Vince Weaver , linux-kernel@vger.kernel.org, Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , eranian@gmail.com, "Meadows, Lawrence F" Date: Tue, 25 Sep 2012 14:01:26 +0200 In-Reply-To: <20120925114225.GF14490@moon> References: <1348572758.3881.24.camel@twins> <20120925114225.GF14490@moon> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.