From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761777Ab2FEK2E (ORCPT ); Tue, 5 Jun 2012 06:28:04 -0400 Received: from casper.infradead.org ([85.118.1.10]:43184 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761760Ab2FEK2A convert rfc822-to-8bit (ORCPT ); Tue, 5 Jun 2012 06:28:00 -0400 Message-ID: <1338892071.28282.157.camel@twins> Subject: Re: [PATCH] perf: Fix intel shared extra msr allocation From: Peter Zijlstra To: Stephane Eranian Cc: "Yan, Zheng" , "Yan, Zheng" , linux-kernel@vger.kernel.org Date: Tue, 05 Jun 2012 12:27:51 +0200 In-Reply-To: References: <1338520856-21020-1-git-send-email-zheng.z.yan@intel.com> <1338891271.28282.155.camel@twins> 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-06-05 at 12:21 +0200, Stephane Eranian wrote: > I agree with the first part of the patch in intel_try_alt_er(), we > should not touch > the actual event struct. But I am still unclear about the reg->alloc part. reg->alloc is part of the actual event. Thing is, the patch is horridly ugly.. while I agree that changing event state isn't good, special casing all that code isn't good either. I was looking at cloning the events for validate_group() as well, but so far that's not turning out too pretty either.