From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752010Ab3JAPdV (ORCPT ); Tue, 1 Oct 2013 11:33:21 -0400 Received: from mail-ee0-f46.google.com ([74.125.83.46]:58631 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279Ab3JAPdO (ORCPT ); Tue, 1 Oct 2013 11:33:14 -0400 Date: Tue, 1 Oct 2013 17:33:09 +0200 From: Ingo Molnar To: David Ahern Cc: Namhyung Kim , Arnaldo Carvalho de Melo , 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: <20131001153309.GA1287@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524ADF84.4080801@gmail.com> 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 * 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: WARNING: The perf.data file's data size field is 0 which is unexpected. Was the 'perf record' command properly terminated? Thanks, Ingo