Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1012693ybs; Mon, 25 May 2020 05:10:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVOu164mp9ubDimqg4M0+h3vRJ1J6TUqzJK08ZHE478IuNUBP4Lt9UdRLJzrBFr8jBKk25 X-Received: by 2002:a17:906:ce36:: with SMTP id sd22mr17965223ejb.94.1590408649167; Mon, 25 May 2020 05:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590408649; cv=none; d=google.com; s=arc-20160816; b=iEOL4akrrNv3XPe+4dAbgoWFz8/X6ycC5p7ei30XIiqjBrU5IXByGBTbZoFfqIYCX6 V5gtbEdF1ZYj+UPfsWvXbkL8VxMTvmqLSWbXRsf9hMgmtpMb7nf5HbRf1Jgr48WToK1r 8+ZxHwW/1Y/RGHDkziDA9R9sfsr2r9vzCJtQyHfVBb76+G5GmXlvZIcN381Yiq+t9JNp evZglrFcZBB3kcuVFDmGJOetY9TnU9nLhGTWntfPPXs/zfB3zV2F04HAhFc1SNAJxVd8 OAFELUezezeVOvIPCl+hiHoSlhF2wO3vGRVVoetcJGVyejKOrGxHyG4zIeoz0ruN6e3d 45uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=zI7DMzgAyPm47gxM2waB33iVsf6Q+eglN7ngq4fwosY=; b=K7bZ4VLR8zesGDUPhcQtDWwIHx26Un1uEgpxP/pUw8s6gyXSymBo4c8CEAa/dHxO1s 5mUau1AqykNKSnFKjN9U8Z6l44XArRP+n5IaLUNH8TzUbHdhrIp+oeo1iZvn74OE3AMh IpRuNpJLpdkfW7XIS7cUY7QXKxxTbavJH1k8UBUTCXiJuD6KVSECnAT3FxNzS36q55q2 u9m2UoJhomgCIwHJk1e6n9rZbZ7xxkbf8Ko4ce2QTTJJeEHFo8L8UuE4VPkUs31Vy1AU mV4Mqskeon0e4Mnqk4HZAHSu2a2NY8uqV2VuQyBOz3kClwJTFLruSF3b15Z3jX4aLRVq Bejg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JwEjjhL6; 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 f26si9486993ejb.74.2020.05.25.05.10.26; Mon, 25 May 2020 05:10:49 -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=JwEjjhL6; 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 S2390459AbgEYMGA (ORCPT + 99 others); Mon, 25 May 2020 08:06:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:59473 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390228AbgEYMGA (ORCPT ); Mon, 25 May 2020 08:06:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1590408358; 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=zI7DMzgAyPm47gxM2waB33iVsf6Q+eglN7ngq4fwosY=; b=JwEjjhL6KmdNLcxj/hTYz+tJvsnqcyG0QYZH8Q1ZjWjgUkurt+eq4y8/f9vSkGCmfVCoe9 qXv8laoc4wA+Xotb4ky2EVcZ28icTkD3fZOzQSExwDActoGw9Sj4M9COiJUOwn1Gt5V8Gs UeGz3s3EGiyfCg5U1sYmAcx+oUMJaUA= 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-103--CqCFHlYM-2vr7NNxerPFg-1; Mon, 25 May 2020 08:05:55 -0400 X-MC-Unique: -CqCFHlYM-2vr7NNxerPFg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 55FAA1937FDD; Mon, 25 May 2020 12:05:53 +0000 (UTC) Received: from Diego (unknown [10.40.208.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8BD4560E1C; Mon, 25 May 2020 12:05:49 +0000 (UTC) Date: Mon, 25 May 2020 14:06:07 +0200 (CEST) From: Michael Petlan X-X-Sender: Michael@Diego To: Jiri Olsa cc: Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Ian Rogers , Stephane Eranian , Andi Kleen Subject: Re: [RFC 00/14] perf tests: Check on subtest for user specified test In-Reply-To: <20200524224219.234847-1-jolsa@kernel.org> Message-ID: References: <20200524224219.234847-1-jolsa@kernel.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 May 2020, Jiri Olsa wrote: > hi, > changes for using metric result in another metric seem > to change lot of core metric code, so it's better we > have some more tests before we do that. > > Sending as RFC as it's still alive and you guys might > have some other idea of how to do this. > > Also available in here: > git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git > perf/fixes > > jirka > Hi! Last commit from perf/fixes branch I see there is: commit 0445062df28fef1002302aa419af65fa80513dd4 (HEAD -> perf/fixes, origin/perf/fixes) Author: Jiri Olsa Date: Fri Dec 6 00:10:13 2019 +0100 Different branch? > > --- > Jiri Olsa (14): > perf tests: Check on subtest for user specified test > perf tools: Do not pass avg to generic_metric > perf tools: Add struct parse_events_state pointer to scanner > perf tools: Add fake pmu support > perf tools: Add parse_events_fake interface > perf tests: Add another pmu-events tests > perf tools: Factor out parse_groups function > perf tools: Add metricgroup__parse_groups_test function > perf tools: Add fake_pmu to parse_events function > perf tools: Add map to parse_events function > perf tools: Factor out prepare_metric function > perf tools: Add test_generic_metric function > perf tests: Add parse metric test for ipc metric > perf tests: Add parse metric test for frontend metric > > tools/perf/tests/Build | 1 + > tools/perf/tests/builtin-test.c | 38 ++++++++++++++++++++++------ > tools/perf/tests/parse-metric.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > tools/perf/tests/pmu-events.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > tools/perf/tests/tests.h | 1 + > tools/perf/util/metricgroup.c | 53 ++++++++++++++++++++++++++++++--------- > tools/perf/util/metricgroup.h | 9 +++++++ > tools/perf/util/parse-events.c | 73 ++++++++++++++++++++++++++++++++++++++--------------- > tools/perf/util/parse-events.h | 6 ++++- > tools/perf/util/parse-events.l | 16 +++++++----- > tools/perf/util/parse-events.y | 37 +++++++++++++++++++++++++-- > tools/perf/util/stat-shadow.c | 77 ++++++++++++++++++++++++++++++++++++-------------------- > tools/perf/util/stat.h | 3 +++ > 13 files changed, 521 insertions(+), 76 deletions(-) > create mode 100644 tools/perf/tests/parse-metric.c >