From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC5EAC433E0 for ; Sun, 24 May 2020 22:42:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 863CB20776 for ; Sun, 24 May 2020 22:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590360165; bh=LwsTH0T5mn0syVl+y5RBcgID9oCOHp6qR1KlFkwIkDw=; h=From:To:Cc:Subject:Date:List-ID:From; b=e8G+Ze+joHAsO2goXljuO7AKPp8F3xrsquClLWqqKHIQ3/76QRte6egOz+TkWHI23 9QfRAN2+SuZTdDglInqPJCij0QLjXgSMrCenUhEuJHTVA4tkZ3WPnjM0RQ9LgVzXU3 CWXLR4IFJAhkJ3gy1PVlnM3VTOQGp5Bo8k70fBB8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388246AbgEXWm2 convert rfc822-to-8bit (ORCPT ); Sun, 24 May 2020 18:42:28 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:43733 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387850AbgEXWm2 (ORCPT ); Sun, 24 May 2020 18:42:28 -0400 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-386-Q_-B61JIPJ25nMAk8hVtzw-1; Sun, 24 May 2020 18:42:24 -0400 X-MC-Unique: Q_-B61JIPJ25nMAk8hVtzw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2EB4D460; Sun, 24 May 2020 22:42:23 +0000 (UTC) Received: from krava.redhat.com (unknown [10.40.192.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 746F85D788; Sun, 24 May 2020 22:42:20 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ian Rogers , Stephane Eranian , Andi Kleen Subject: [RFC 00/14] perf tests: Check on subtest for user specified test Date: Mon, 25 May 2020 00:42:05 +0200 Message-Id: <20200524224219.234847-1-jolsa@kernel.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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