Received: by 10.223.185.116 with SMTP id b49csp5524388wrg; Tue, 27 Feb 2018 15:07:34 -0800 (PST) X-Google-Smtp-Source: AH8x225TtVuh5/3cYv+kp/8h3whe8vU2bzxnwpw1D3aTy6q3dHb8NCLYr8JDtYMzZl8tRzbtMqyf X-Received: by 10.99.96.200 with SMTP id u191mr12568355pgb.252.1519772854263; Tue, 27 Feb 2018 15:07:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519772854; cv=none; d=google.com; s=arc-20160816; b=SviIF2fe7RSRC3tVj0OF3nJy8cg9jzeE7KJ6hZ+0+uXAzOOzYbdMyidlIshhJ6IAHF Lhcf5tTzJnxmgdQRJVq66w6BlkV+R/6bXE/bukFN2r3EhB2lJHYjDeKVTj6HFeRjYkoS BLAun6LA0C/UsQIKjNDUG4i4BBc9RR7iBLHQNgwiGquXcBC93ttfE6r/4Gpqm2E/h8C/ yxSR36rKWhh9fNSfazi+gZMIN47tlreT0M+H+bDUlgLz1IlfSHQI2isclHZN2IvXlrkn CE/8n92YA3j0Y8NZGUUviH38Q6DEaiUfQHVx9KuXPZyOzVLZYawHw6e77i/R7W90MjJB X0lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=PCbd64HzGl1aiVpNdcu7RivNEMV9+OXBT1kRGHNzHl4=; b=f/N1CkhnpefaZ2N2hsJiIDLHvsWJ2m56wHTPTDGO2n/jYskHI+G6K9tCd2C1Sa0I72 jcGek6N2UwP6H7vwNnDjOfhQJZgSkxWOxV7DNigrqr0kD917bnibl7TjuE5KC3Y3Bz1C Ca7AtMvwb0Qcmq4WoNv00sQPaEJI+QmC77jaKEQfReAQgFJG95H/u4ObjgAnEAx1+8wQ m41EcVw6hadmQiScV2Fv+RrQSmcBntm7o/wmubGZSg/EDE/UGHFtiixXOVpEoihRyKaT ab6rumLlo4xIbGUaZG7U6djGE0nB0oF3rpZZuWvePjdtjnvFJbDZoW603DEycDN/JaAo QGQg== ARC-Authentication-Results: i=1; mx.google.com; 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 k8si169848pfi.3.2018.02.27.15.07.19; Tue, 27 Feb 2018 15:07:34 -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; 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 S1752007AbeB0XF5 (ORCPT + 99 others); Tue, 27 Feb 2018 18:05:57 -0500 Received: from mga02.intel.com ([134.134.136.20]:21305 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800AbeB0XF4 (ORCPT ); Tue, 27 Feb 2018 18:05:56 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Feb 2018 15:05:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,403,1515484800"; d="scan'208";a="20827546" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by fmsmga008.fm.intel.com with ESMTP; 27 Feb 2018 15:05:54 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 9D53D30183B; Tue, 27 Feb 2018 15:05:39 -0800 (PST) Date: Tue, 27 Feb 2018 15:05:39 -0800 From: Andi Kleen To: Agustin Vega-Frias Cc: 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 , Alexander Shishkin , Jiri Olsa , Namhyung Kim , timur@codeaurora.org Subject: Re: [RFC 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events Message-ID: <20180227230539.GF21543@tassilo.jf.intel.com> References: <1519770848-26738-1-git-send-email-agustinv@codeaurora.org> <1519770848-26738-2-git-send-email-agustinv@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519770848-26738-2-git-send-email-agustinv@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 05:34:06PM -0500, Agustin Vega-Frias wrote: > Starting on v4.12 event parsing code for dynamic pmu events already > supports prefix-based matching of multiple pmus when creating dynamic > events. E.g., in a system with the following dynamic pmus: > > mypmu_0 > mypmu_1 > mypmu_2 > mypmu_4 > > passing mypmu// as an event spec will result in the creation > of the event in all of the pmus. This change expands this matching > through the use of fnmatch so glob-like expressions can be used to > create events in multiple pmus. E.g., in the system described above > if a user only wants to create the event in mypmu_0 and mypmu_1, > mypmu_[01]// can be passed. Missing documentation for the globbing. The rest looked ok to me. Reviewed-by: Andi Kleen -Andi