Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1876878ybz; Thu, 23 Apr 2020 07:34:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKTuhcolB+faq67hDHxzcYblMPIe6nvB7dehgKZSevGGb775zEmpstF3Ym1uEivFOkoz5Xc X-Received: by 2002:a17:906:af59:: with SMTP id ly25mr2925054ejb.65.1587652464538; Thu, 23 Apr 2020 07:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587652464; cv=none; d=google.com; s=arc-20160816; b=bsiOl530qp48Z1aIaOyUzlX4OZXbvWKOZHugrdBV1B4v9H3zoz97dg4g7bLtyXTtRl qvQfUsLwmVFz1a67Do/GBwQ7XriESYIyxaGqF+DqYDuALlM0aImqGy8dfKEcCEla+42g tlf7V5fRpyZV1W3Gnjg6Em0a9/4xTOdduVcXbNXY8JerTRMZ/B35VEHJYTZtD5y6rDxd AVZQnmy9bDT0BQ55vsiBN/toncbAgPj/Yzuy5lOvbBWJja7a21q/hfOwQr2NRnemwW9F KIB13vG3GaBnXiJwBgIZTSRKTl2JuAldb7p2lg/uWKIiAgYQpuLK2CpvB3+51a+OIsnk rmNw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=w7Pl1PwnvbMpR0U57xizz7g55/sueu6YZnbMx+knRbQ=; b=q0DisZmQDBObwUqUADehGEVjZMLxHL2B7ouYwfuxuz/08HGtMB2aZSJxRx2zY0YQnU Lu30cs7XPMN7ajty2+F6rCYfl4AU9L2sqasq0R/baQe5Y+OKUxeGwOVgpG90RySHWUx7 Nf4MCNbMh27Ng0Q8GBmYLl9bFLlLeQTPRTvdX70ZQoYN7iejdEJyoR2fqxBtKBGKHFKF /Mcja/O+mTXdHmBBbkx1cY7/b/Q10ixJjn7rYM61ThQnaLKVXijLCjNMd6Y4Ktf+GkDI 9n1I1gyKutDT5ZdEa9Vf89sgSQI7OAV0T30hd9UGr+uNC2xfiy+I1bUq+ncFhOqDIy8o DiUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VBjnWT1t; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si1273069ejn.246.2020.04.23.07.34.00; Thu, 23 Apr 2020 07:34:24 -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=@google.com header.s=20161025 header.b=VBjnWT1t; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728257AbgDWObj (ORCPT + 99 others); Thu, 23 Apr 2020 10:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728220AbgDWObi (ORCPT ); Thu, 23 Apr 2020 10:31:38 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0730DC08E934 for ; Thu, 23 Apr 2020 07:31:38 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id n188so3251096ybc.3 for ; Thu, 23 Apr 2020 07:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w7Pl1PwnvbMpR0U57xizz7g55/sueu6YZnbMx+knRbQ=; b=VBjnWT1twFFJ2rUJDqslmecuNXGR2e5mZpmJ02LzDFSHU9fHsoKhZiRhkU37W0fdos wlFEVrtTMC83E7S6g8odI2dp8NIBmaH5N3bOa6UHTjO8LLw0ImCXix2PxL34bXECbHFc MoOc4WGMsFCllWejjaObKYjqEKHvhrM0mvpC3v/hxIdeWBire91gTtpHJS0FZusixbqO S/4V5uACp7iYqFhBgx190DfkkToyP/Sif/leydgJCgjrcnxFMKLvliHN8WUuznDeoqkG Fk3/ItqvH78DDosvsKLsbUvnGaZw0Ih2ZVAjQqa+AnpwCLK+5MKB5owS/UzfnBRkINp+ OL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w7Pl1PwnvbMpR0U57xizz7g55/sueu6YZnbMx+knRbQ=; b=I5z3bZZts7u4YzzFIS6QmRPhyj4fnqBn+bsURB4hfL3W26kxf/0UsYHXRY0YYLYnbc wfEQZ8tyGvkj3x51bE5qJtkS3YqiPdITxLlGSzMkFIP6JvuGI2y6Nw6/3Y0ABSqPhUB7 hZawpPv2lBouk4RF/lMvnNpsyTYhkcK5rZfH9QVXoJHwL7IyRlnOt+akc30Wx3EYFOQU Gv6+PS3DMnbLGoNFDvH3dqPRmkcYn8EejJl63OA8cfjyTmCurCqWkIWhAQsrc2ctGshj LloW5XVW4A65+ThLb4xMbQNieMRMJiGcGPaGMSdLYpX64Z3killlgwYrF2ZE2gKBIamA jDDw== X-Gm-Message-State: AGi0PuYJWQYfvF6jHO7v3F57riI7yxLGLELUFt2WGH21ewqVJQPPYObU KCgF+cQZyWqojFT+MgstnKqtSHVCqv9z2xsMhdKcqQ== X-Received: by 2002:a25:d688:: with SMTP id n130mr6700712ybg.324.1587652296940; Thu, 23 Apr 2020 07:31:36 -0700 (PDT) MIME-Version: 1.0 References: <20200422220430.254014-1-irogers@google.com> <20200423112825.GD1136647@krava> <1dd2e280-d711-2dda-61b1-b81609af6467@linux.intel.com> <20200423140249.GA1199027@krava> In-Reply-To: <20200423140249.GA1199027@krava> From: Ian Rogers Date: Thu, 23 Apr 2020 07:31:25 -0700 Message-ID: Subject: Re: [PATCH v2 00/11] perf metric fixes and test To: Jiri Olsa Cc: "Jin, Yao" , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , Kan Liang , Andi Kleen , Haiyan Song , Song Liu , Ravi Bangoria , John Garry , Leo Yan , Adrian Hunter , Paul Clarke , LKML , linux-perf-users , Stephane Eranian 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 On Thu, Apr 23, 2020 at 7:03 AM Jiri Olsa wrote: > > On Thu, Apr 23, 2020 at 09:44:24PM +0800, Jin, Yao wrote: > > Hi Jiri, > > > > On 4/23/2020 7:28 PM, Jiri Olsa wrote: > > > On Wed, Apr 22, 2020 at 03:04:19PM -0700, Ian Rogers wrote: > > > > Add a test that all perf metrics (for your architecture) are > > > > parsable. Fix bugs in the expr parser and in x86 metrics. Untested on > > > > architectures other than x86. > > > > > > > > v2 adds Fixes tags to commit messages for when broken metrics were > > > > first added. Adds a debug warning for division by zero in expr, and > > > > adds a workaround for id values in the expr test necessary for > > > > powerpc. It also fixes broken power8 and power9 metrics. > > > > > > looks good to me > > > > > > Jin Yao, is there a metric that's not working for you with this patchset > > > applied? > > > > > > thanks, > > > jirka > > > > > > > Let me look for a CLX for testing, but maybe need some time. > > > > BTW, suppose this patchset can work well, does it mean we will change the > > json file format in future? > > > > For example, > > > > before: > > cha@event\\=0x36\\\\\\ > > > > after: > > cha@event\\=0x36\\ > > > > "\\\\" are removed. > > > > If so, we need to change our event generation script. > > ok, maybe I got the wrong idea that the extra \\\\ were just > superfluous, what was the actual error there? and what's the > reason for that many '\' in there? I believe they are superfluous and break even before the flex change. I commented on it here with a reproduction of a parse events error on skylake: https://lore.kernel.org/lkml/CAP-5=fUnWAycQehCJ9=btquV2c3DVDX+tTEc85H8py9Kfehq4w@mail.gmail.com/ Fixing the script that generates this would be great! With the test landed it should be much harder for this to be broken in the future. Thanks, Ian > jirka >