From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnaldo Carvalho de Melo Subject: Re: perf: commit 55b4462 causes perf record to hang Date: Tue, 11 Jan 2011 09:35:02 -0200 Message-ID: <20110111113502.GC20234@ghostprotocols.net> References: <4D2B544F.1050803@cisco.com> <20110110200032.GA19703@ghostprotocols.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:44239 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751491Ab1AKLfJ (ORCPT ); Tue, 11 Jan 2011 06:35:09 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-perf-users-owner@vger.kernel.org List-ID: To: Thomas Gleixner Cc: David Ahern , Ingo Molnar , Peter Zijlstra , tzanussi@gmail.com, Paul Mackerras , imunsie@au1.ibm.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Em Tue, Jan 11, 2011 at 09:28:25AM +0100, Thomas Gleixner escreveu: > On Mon, 10 Jan 2011, Arnaldo Carvalho de Melo wrote: > > Can you try with this patch, not reverting tglx's patch? > > > > diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c > > index 6fb4694..313dac2 100644 > > --- a/tools/perf/util/session.c > > +++ b/tools/perf/util/session.c > > @@ -1007,7 +1007,7 @@ more: > > if (size == 0) > > size = 8; > > > > - if (head + event->header.size >= mmap_size) { > > + if (head + event->header.size > mmap_size) { > > if (mmaps[map_idx]) { > > munmap(mmaps[map_idx], mmap_size); > > mmaps[map_idx] = NULL; > > > > /me feels stupid I feel like that sometimes too, probably more often than you :-P - Arnaldo