Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp822328ybz; Wed, 22 Apr 2020 08:35:53 -0700 (PDT) X-Google-Smtp-Source: APiQypK70pVzDadlLm8NRLWty0drGraIli1UKxrjaspKZwUUXR2LCxIgcyD8QAFx7ZAtjEeueDOt X-Received: by 2002:a17:906:298f:: with SMTP id x15mr26685908eje.380.1587569752310; Wed, 22 Apr 2020 08:35:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587569752; cv=none; d=google.com; s=arc-20160816; b=U8Wi/PtlhfIG0ocNS/oeoaILSOqdV2BSjIu/0LB1VgU4b5OExo4URZUAOs6Ye5Txvy XUEo5n2SPf9NQxlV9ur6dUSlZkdkYjfGfHUXwJlYKY4qH5J1ucihcsMcjPeNb9qtmurG kps+lOIuDM6lSjrCeOsmY06fR/0K5ckSmSIV7KgDwd5PHZqs8ccKpkK196EKn972l7Nw WxVhbN2XVyo7gxt875Y0vYIkvBvUsf1Ohx4lX3D8KWC3kp1QqD7MRHNdROIlf1Fo6KqC c7XaRZ98aQqO+lwbte6n14DNxJnoGbPbr/IbNwHs+1A1xw3zZQliOTGVFJ7teHyH1COa 9HoA== 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=0swt+GeZSXW6Eflw++OF9bLRU7Pp5VCRQPX3j3z34UQ=; b=h+mEIWff1UudCuEMtgp2Tds9UqEWTR5eudvhauewXiNxNjUUhlMr0TUeXWLRGzu3T3 Z9AIV0ztFbHYgUcg3X4SLH9ff7S3D0KnMiiYTEAaMh4v29HH5MoO8xi5crJs0uD/vCz8 efk/A0UvQgX+NwJlNFqzGiRLNCckpo0HY3h1Z2arOMJLdYwdp5w5K1uUFMn0dDRB0sLR c8+uT138sdIymrp8VydBjQsjHeUUEBOw4cTFu45nE0uqeWEsrXGDCGONZdDHe8BDDh0f IYvGWJY7O9s/QyJOdJGoh2jJ3+iO9jcxB2ciHJa3cRHDlfI/UPmLEysntS6t1cffWhRt 3lMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=vx6ksF3h; 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 dg8si2328387edb.548.2020.04.22.08.35.27; Wed, 22 Apr 2020 08:35:52 -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=vx6ksF3h; 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 S1726405AbgDVPeR (ORCPT + 99 others); Wed, 22 Apr 2020 11:34:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbgDVPeQ (ORCPT ); Wed, 22 Apr 2020 11:34:16 -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 707EFC03C1AA for ; Wed, 22 Apr 2020 08:34:15 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id o139so1370260ybc.11 for ; Wed, 22 Apr 2020 08:34:15 -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=0swt+GeZSXW6Eflw++OF9bLRU7Pp5VCRQPX3j3z34UQ=; b=vx6ksF3hk5yh5M7mF0Mp+4K+xF/3TgLsEW6adSFK8R3F+l1DWxyl/+b6UDRlYvRKCl CAS/DrfANcNdkR8KsrMtGXt2ego+uLPunneqXzWSJgxW67jl/adIfR1KhWUbZSN9kuYj nNGtZc0aQR71uiqClRR7ho5JTvAZOwHH4ULND9p2NaIWBTAugbwq95rROIBdUiaxkXlp jf5XVQ3M9AL6MoJWdGHMFaHrxn5sUBlH9hF9PUkTmkn1XISq3HlIHZ7293R800zK0Xrm SS1JH1yxfsL/6xpx9kQncVvh2HgyABvW8Cn0xOAWTEiuvhkEbbS3zwA3kHP4xigvWxEm uEhw== 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=0swt+GeZSXW6Eflw++OF9bLRU7Pp5VCRQPX3j3z34UQ=; b=JUlVrtacUFw5/Cdh8nPqgwabUgMvcamOWTyorWWRuM4Gjuva2En+RqQy6Jc9zlgvMt HvYuhCR3bvGpi++FQuLCF8SaVWu6oM/Z9ya4Lb9Pl7BTMb26DvsnoQK1ox8cIC9gdw7q wRbLgV+zOpdQRgxmt5hdeZDg6FaWx+wJDj7SnFyZHNUWairWXwbGh9PwBs6t/g9mJLhN IB5q8BQTnicr91jRfFODbIJcK8MG5tfel+ZM1xJ8MWWIccQUmTLd6QSIUuLXFwY4jDbw G3SdGndvQSglnx9NKtOJ7VxYXU1kqve0d1bMYQSOyzCc0OHObmXkVpgkuH61bXlrKHz+ dxzw== X-Gm-Message-State: AGi0PubN3eQd/TnoZjV4bzFqPFQDL4EIPgWeVOuWF11AyT2NT1DOX9JY hn7VA5x9jzx3u7/pzJALa1mavxGByU3dFtp8GTLigg== X-Received: by 2002:a25:4443:: with SMTP id r64mr35953653yba.41.1587569654285; Wed, 22 Apr 2020 08:34:14 -0700 (PDT) MIME-Version: 1.0 References: <20200422074809.160248-1-irogers@google.com> <20200422074809.160248-3-irogers@google.com> <20200422143840.GJ608746@tassilo.jf.intel.com> In-Reply-To: <20200422143840.GJ608746@tassilo.jf.intel.com> From: Ian Rogers Date: Wed, 22 Apr 2020 08:34:02 -0700 Message-ID: Subject: Re: [PATCH 2/8] perf metrics: fix parse errors in cascade lake metrics To: Andi Kleen Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Kan Liang , Haiyan Song , Jin Yao , Ravi Bangoria , John Garry , Leo Yan , Adrian Hunter , 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 Wed, Apr 22, 2020 at 7:38 AM Andi Kleen wrote: > > On Wed, Apr 22, 2020 at 12:48:03AM -0700, Ian Rogers wrote: > > Remove over escaping with \\. > > Remove extraneous if 1 if 0 == 1 else 0 else 0. > > So where do these parse errors happen exactly? Some earlier > patches introduced them as regressions? I'll work to track down a Fixes tag. I can repro the Skylakex errors without the test in this series, by doing: $ perf stat -M DRAM_Read_Latency sleep 1 Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cha/event=0x36\,uma sk=0x21/). /bin/dmesg | grep -i perf may provide additional information. This was just the escaping issue. I'm less clear on the other cascade lake issue, and it is a bit more work for me to test on cascade lake. What is "if 1 if 0 == 1 else 0 else 0" trying to do? Perhaps hunting for the Fixes will let me know, but it looks like a copy-paste error. > The original metrics worked without parse errors as far as I know. The skylake issue above repros on 5.2.17 and so it seems like it is broken for a while. The test in this series will prevent this in the future, but without this patch that test fails. > If it fixes something earlier it would need Fixes: tags. Working on it. Thanks for the input! Ian > -Andi