Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754139AbYLIRft (ORCPT ); Tue, 9 Dec 2008 12:35:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753281AbYLIRfk (ORCPT ); Tue, 9 Dec 2008 12:35:40 -0500 Received: from zcars04f.nortel.com ([47.129.242.57]:65169 "EHLO zcars04f.nortel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751905AbYLIRfj (ORCPT ); Tue, 9 Dec 2008 12:35:39 -0500 Message-ID: <493EAC45.4050704@nortel.com> Date: Tue, 09 Dec 2008 11:35:01 -0600 From: "Chris Friesen" User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: Will Newton CC: Ingo Molnar , eranian@gmail.com, linux-kernel@vger.kernel.org, Thomas Gleixner , linux-arch@vger.kernel.org, Andrew Morton , Eric Dumazet , Robert Richter , Arjan van de Veen , Peter Anvin , Peter Zijlstra , Steven Rostedt , David Miller , Paul Mackerras , Paolo Ciarrocchi Subject: Re: [patch] Performance Counters for Linux, v2 References: <20081208012211.GA23106@elte.hu> <7c86c4470812082237ne58c814s7218cc663f3b49e9@mail.gmail.com> <20081209134636.GA1926@elte.hu> <87a5b0800812090846h396523a0kdb2d1ca4b4781851@mail.gmail.com> In-Reply-To: <87a5b0800812090846h396523a0kdb2d1ca4b4781851@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Dec 2008 17:35:04.0554 (UTC) FILETIME=[789B5CA0:01C95A24] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 906 Lines: 21 Will Newton wrote: > On Tue, Dec 9, 2008 at 1:46 PM, Ingo Molnar wrote: > >> Firstly, sampling "at 1msec intervals" or any fixed period is a _very_ >> wrong mindset - and cross-sampling counters is a similarly wrong mindset. > > If your hardware does not interrupt on overflow I don't think you have > any choice in the matter. I know such hardware is less than ideal but > it exists so it should be supported. I think you could still set up the counters as Ingo describes and then sample the counters (as opposed to the program) at a suitable interval (chosen such that the counters won't overflow more than once between samples). Chris -- 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/