Received: by 10.223.185.116 with SMTP id b49csp113028wrg; Thu, 8 Mar 2018 13:53:29 -0800 (PST) X-Google-Smtp-Source: AG47ELtSZWeAzucPHHSLadJjhol690/zzByyNwsQ9hXqwLzA6ipM2Aiy7K8Tpk5RWVNRVMNB6v/e X-Received: by 2002:a17:902:5a88:: with SMTP id r8-v6mr26160088pli.426.1520546008915; Thu, 08 Mar 2018 13:53:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520546008; cv=none; d=google.com; s=arc-20160816; b=oRzQbs5GKrD0Z2WU9uUGqprALZq5yi1E9e5YmyCeRdcwLVFEpkubPCIeYmMQLKZYG+ k6i3yba8bO0rzU0/q7r6P9Qim+MEj2kOa4rYcVIQybhS+qcSn6yGXId+53PlJYnWGGka l/AZdgUeXE1jpsq2uP/zwjSKQRfxiSiq6GXOwTZxqLq72W6bhq608EiBrhSqdZLNLTmK jQlrrW4+hPjpUfD8SRUdXAMkc1RGuvjOPRxdbcOkSyMyUQQzy5fBS21aBZX7z7U32rAT Hw7PUtA/u8Y9dGgnroBoeCMwhVqO4zz0GNM40V+AwaYi/nCy2GPWlhfJ7U5kiygAoZlx lUNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hRsUP43+jsm4Me0It8zUwaA1Knmcg0xFgT3BGygub4k=; b=Ul5u84I9+nj5kP2UL/FYnFjlULe2bM3phdG+tU5ebBopGkUeB7CIPn464LGoOfjcd8 JcCqA4OCg6A13N6LssAmt2+1vrb8cNJt22lNzcTH+qNLhENxbh3teKJnJZCJx+mn7F62 3xV0aom/izXDUFKWsmvlwqe/9gmBOc/6x2dSH67Y2fyYW+JgXSGyG9kyHIW4xdx29Qih Zmfvrsp7AirwnuDAHWJKNOvdDpWcirZjZzaMiyUMJETbemXb3LCiv29csV3lLk2KkbQm GFSETPYR8/tzITSZx53+ZZx68fwPriRardjhuuOmGXYgjCB9uAeMW+sl0np6YFLpnwyZ m+rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@twitter.com header.s=google header.b=P/pLKa50; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=twitter.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v62si14357170pfi.156.2018.03.08.13.53.12; Thu, 08 Mar 2018 13:53:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@twitter.com header.s=google header.b=P/pLKa50; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=twitter.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750883AbeCHVwS (ORCPT + 99 others); Thu, 8 Mar 2018 16:52:18 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:37867 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbeCHVwR (ORCPT ); Thu, 8 Mar 2018 16:52:17 -0500 Received: by mail-wm0-f51.google.com with SMTP id 139so522279wmn.2 for ; Thu, 08 Mar 2018 13:52:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twitter.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hRsUP43+jsm4Me0It8zUwaA1Knmcg0xFgT3BGygub4k=; b=P/pLKa50ETgGA2Mf2QefA8npVIgSCIuNbYzYetfflk0h9PMB/13/sII3P6J5iGB6zR HkoYCE43sLm7auf1F7m6rqGPZ25sjKZvwRtXBl1k1ZhvU1o6tkJjEYmchXLZmPi9YZXj i9B6tHN/FU8df+G0XTa/i5I2sChdpQDyO0DAU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hRsUP43+jsm4Me0It8zUwaA1Knmcg0xFgT3BGygub4k=; b=LykX2eLwbGVWbqREcJR3oklqu+n2DmeXJK8Mg1s62Xcan9TZ09P6OWYEd1HAw+L8nC 6tYQWOmLFLaiDVwU4oAisxbYP8ljC7M8hYbuCel2Kva3AxuEIyj5ZJd1CH975V94LxCT fTpxwMZ2jNkvDxCk/iUiaKlTddRHlsY2BokTM1F6Wmctq6dvD0re8S3gp4UEdW+jlDB2 UwFzng84sLM7Yir7231t8AIc/j7uM+TUK0q/SXLgmvcmLThNmWCLFgWNtUdNMeBzU7Po X8K63IriaWV7v1DNdxl1AL865eKUtUfW9pX0Yc54FlQ3aSJKR68QWfqgkNgc5+ajQVt2 m+jg== X-Gm-Message-State: APf1xPBsxU/LUaloFbwB22qQ49Dtzn+zC95l3esyu1moZ7ut8NKaM575 lZGvmN5qKdIb+xbQL76VEG8SNoy+hg50DGLAu6wneg== X-Received: by 10.80.165.42 with SMTP id y39mr34438720edb.42.1520545935673; Thu, 08 Mar 2018 13:52:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.139.150 with HTTP; Thu, 8 Mar 2018 13:52:15 -0800 (PST) In-Reply-To: <20180307170411.GI25017@tassilo.jf.intel.com> References: <20180306064353.31930-1-xiyou.wangcong@gmail.com> <20180306170011.GD25017@tassilo.jf.intel.com> <20180306175320.GE25017@tassilo.jf.intel.com> <20180307170411.GI25017@tassilo.jf.intel.com> From: Ilya Pronin Date: Thu, 8 Mar 2018 13:52:15 -0800 Message-ID: Subject: Re: [PATCH] perf stat: fix cvs output format To: Andi Kleen Cc: Cong Wang , LKML , Arnaldo Carvalho de Melo , Jiri Olsa Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch merely eliminated those 2 unexpected fields. But from what I saw they were violating the assumption that all lines have the same number of fields. On Wed, Mar 7, 2018 at 9:04 AM, Andi Kleen wrote: > On Tue, Mar 06, 2018 at 12:31:03PM -0800, Ilya Pronin wrote: >> Speaking from the user's seat. An optional (not just empty) cgroup >> field is fine as long it consistently appears when requested with -G >> option. The problem with print_metric_csv() was that in the case of >> unsupported counters 2 additional empty fields in the output are >> completely unexpected and not documented anywhere. >> >> Andi, in the output example in your commit >> 92a61f6412d3a09d6462252a522fa79c9290f405 stalled-cycles-backend event >> has counter run time field, counter run time percentage field, empty >> metric value, empty metric unit, and then 2 other empty fields. Are >> they expected? If yes, what are they and why other events, e.g. > > No two extra empty fields are not expected. All lines should > have the same number of fields so that a tool that looks > at the first like can keep using the same number. > > But I don't think that was it what the patch fixed, or did I > misread it? > > -Andi -- Ilya