From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754726AbaJWPdc (ORCPT ); Thu, 23 Oct 2014 11:33:32 -0400 Received: from mail.kernel.org ([198.145.19.201]:35087 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753316AbaJWPdb (ORCPT ); Thu, 23 Oct 2014 11:33:31 -0400 Date: Thu, 23 Oct 2014 12:33:22 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Sukadev Bhattiprolu , Anton Blanchard , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf/powerpc: Cache the DWARF debug info Message-ID: <20141023153322.GH14687@kernel.org> References: <20141021185610.GA18366@us.ibm.com> <20141021190839.GA4160@kernel.org> <20141022000958.GB2228@us.ibm.com> <20141022081730.GB9860@krava.brq.redhat.com> <20141022174659.GA5119@us.ibm.com> <20141023133724.GE14687@kernel.org> <20141023141213.GA24079@krava.brq.redhat.com> <20141023142634.GF14687@kernel.org> <20141023151306.GA25215@krava.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141023151306.GA25215@krava.brq.redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Oct 23, 2014 at 05:13:06PM +0200, Jiri Olsa escreveu: > On Thu, Oct 23, 2014 at 11:26:34AM -0300, Arnaldo Carvalho de Melo wrote: > > That is why I thought it would be a compromise to put what he did, it > > would not make the existing situation that much worse, work needs to be > > done in this area :-\ > I think we just need to put that libdw handle into dso object > as I suggested above Isn't it there already? The patch does: +++ b/tools/perf/util/dso.h @@ -127,6 +127,7 @@ struct dso { const char *long_name; u16 long_name_len; u16 short_name_len; + void *dwfl; /* DWARF debug info */ ---------- What you want, on top of that, at a minimum, we somehow limit the number of simultaneously dwfl_begin()'ed DSOs, right? - Arnaldo