Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4483691imc; Mon, 25 Feb 2019 05:49:47 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaq0EM43Olj8vTtjkBwTfpbtQMODecy5daqCuSFGUPEvg4Iyov1lncFwwg/btp04Dk9SlA+ X-Received: by 2002:a65:46cf:: with SMTP id n15mr19368323pgr.187.1551102587428; Mon, 25 Feb 2019 05:49:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551102587; cv=none; d=google.com; s=arc-20160816; b=SiNeQ3ulR3p6CU+JNT5p1t7+faz12DRKCRe49uM0GjWrrhlpF/YYaqlCMg2aXzOpYc BdCxnw5zAcnGXtBP08+kyygoOr4rYAfZYHl1Q/Z6FCT7tuwBWB0Yn95J5RiPQ36Ih6LZ B90DS42Rwupxj0gc+2rklxKKOq7hACWpL6Si67xHsCEYAPaWk9SIDwd9P866rTzGNUNp CcbLpgVROR2IGSz3FAlWsb6JmceYX01kTLFi8ooqfcyO7hG7oAdzFEOmzSkN1vfjfGGO yWnZf2q7f6ztKSYoAiy0nglCpvtWEjqem0Mn5nE1RvDK9+CIwxHUErGjsIfHZRSuHGEb oYOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=zTiCMhkCXh3F8qxsPXKduCvZBchsPR7PvpcqdOf8rJg=; b=I2T9YoUAGFrJskKzikl5lYVbFGTLdqkXnrucNr2ztX54X+/bpBudOaqabWhBLuCyn5 /qWwPNqExDTgOfm0l/uy0wVA4TawRp3dTFjBQ0DnIr1ElmiOLrleDxIJUxeKaG1Oi1Uy Co55elU5295EbvJc5B5ESpxsWQtWlC3nLRnAICqDvAh3R+KmE6y/7WiICmux6WWDBgxW TLEPKOKh4r/aZpIa1f9taDDkFFxMbg1217lg9N+54StYC6e7/CYzfpRpeLGpEu7SjspX VTFsHhsBvRyGfz9pa7bJQx6pxW+ecmKGENPCo0vNvN3WSEaHm8EmkEpKwfitvWlMvqE+ X3+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N7Mf8a4G; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si9238035pgv.53.2019.02.25.05.49.31; Mon, 25 Feb 2019 05:49:47 -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=@gmail.com header.s=20161025 header.b=N7Mf8a4G; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726152AbfBYNtK (ORCPT + 99 others); Mon, 25 Feb 2019 08:49:10 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39051 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfBYNtK (ORCPT ); Mon, 25 Feb 2019 08:49:10 -0500 Received: by mail-qk1-f194.google.com with SMTP id x6so5280744qki.6; Mon, 25 Feb 2019 05:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zTiCMhkCXh3F8qxsPXKduCvZBchsPR7PvpcqdOf8rJg=; b=N7Mf8a4GSjmN8Kjk/wV0dkkdBODJkAER6qF/fPUTRy+XMnV9mMmbFhrXWW+uXcZQZM jg0hHVGZWcSQWGotU2eDaLVYrGXxPqSZ1D+QnLI4IPO6xYrDtrD/xXnbN5o6qlJ/143P PCz+xVEfqJSHDAA6vX4RKEN0e0r3zpdpZQa8t+5k2ojnuVTpPSO2tkl02FBQ3RJ6YM1K bDJ+R/VSeWmgpaKn4ra+t8WsW4qRQD9gsSX04HjMZuFLfC7n4xs4kcyJR1fQKAVd6Zud ZQAMNzRVpLfln6+UUJuWMg3OJq6DTOOmgT3oHW5TZuz5KnMFrCIQZ/BFIZRm7PkH0PC6 7+/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zTiCMhkCXh3F8qxsPXKduCvZBchsPR7PvpcqdOf8rJg=; b=rPL2oFBgtp3joIihDpLksN9ijiDzP3gcxZzChPofl440YHgNUcF0BcN7nZAgqufQlk g2/gQ7oJ8zlX7IXKju+/c6zJ0vfcTkgk4vClcKGCWsRRmU025nusmbaDs3q+U62/xEN2 J8on0wii4U7wwUz7KCTNr+vHZsUejBJm+EVkw65Pj8k4QmOSPSm6orVpGFsY4dJDndrS cICulQoPxU2TFQvpKZWf8FXcr1tZ4D5C0T6Nhg/Qlw7I+DQ2KHBzt4040qxqCcxrda9b mVN7/t0hxzknyDReeoNkd7FpMDJBuZcoEg9jn84Q3KFEe9YyTE2+77gcXA7Lf/XFvFIS qtXQ== X-Gm-Message-State: AHQUAuaWxCQLqOSXmohRSPGnjhgcSPdhNbudUB5yThC6NuHT53SQGfR1 klqkxil2xVh6l8Y2RA/Bxqo= X-Received: by 2002:a37:7b01:: with SMTP id w1mr12996644qkc.122.1551102548866; Mon, 25 Feb 2019 05:49:08 -0800 (PST) Received: from quaco.ghostprotocols.net ([190.15.121.82]) by smtp.gmail.com with ESMTPSA id 81sm5311069qkg.75.2019.02.25.05.49.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Feb 2019 05:49:07 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 6954A4039C; Mon, 25 Feb 2019 10:49:05 -0300 (-03) Date: Mon, 25 Feb 2019 10:49:05 -0300 To: Jiri Olsa Cc: Andi Kleen , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, namhyung@kernel.org, eranian@google.com, Andi Kleen Subject: Re: [PATCH 01/11] perf tools script: Handle missing fields with -F +.. Message-ID: <20190225134905.GB31136@kernel.org> References: <20190224153722.27020-1-andi@firstfloor.org> <20190224153722.27020-2-andi@firstfloor.org> <20190225125642.GM19795@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190225125642.GM19795@krava> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Feb 25, 2019 at 01:56:42PM +0100, Jiri Olsa escreveu: > On Sun, Feb 24, 2019 at 07:37:12AM -0800, Andi Kleen wrote: > > From: Andi Kleen > > > > When using -F + syntax to add a field the existing defaults > > are currently all marked user_set. This can cause errors when > > some field is missing in the perf.data > > > > This patch tracks the actually user set fields separately, > > so that we don't error out in this case. > > > > Before: > > > > % perf record true > > % perf script -F +metric > > Samples for 'cycles:ppp' event do not have CPU attribute set. Cannot print 'cpu' field. > > % > > > > After > > > > 5 perf record true > > % perf script -F +metric > > perf 28936 278636.237688: 1 cycles:ppp: ffffffff8117da99 perf_event_exec+0x59 (/lib/modules/4.20.0-odilo/build/vmlinux) > > ... > > % > > > > Signed-off-by: Andi Kleen > > nice, that one was annoying > > Acked-by: Jiri Olsa Applied. - Arnaldo