Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757350AbYLECdS (ORCPT ); Thu, 4 Dec 2008 21:33:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754919AbYLECdD (ORCPT ); Thu, 4 Dec 2008 21:33:03 -0500 Received: from one.firstfloor.org ([213.235.205.2]:54283 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754806AbYLECdA (ORCPT ); Thu, 4 Dec 2008 21:33:00 -0500 To: Paul Mackerras Cc: Thomas Gleixner , LKML , linux-arch@vger.kernel.org, Andrew Morton , Ingo Molnar , Stephane Eranian , Eric Dumazet , Robert Richter , Arjan van de Veen , Peter Anvin , Peter Zijlstra , Steven Rostedt , David Miller Subject: Re: [patch 2/3] performance counters: documentation From: Andi Kleen References: <20081204225345.654705757@linutronix.de> <20081204230228.557959174@linutronix.de> <18744.30427.440468.829807@cargo.ozlabs.ibm.com> Date: Fri, 05 Dec 2008 03:33:13 +0100 In-Reply-To: <18744.30427.440468.829807@cargo.ozlabs.ibm.com> (Paul Mackerras's message of "Fri, 5 Dec 2008 11:33:31 +1100") Message-ID: <87myfbwdue.fsf@basil.nowhere.org> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1092 Lines: 26 Paul Mackerras writes: >> + >> +[ Note: more hw_event_types are supported as well, but they are CPU >> + specific and are enumerated via /sys on a per CPU basis. Raw hw event >> + types can be passed in as negative numbers. For example, to count >> + "External bus cycles while bus lock signal asserted" events on Intel >> + Core CPUs, pass in a -0x4064 event type value. ] > > This is going to be a huge problem, at least on powerpc, because it > means that the kernel will have to know which events can be counted on > which counters and what values need to be put in the control registers > to select them. P4 has similar problems, and to some extent there's also the same problem on newer Intel CPUs (e.g. with fixed counters and if you consider PEBS which has some special restrictions) -Andi -- ak@linux.intel.com -- 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/