From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754542AbbCaO0Z (ORCPT ); Tue, 31 Mar 2015 10:26:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60968 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753549AbbCaO0J (ORCPT ); Tue, 31 Mar 2015 10:26:09 -0400 Date: Tue, 31 Mar 2015 16:25:57 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: David Ahern , Stephane Eranian , Jiri Olsa , LKML Subject: Re: [BUG] perf script segfault Message-ID: <20150331142557.GB31798@krava.brq.redhat.com> References: <5519D376.6010509@gmail.com> <20150330234533.GA9438@kernel.org> <20150331125920.GE9438@kernel.org> <20150331135801.GB3777@krava.brq.redhat.com> <20150331140216.GG9438@kernel.org> <20150331141326.GH9438@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150331141326.GH9438@kernel.org> 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 On Tue, Mar 31, 2015 at 11:13:26AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > And setting tool->ordered_events to false; > > What fails is perf_evlist__sample_id_all(session->evlist), I went as far as > looking at the perf_evlist__sample_id_all call that will find a first evsel, > with all its fields zeroed, i.e. at some point it finds out it is a pipe (perf > script < perf.data) and seems to not read the perf_event_attr attributes, etc, > but I need to dig deeper here to figure out this and why is it that in that > case we end with two 'perf script' processes when I think it should be just one, etc. > > So, to keep the assumptions in place I'll keep my patch, the one that David > tested, and redo yours on top, looking as well at ways to use what is in > perf_session, should provide a patch soon. I was just replying to the poluted ordered_events .. I haven't tracked the segfault totaly.. we can change that after your fix of course ;-) jirka