From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754378Ab0BAM1K (ORCPT ); Mon, 1 Feb 2010 07:27:10 -0500 Received: from casper.infradead.org ([85.118.1.10]:54281 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751259Ab0BAM1J (ORCPT ); Mon, 1 Feb 2010 07:27:09 -0500 Subject: Re: [BUG] perf_events: ctx_flexible_sched_in() From: Peter Zijlstra To: Stephane Eranian Cc: eranian@gmail.com, linux-kernel@vger.kernel.org, mingo@elte.hu, paulus@samba.org, davem@davemloft.net, fweisbec@gmail.com, perfmon2-devel@lists.sf.net In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Mon, 01 Feb 2010 13:27:03 +0100 Message-ID: <1265027223.24455.145.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2010-02-01 at 13:20 +0100, Stephane Eranian wrote: > The function does not allow maximizing PMU usage because of > the way can_add_hw is managed. Basically, as soon as a group > fail to be scheduled in, then no other group can. I believe this > is not optimum. You need to skip the group that fails and keep > scanning the list. There may be other groups which can be > scheduled. Yeah, I saw that too, we need a new hw_ callback for that, or more structured error values out of ->enable that distinguish between this event won't fit and pmu full.