Received: by 10.223.185.116 with SMTP id b49csp2867885wrg; Mon, 5 Mar 2018 09:57:55 -0800 (PST) X-Google-Smtp-Source: AG47ELs7jUIuSTl5Eo5GBb+R2T+Y3CCFn73yqjDxXS2UAf9LAwPYB4V3G1phZ1WBfseJgNncme1k X-Received: by 10.98.204.69 with SMTP id a66mr16164544pfg.33.1520272675779; Mon, 05 Mar 2018 09:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520272675; cv=none; d=google.com; s=arc-20160816; b=KkoJkK2L8OEw/Ik4IVWe3kCaCrDV+Oc/tH50QQCqo00p09EBZh2NlthYjg4x6eVCeq oZBu8u+3nVNK5MF+Biimq0Z/WTQombLYAp66mBNPUlBQYrWWQ4dMIlqFpw2v93iGasyF yFvzA3lw4htyy60W5Z0YCRBCMPTUecCWeuv/0MFyzEwwXXUx5qzyZtGMi0j/Hxv66PWc DevIWRVRIVvIdYYM34MJOha7kOPS+a+2yeWiWvBOfhMneucbHx5IzIl4J1tLvAe6dj0g s2WBXr7V1fvi3DTUrXd870mI4lz6Nkv2z2kv9+GXhSfLP64rv5RyC9JvC4S/uPwU2TXb kdXw== 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:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=BZLl71KRdkSLAaiqX/Agy++fLmnyW5tm8n7jq5AcCmQ=; b=mf57tC8CU5mWAS30CH1cQJ9Jjo0X5qs9CEAXVc6PatCwcu6ojLhoojknNvYTlTi2Vt vR6DcEx2Z3d02lmT5nBOhPv6i25FWASN/XVsAw4M/ENyAL03EJ3LuCfKNUWyeXe8cCcK GsKbqP+iHRV8VsWP6H2JbK9QfMuutNYdK2HhB1g0iG1wvfZE9MRgwbrq5jSepDuCVJCI UWNbVgB9RJVsodgyUzgESZ0X34ReTN10Gl6W6yHQ0F1c8jzKe8kPYdfVTaDCVLCabqo6 r2XSN2fzspNjwpgml6l4XOkK6wgapxp9VG8Zh74MyrZq1NrquDlwdr/onvgQItld6vjI Hjug== 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 k1-v6si9839100pli.616.2018.03.05.09.57.41; Mon, 05 Mar 2018 09:57:55 -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 S1752460AbeCERzg (ORCPT + 99 others); Mon, 5 Mar 2018 12:55:36 -0500 Received: from mga18.intel.com ([134.134.136.126]:24263 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbeCERzf (ORCPT ); Mon, 5 Mar 2018 12:55:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2018 09:55:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,427,1515484800"; d="scan'208";a="39372858" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.133]) by orsmga002.jf.intel.com with ESMTP; 05 Mar 2018 09:55:34 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id 5CCE730077C; Mon, 5 Mar 2018 09:55:19 -0800 (PST) From: Andi Kleen To: Agustin Vega-Frias Cc: Jiri Olsa , 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 , Namhyung Kim , timur@codeaurora.org Subject: Re: [RFC V2 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events References: <1520034092-35275-1-git-send-email-agustinv@codeaurora.org> <1520034092-35275-2-git-send-email-agustinv@codeaurora.org> <20180303143436.GA14563@krava> <20180304171245.GB25017@tassilo.jf.intel.com> <20180304181010.GA7030@krava> <1ddac3f4900267b0c9a69ef4c598be51@codeaurora.org> Date: Mon, 05 Mar 2018 09:55:19 -0800 In-Reply-To: <1ddac3f4900267b0c9a69ef4c598be51@codeaurora.org> (Agustin Vega-Frias's message of "Mon, 05 Mar 2018 10:08:18 -0500") Message-ID: <87efky76go.fsf@linux.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Agustin Vega-Frias writes: > > An option to keep backward compatibility and consistency would be > to wrap the pattern/string passed in *'s, that way we can just use > fnmatch and have all the examples Jiri brought up work the same. > With that in place we can actually also drop the explicit ignoring > of the uncore_ prefix since the globbing would take care of that. Prepending with * would seem dangerous, could result in false matches. But adding it at the end should be ok. -Andi