Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4513758pxf; Tue, 16 Mar 2021 15:56:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGSt9mVdFSP1kZVXm8JI5eqS3mo+pcgIOeuWF3G9fifB/yZOgxUxfGDuhb+VijOPZuMyr8 X-Received: by 2002:a17:906:d114:: with SMTP id b20mr31087492ejz.449.1615935415558; Tue, 16 Mar 2021 15:56:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615935415; cv=none; d=google.com; s=arc-20160816; b=Jfu7+wA3n2+Jbf5e9n7vduq8tmr4hA+uF1Ua096eTOUDi7/XGGzuhDuAZ2OpllUgiX LJJpGZtsQhWRvpHLMvUHDF1+7S7MNGxiVKqChmqkQYvwdas0ltocJn0Rv52akD4Kjxp6 BIB9+WG34dJUvU6R/jrwBIfJ2P/aT4XBpNAqEYS4w5+D7kx5Mpx0Gzer0rA+X4ibGhqy MldK5VpRyu00HCVu/UoyD1xG961advYwfTGQJAEtr2fd4J0XMn0twLETQRCQsq7LDHAC N0jHRynvW2q8fg8FA53Fpm7yLQJWrQBLD2nx0t8duEagPm/qC+4OrP3b+mnUP/c47rad Uybw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Nh7Hy/TLMrRCmo4qA5vxVkdmukdYdB2mSJ5uzKCm8PY=; b=P9EARk1j1ABMac8Aj4Fbz/+wy2sgjIr0hTQeDPHWw5mRjdov7R1kD3X+Upx1zw04Pe B903Ujs4WsPvydQxNcAJpLu8h3GPyeli7ItFZLa6J0tMcSUnrGcqy6UBcLxlN9fM8Izd dBggiET6GIfHatOt55icPxsAiLD4C/mBnsfOTQ10O6AtMcDEMN35/5v+5UvXr8nQluQ0 N9waQpB83JC6HCFYciN10NUdZZ9CgbajqE0Ej/QlPDqXmxi/GACszYoBxPfvHLp6jR+3 d2PWrGh0vWrTm0ebZgpdVCruuw8Xcicutn7EooM/Yn8Hxf043iY9dOL3Rw6EGjVNdrrn f9lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="J8F/4B3a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si15400644edv.199.2021.03.16.15.56.33; Tue, 16 Mar 2021 15:56:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="J8F/4B3a"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229870AbhCPVz2 (ORCPT + 99 others); Tue, 16 Mar 2021 17:55:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51795 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbhCPVzW (ORCPT ); Tue, 16 Mar 2021 17:55:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615931721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Nh7Hy/TLMrRCmo4qA5vxVkdmukdYdB2mSJ5uzKCm8PY=; b=J8F/4B3a9XtvRqkYxgFAzlZCwDEs+g9wIWwrGz2AvVrb2MnbRvm17+4SPsoqeVcZa7jST0 2Z3i7jhT0ZP31iP5b5j+wjHGap4TwEXwIsy0Y9mF+ZcKqNvDYg2VnUmjiZgO0ApllhSikD tnN/WdCP7/dk1CFcJ+4KFuqR0qfRuJs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-521-jsbX9TBDM_efgqK7Q4pU2g-1; Tue, 16 Mar 2021 17:55:19 -0400 X-MC-Unique: jsbX9TBDM_efgqK7Q4pU2g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9FC9F3E743; Tue, 16 Mar 2021 21:55:17 +0000 (UTC) Received: from krava (unknown [10.40.193.217]) by smtp.corp.redhat.com (Postfix) with SMTP id 7F3656A047; Tue, 16 Mar 2021 21:55:15 +0000 (UTC) Date: Tue, 16 Mar 2021 22:55:14 +0100 From: Jiri Olsa To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jin Yao , jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, Linux-kernel@vger.kernel.org, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH] perf stat: Align CSV output for summary mode Message-ID: References: <20210316072900.1739-1-yao.jin@linux.intel.com> <20210316163421.GQ203350@tassilo.jf.intel.com> <20210316200220.GS203350@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210316200220.GS203350@tassilo.jf.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 16, 2021 at 01:02:20PM -0700, Andi Kleen wrote: > On Tue, Mar 16, 2021 at 04:05:13PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Mar 16, 2021 at 09:34:21AM -0700, Andi Kleen escreveu: > > > > looks ok, but maybe make the option more related to CVS, like: > > > > > > > > --x-summary, --cvs-summary ...? > > > > > > Actually I don't think it should be a new option. I doubt > > > anyone could parse the previous mess. So just make it default > > > with -x > > > > In these cases I always fear that people are already parsing that mess > > by considering the summary lines to be the ones not starting with > > spaces, and now we go on and change it to be "better" by prefixing it > > with "summary" and... break existing scripts. > > I think it was just one version or so? > > FWIW perf has broken CSV output several times, I added workarounds > to toplev every time. Having a broken version for a short time > shouldn't be too bad. > > I actually had a workaround for this one, but it can parse either way. > > > > > Can we do this with a new option? > > > > I.e. like --cvs-summary? > > If you do it I would add an option for the old broken format > --i-want-broken-csv. But not require the option forever > just to get sane output. I like that.. also we'll find out how many people are actually parsing that ;-) jirka > > Or maybe only a perf config option. > > -Andi >