From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540Ab3JASGO (ORCPT ); Tue, 1 Oct 2013 14:06:14 -0400 Received: from mail-ea0-f172.google.com ([209.85.215.172]:37269 "EHLO mail-ea0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184Ab3JASGM (ORCPT ); Tue, 1 Oct 2013 14:06:12 -0400 Date: Tue, 1 Oct 2013 20:06:09 +0200 From: Ingo Molnar To: Arnaldo Carvalho de Melo Cc: David Ahern , Namhyung Kim , Peter Zijlstra , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa , Sonny Rao Subject: Re: [PATCH] perf session: Fix infinite loop on invalid perf.data file Message-ID: <20131001180609.GB8998@gmail.com> References: <1380529188-27193-1-git-send-email-namhyung@kernel.org> <20131001071646.GA20023@gmail.com> <524ACD2A.7040902@gmail.com> <20131001142154.GA31298@gmail.com> <524ADF84.4080801@gmail.com> <20131001153309.GA1287@gmail.com> <20131001165437.GF2920@ghostprotocols.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131001165437.GF2920@ghostprotocols.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 01, 2013 at 05:33:09PM +0200, Ingo Molnar escreveu: > > > > * David Ahern wrote: > > > > > On 10/1/13 8:21 AM, Ingo Molnar wrote: > > > >But if I understood it correctly this particular message could trigger for > > > >regular users of perf as well, of the perf record is terminated in some > > > >unusual fashion. Regular users might not have the perf code handy (and > > > >might not know about git grep either). > > > > > > This is the case I was referring to -- normal users don't care about > > > the code reference, hence the more specific question about how the > > > perf-record session ended. > > > > Hm, what do you call 'code reference'? > > > > The message I suggested is: > > > > WARNING: perf/header: Data size is 0. Was the 'perf record' command properly terminated? > > > > I didn't intend 'perf/header' to be a code reference - it wanted to refer > > to the perf.data header. Maybe that should be formulated in a less > > confusing manner? Something like: > > I liked this last one: > > > WARNING: The perf.data file's data size field is 0 which is unexpected. > > Was the 'perf record' command properly terminated? > > Can I patch that up into Namhyung's latest patch? Sure, feel free! Thanks, Ingo