From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757981Ab0BDAD3 (ORCPT ); Wed, 3 Feb 2010 19:03:29 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:39476 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755516Ab0BDAD2 (ORCPT ); Wed, 3 Feb 2010 19:03:28 -0500 Subject: Re: [RFC][PATCH] perf_events, x86: PEBS support From: Peter Zijlstra To: Stephane Eranian Cc: Ingo Molnar , Paul Mackerras , "Metzger, Markus T" , lkml , Robert Richter , "David S. Miller" , Jamie Iles , Paul Mundt , Arjan van de Ven , "H. Peter Anvin" , perfmon2-devel@lists.sf.net In-Reply-To: References: <1265129772.24455.329.camel@laptop> <20100202182653.GB19320@elte.hu> <1265135588.24455.350.camel@laptop> <1265205361.24455.533.camel@laptop> <1265206784.24455.568.camel@laptop> <1265208012.24455.592.camel@laptop> <1265241010.24455.1627.camel@laptop> Content-Type: text/plain; charset="UTF-8" Date: Thu, 04 Feb 2010 01:03:13 +0100 Message-ID: <1265241793.24455.1647.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 Thu, 2010-02-04 at 00:51 +0100, Stephane Eranian wrote: > On Thu, Feb 4, 2010 at 12:50 AM, Peter Zijlstra wrote: > > On Wed, 2010-02-03 at 15:40 +0100, Peter Zijlstra wrote: > >> > >> If only they would reset the counter on overflow instead of on record, > >> that would solve quite a few issues I imagine. > > > > So I tried enabling the regular PMC overflow interrupt and reprogramming > > the counter from that, but touching the counter seems to destroy the > > PEBS assist, so much for that idea. > > > Yes, you have to leave the INT bit off, otherwise you get an > interrupt for each overflow, thus you lose the buffer advantage. Well sure, but that's not the point. I was thinking that if we need to do single event pebs anyway, we might as well try to reprogram on the PMC overflow interrupt instead of on the PEBS overflow and curb some of that drift. Also, it makes keeping the event count value a lot easier. But alas.