Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1965076ybk; Mon, 11 May 2020 08:34:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJOom/TeTUb+ZHr7dmgwEdIdz9mkqrdmYHLOq+wrAsGd3V4YCOHxpL9eRGMJ0r5XKts3F+I X-Received: by 2002:a50:8b42:: with SMTP id l60mr13549428edl.55.1589211260531; Mon, 11 May 2020 08:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589211260; cv=none; d=google.com; s=arc-20160816; b=FUjD5npmWpCCMu5Uec36Bicm0PN6F1PFqcZXDaeD3+pWXPrVU8ne0PaHOfFNdziYnI c/UKO5smF8tQCuG1RAXmUj2qsWH0oXkxZ9PPAamUbjLq5qO84EoUpJNAlC9VMMvivfCG 3BaxtIV+ZqRBUxOHf4AJYNn91nJih58Lvda3JsSQRptWWIx94aeysGBTShZCHM5Xfhih +sqr3oUz0i5RmHaXwAClAXRV9hkD7OdoRjesK9UYpOyyLObJ+Xv/xgY3Y8Z5V3VgPmlt 8wrgqfxltBLBc6pWqwhhnL0obNyCVJEEL7USzDTi5FZqHWINmu4NxtAl5G33L9Oxz1Kn 6LpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=+gjGF9mp12XhJV3KRSM6BkPs9MzMOMU+7fWS7KbSk6c=; b=BUOyhDwoLnqCSA4E6RIBaJk2/mwO9UO5GpolqdyuboogE1CiA86cPD8DlnfLUeSZ8t 6FqBa4fDNX2h5N7OyeigeYf67jad/CEC54RYZvdjpHaINY+OTH0WoFRfPD6kgNXOUknM TgnA7+AidF6urt+ZRqOSNFXVNL/L7Wn6ImmGeKZ6jOgmpR22G74NUXVgdB/LJNIRb0V3 ucFBXDhDMlhWjODUg5IydABbIa5M3LyTic7n2w0NYraDAQGpTOfaDsfH3LDr1+z0uXKK 6FLn3awB+WOxyx/+GD/g9oDdUY5NJgqpxmpK3zLw6Z7fLhes+GmP/Y6moO8byeemXVtd ihNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uA5WUM7J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q13si5958434eds.115.2020.05.11.08.33.57; Mon, 11 May 2020 08:34:20 -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=@gmail.com header.s=20161025 header.b=uA5WUM7J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730189AbgEKPcM (ORCPT + 99 others); Mon, 11 May 2020 11:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728089AbgEKPcL (ORCPT ); Mon, 11 May 2020 11:32:11 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40DAFC061A0C; Mon, 11 May 2020 08:32:11 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id b1so7482635qtt.1; Mon, 11 May 2020 08:32:11 -0700 (PDT) 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; bh=+gjGF9mp12XhJV3KRSM6BkPs9MzMOMU+7fWS7KbSk6c=; b=uA5WUM7JoakLBUMWtuNg0OEr6VtC2JiLQM5dGwv32Qcy266pLaqj6MKljT8xqidwoI xbBwQZifKF9FDhyA0a+IIpi6u188Vnr/DiWTXwB39kU0rJfQyykKE+aFexdGzSa17186 B0pXJMndgJ27tQJVRmFy8fArFa8YSgoAypiiNT6FYE7i498VMYDEPrWoy8G7aROn0X6p tWoWEMqCnf5HmYc/wNK+WcV22LwPV27/H/gdI8KJeVKKImC+ptx8rFM/8AQ0jYApW0QW Ngq/yRDgGdG2DtUifvIrlvk3NcIBXNFOEmM2395fmhu447tANcEomjhAHCy4FfbOoR0V rN/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; bh=+gjGF9mp12XhJV3KRSM6BkPs9MzMOMU+7fWS7KbSk6c=; b=L5goYocNipRyiG5CrhO6hSn/RmE7izwFzgsASDSzYVDd5gL/rhFS74yJmg5uHW0/2r v1n+/5/gm1JLNt/GQ6Y8QnX04gr3Bex2ypmo7zsxc8YKFHhWZSTacFiEymwelOU0kglC 6FR6eN0W7/pOJ6UNL2wwZRGTV3QnyMVjCcTMekdg9d5TDDgcRYuv/7VpRBfpZsAMPQIg uM+ljSS7WbITNn7izB5Ieh2oR3bEyDCNUogXS35SOU1qqWzRWYlGgBG5jR8dSq3naLdQ fawGokZmcu62yjfYYl2IAiWrA453Vr8qO6UD0zI7KTEquOTXllkPZtg5n4RfLWDBFIr+ fgXw== X-Gm-Message-State: AGi0Pub94g5TCGbwahWc2noC98gEJTYRhEQXk4AzQlnYHNegrXlGkagS Km9NwL+loaWF0H49a3vyAOM= X-Received: by 2002:ac8:544e:: with SMTP id d14mr17602768qtq.283.1589211130365; Mon, 11 May 2020 08:32:10 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id h12sm2473011qte.31.2020.05.11.08.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 08:32:09 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id AF0EB40AFD; Mon, 11 May 2020 12:32:07 -0300 (-03) Date: Mon, 11 May 2020 12:32:07 -0300 To: Jiri Olsa Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , Kan Liang , Andi Kleen , Haiyan Song , Jin Yao , Song Liu , Ravi Bangoria , John Garry , Leo Yan , Adrian Hunter , Paul Clarke , linux-kernel@vger.kernel.org, kajoljain , linux-perf-users@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v4 00/12] perf metric fixes and test Message-ID: <20200511153207.GD28888@kernel.org> References: <20200501173333.227162-1-irogers@google.com> <20200507084445.GA2447905@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507084445.GA2447905@krava> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, May 07, 2020 at 10:44:45AM +0200, Jiri Olsa escreveu: > On Fri, May 01, 2020 at 10:33:21AM -0700, Ian Rogers wrote: > > Add a test that all perf metrics (for your architecture) are parsable > > with the simple expression parser. Attempt to parse all events in > > metrics but only fail if the metric is for the current CPU. Fix bugs > > in the expr parser, x86 and powerpc metrics. Improve debug messages > > around add PMU config term failures. > > > > v4 rebases after Kajol Jain's patches and fixes an asprintf warning. > > v3 adds parse event testing of ids and improves debug messages for add > > PMU. These messages are paticular visible with 'perf test 10 > > -vvv'. It moves the testing logic from tests/expr.c to > > tests/pmu-events.c as suggested by John Garry > > . > > 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. > > > > Ian Rogers (12): > > perf expr: unlimited escaped characters in a symbol > > perf metrics: fix parse errors in cascade lake metrics > > perf metrics: fix parse errors in skylake metrics > > perf expr: allow ',' to be an other token > > perf expr: increase max other > > perf expr: parse numbers as doubles > > perf expr: debug lex if debugging yacc > > perf metrics: fix parse errors in power8 metrics > > perf metrics: fix parse errors in power9 metrics > > perf expr: print a debug message for division by zero > > heya, > could we please get the 1st 10 patches in? they are important, > and let's not block them with new versions for patches 11/12 > > Acked-by: Jiri Olsa The first ten patches are in, can we go with what Ian suggested for the last two patches? - Arnaldo > thanks, > jirka > > > perf parse-events: expand add PMU error/verbose messages > > perf test: improve pmu event metric testing > > > > tools/perf/arch/x86/util/intel-pt.c | 32 ++-- > > .../arch/powerpc/power8/metrics.json | 2 +- > > .../arch/powerpc/power9/metrics.json | 2 +- > > .../arch/x86/cascadelakex/clx-metrics.json | 10 +- > > .../arch/x86/skylakex/skx-metrics.json | 4 +- > > tools/perf/tests/builtin-test.c | 5 + > > tools/perf/tests/expr.c | 1 + > > tools/perf/tests/pmu-events.c | 156 +++++++++++++++++- > > tools/perf/tests/pmu.c | 4 +- > > tools/perf/tests/tests.h | 2 + > > tools/perf/util/expr.c | 1 + > > tools/perf/util/expr.h | 2 +- > > tools/perf/util/expr.l | 16 +- > > tools/perf/util/expr.y | 16 +- > > tools/perf/util/parse-events.c | 29 +++- > > tools/perf/util/pmu.c | 33 ++-- > > tools/perf/util/pmu.h | 2 +- > > 17 files changed, 262 insertions(+), 55 deletions(-) > > > > -- > > 2.26.2.526.g744177e7f7-goog > > > -- - Arnaldo