Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751046Ab0KZLYI (ORCPT ); Fri, 26 Nov 2010 06:24:08 -0500 Received: from canuck.infradead.org ([134.117.69.58]:47135 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776Ab0KZLYH convert rfc822-to-8bit (ORCPT ); Fri, 26 Nov 2010 06:24:07 -0500 Subject: Re: [RFC PATCH 2/3 v2] perf: Implement Nehalem uncore pmu From: Peter Zijlstra To: Stephane Eranian Cc: Lin Ming , Lin Ming , Ingo Molnar , Andi Kleen , lkml , Frederic Weisbecker , Arjan van de Ven In-Reply-To: References: <1290340877.2245.124.camel@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Fri, 26 Nov 2010 12:24:12 +0100 Message-ID: <1290770652.2145.128.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 741 Lines: 19 On Fri, 2010-11-26 at 09:18 +0100, Stephane Eranian wrote: > In the perf_event model, given that any one of the 4 cores can be used > to program uncore events, you have no choice but to broadcast to all > 4 cores. Each has to demultiplex and figure out which of its counters > have overflowed. Not really, you can redirect all these events to the first online cpu of the node. You can re-write event->cpu in pmu::event_init(), and register cpu hotplug notifiers to migrate the state around. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/