Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp544088ybj; Thu, 7 May 2020 01:46:52 -0700 (PDT) X-Google-Smtp-Source: APiQypL5LTVhLVeRUIu8bOXiwrxFddEfz4zf7S+3lovZ5cDjVvJOvv7I8kX9ZByuMFWtbLku9yu0 X-Received: by 2002:a17:907:6fc:: with SMTP id yh28mr11309300ejb.326.1588841212198; Thu, 07 May 2020 01:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588841212; cv=none; d=google.com; s=arc-20160816; b=nrcDfnGGGl7QK8iI3aIX/kZMkW+9y+3M80HlFQKBKdwyokil7Bn8XoO20KR9erLMmH HEzOQaUf8cQNXOxZ4O1nx1F5teiIixuILcclpYPpiqWjeyFRuNC7oGvbIor35v/ngCxb UZeS3MRoH4BouZaF2o6rSvdMOWALsWaZo+Wo9yeuJDVordJFGVvD5h0Xe6Qb5R3YtPOe AS8Yj54iBpFxk5CpB3KUCPx+0JPh3eP/D9zT9SvLNcgIaWm5UyyrHMYFfpXwHedctECv 0PHgFTDwgVIi+5aXvAYbZevBsymcUE0CuHTtLfsaPCf5oW0+SeM1nKvzTUKu6MsX53Sr ZcCQ== 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:from:date :dkim-signature; bh=/umoOuyurZvbQ0tpeh5y84hH029f3a+NjnlYx1uMWkA=; b=l9jfPDCHWEfF257qd+22I8aXldbwb8+vDKmT4oBEB0JY1tgkV+ACYU27xQORMsFttj jvTMHfnr/CU9ro8KNkvrC0b9bRgHg1aPvka2ba5ZOYhBGudV5fHUJbjUgDjJWIxbQcST 1kcuhc0DJmhlnUFU5BQl9sUOL0ygzh0rAcU+JViYO3uiGOJ99J/mNMiQp34VABb3Kv62 MSOTR30FglAIbbntO6PafY4PLy4FE82DLYfRsIPxvypgZrJg2/y8VZxZheVcqEDw+bO0 hsCTy5xmiNEKr8csBABb1StVJwQwPfg0H9ptZPDQDPqVmMsIonSeUIATOQSL5mEUhoU5 qivg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eUEGfrAc; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si2909178eju.300.2020.05.07.01.46.28; Thu, 07 May 2020 01:46: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=@redhat.com header.s=mimecast20190719 header.b=eUEGfrAc; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726509AbgEGIpD (ORCPT + 99 others); Thu, 7 May 2020 04:45:03 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:35524 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725809AbgEGIpD (ORCPT ); Thu, 7 May 2020 04:45:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588841101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/umoOuyurZvbQ0tpeh5y84hH029f3a+NjnlYx1uMWkA=; b=eUEGfrAcdaSntotvnXK+Ln7bBw9+1JsG6RXhnF7oTHvC2NhH01mLYleX0+HokzKlW+d3zk 1P/GHoObUJMeEYKv5VRNmkdurO2LRjokBdFVssKxnibWTQQbOdRQJTto4cq1znUld1RS8D wO2+RzZ2DiRlSye/K+CLyRWPXTxcXHw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-465-Pd0YO6rwPNSV-eDMcx6OgA-1; Thu, 07 May 2020 04:44:59 -0400 X-MC-Unique: Pd0YO6rwPNSV-eDMcx6OgA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D970545F; Thu, 7 May 2020 08:44:56 +0000 (UTC) Received: from krava (unknown [10.40.194.212]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A6C79707AE; Thu, 7 May 2020 08:44:48 +0000 (UTC) Date: Thu, 7 May 2020 10:44:45 +0200 From: Jiri Olsa To: Ian Rogers , Arnaldo Carvalho de Melo Cc: 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: <20200507084445.GA2447905@krava> References: <20200501173333.227162-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501173333.227162-1-irogers@google.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 >