Received: by 10.223.185.116 with SMTP id b49csp5499586wrg; Tue, 27 Feb 2018 14:37:07 -0800 (PST) X-Google-Smtp-Source: AG47ELv7WJ7eQNw1I3nUakTSOKRYiX83h7j01KNxwFPNKa2y+0SjtsTzwGr9t21LHeTovx6Aesp1 X-Received: by 10.99.167.66 with SMTP id w2mr5263677pgo.357.1519771027467; Tue, 27 Feb 2018 14:37:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519771027; cv=none; d=google.com; s=arc-20160816; b=xuwDi43faXU4VVWXcMeRtfWUZjqo72P2xt8qphFSjfw7rQ6xVpJbTGdSx2HGRLycHu wVbonLZorxHjetGHdsAh0nXkXsFBQ5CVLQWFH7ZLY+kFGLcHiYXUPaGZ11RITCSLT467 GAGoz8y7fpsRss9uUyjTtIRURkue8urkTTJiTSRGj+8SWPrsL+F4PLGEDtnD2a9++vMm lu+v/9WFGREKsArAXGcVYi4MWIToG4f+qImvhtV7oT7rM5zULexmY2nn+TEzW1T4w8yZ Ue0H3TUqF0vwikKJNSN6AjHWz+4dBqqDpBgaQWKLnRWrP3sIQ8FTnb+Ca6Pnj9xKhk0m VTNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=hC7KPfvJqXDM2WGPos/XipASzse3EJsDzaXInPTmIiE=; b=OzJl3YILJ6Vt7Q5ZeKLkPUU/w1OFaetVT9bdBw5w8AMuARVqLSFtCoT7KXwzmpJv99 w6i+hHwx2v3NTpiahAcpykVn2mx5F5aEZwqU0SYF1B+T9I+35Z07jCiDrcLK0K+MEkK1 r6LpY7nTQS6m9lhIFZyzvUWI90c1+CNGPlnZV+cYZxrsTVjZI0zSW+ySxEqZxbSnzeHg zgHSIEtBHOgzvLPpCU6Rsp1dS1akzIm4SMuWYe1tJl8f6L3bEvTaOdt7WF8tEsVGD0Pf HuK2caN/8ETFAheUiAZeHccepgW6EiWHsxU+WyHz9bEE52CpYc7hQ00EoXv3B8yRSi64 SB1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KOisaM2r; dkim=pass header.i=@codeaurora.org header.s=default header.b=jl/XxPu4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l77si142380pfk.210.2018.02.27.14.36.52; Tue, 27 Feb 2018 14:37:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KOisaM2r; dkim=pass header.i=@codeaurora.org header.s=default header.b=jl/XxPu4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751890AbeB0WfG (ORCPT + 99 others); Tue, 27 Feb 2018 17:35:06 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44670 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751641AbeB0WfE (ORCPT ); Tue, 27 Feb 2018 17:35:04 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 24A21602BA; Tue, 27 Feb 2018 22:35:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519770904; bh=lF5Fnx6TFhBeAlxrVUJL1D0Ka7QCU/GnRVuETSTrYuI=; h=From:To:Cc:Subject:Date:From; b=KOisaM2rONw5nO5FXm8EclQ5dVqsKD3hNuH6tK3/AvZW7cphKJNh9NnDpkFyB9XaX +xO2XswhMVLfO+22XXO3ul8XuLXhps5sBv27/C1PPNdmfxIV9kjyhnQPLJhmi+9mou nHFkBRE1IntuLDmypBKHMQPWFnXTg9XlfJzMxHD8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from azshara.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: agustinv@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5D939601CF; Tue, 27 Feb 2018 22:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1519770903; bh=lF5Fnx6TFhBeAlxrVUJL1D0Ka7QCU/GnRVuETSTrYuI=; h=From:To:Cc:Subject:Date:From; b=jl/XxPu4fc5m0UHJz7DemkClKAnpMBb0IbnE7T7iTEd1GS/Z9/hos5jj/gtuFzRv5 weki89NvYW+/YfKPVpSAH+CTPQhOZ7CylmB93/khC4dkLKk6oNFKTZF81LvbLUUTJF 5/4PKbDA7YItCddVqgBQREXZz72m8ghXTKAJWxTY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5D939601CF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=agustinv@codeaurora.org From: Agustin Vega-Frias To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Andi Kleen , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: timur@codeaurora.org, agustinv@codeaurora.org Subject: [RFC 0/3] perf stat: improvements for handling of multiple PMUs Date: Tue, 27 Feb 2018 17:34:05 -0500 Message-Id: <1519770848-26738-1-git-send-email-agustinv@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches adds some simple improvements to the way perf stat handles PMUs that have multiple instances by: 1. Adding glob-like matching in addition to the prefix-based matching introduced previously (patch 1). 2. Adding the ability to recover the PMU names when printing the events separately with the --no-merge option (patch 2). 3. Restoring auto-merge for events created by prefix or glob-like match (patch 3). Note that this still keeps the behavior that disables auto-merging of legacy symbolic events (e.g. cycles). Agustin Vega-Frias (3): perf, tools: Support wildcards on pmu name in dynamic pmu events perf, tools: Display pmu name when printing unmerged events in stat perf pmu: Restore auto-merging of PMU events created by prefix match tools/perf/builtin-stat.c | 29 ++++++++++++++++++++++++++++- tools/perf/util/evsel.c | 1 + tools/perf/util/evsel.h | 1 + tools/perf/util/parse-events.c | 21 ++++++++++----------- tools/perf/util/parse-events.h | 2 +- tools/perf/util/parse-events.l | 2 +- tools/perf/util/parse-events.y | 7 ++++--- 7 files changed, 46 insertions(+), 17 deletions(-) -- 2.7.4