Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161637AbbKFONe (ORCPT ); Fri, 6 Nov 2015 09:13:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49265 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161377AbbKFONd (ORCPT ); Fri, 6 Nov 2015 09:13:33 -0500 Date: Fri, 6 Nov 2015 15:13:29 +0100 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , David Ahern , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Kan Liang Subject: Re: [PATCH 02/25] perf stat record: Add record command Message-ID: <20151106141329.GA21500@krava.redhat.com> References: <1446734469-11352-1-git-send-email-jolsa@kernel.org> <1446734469-11352-3-git-send-email-jolsa@kernel.org> <20151105205101.GY13236@kernel.org> <20151106082400.GA14928@krava.brq.redhat.com> <20151106133303.GB13236@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151106133303.GB13236@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1778 Lines: 50 On Fri, Nov 06, 2015 at 10:33:03AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > Humm, no, there are several things we should strive for, and > bisectability is one of the first, it requires smaller, self contained > patches, sure, but it also requires that at after applying each patch we > have sane output from the tools. > > So, after applying the patch above we get a message that says the file > is corrupted, and more than that, it even forgets to put a newline, > further breaking the output. well, because the 'perf stat record' creates just minimal perf.data and I'm adding data itself in later commits > > > [PATCH 02/25] perf stat record: Add record command > > - adds record command that creates empty perf.data > > > > [PATCH 03/25] perf stat record: Initialize record features > > - adds FEATURES initialization for stat data > > > > [PATCH 04/25] perf stat record: Synthesize stat record data > > - adds meta data > > > > [PATCH 05/25] perf stat record: Store events IDs in perf data file > > - adds event IDs > > ... > > > > > > you get proper warning right after patch 3/25, where > > we store STAT feature bit and properly check it when > > opening perf.data > > But that will be will _new_ tools, right? I'm talking about getting sane > output from _older_, unmodified, tools, like I demonstrated. new and old.. there's change to react on STAT feature during opening perf data file in 03/25 that fixes the issue.. I moved it from 'report' command patch earlier in the patchset jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/