Received: by 10.223.185.116 with SMTP id b49csp6285873wrg; Thu, 8 Mar 2018 05:05:16 -0800 (PST) X-Google-Smtp-Source: AG47ELs4xy7/NOfNWOvn2GlHOVC/kkYRRyRWKWwWvtnxYomYY47GVodC4Iq5tM6/yGHs9Ob8s2bw X-Received: by 10.101.101.10 with SMTP id x10mr21436232pgv.223.1520514316159; Thu, 08 Mar 2018 05:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520514316; cv=none; d=google.com; s=arc-20160816; b=VFFp7p/5nRtSfEBuc9hadcy0c2sTrlS+4OiucpBBM9e2l5fqRZi09Lj7R3b+eYgwB/ HR0Hi6jWuWbzwlw86rUOaGCiyUM4RBYkn9JHkjD4szOhxsIhZGtjLR9poeYHy6pHiAZC frXrmyWCp2U1U7OTkpDzSVBGygUU/9QSOtWqd6DFDNlyu0OovlRJ0Xa6rGtYCnaZ0cxp 3qyQZGzaT3aatdySaL77hTbcSOrh1W1PuHWOGVoMVq329oVzBYEF15zFHLZJio6u6xS7 5QutwpJZFijiUcNitfyXsdQzl0sEk0JD3cbg1ijuxNKzhq1N4QxX8jwhRjbw7X3YtSui XiHg== 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:dmarc-filter:arc-authentication-results; bh=xOawsBrDyDO7VaOv/uWnBXWIw0BTYJ/5OK2g4WItrKM=; b=zFDYSnBVhR8aE1FKFXQH/REMqdViCkT1VUc2BV8OKn1+GAlqjofUS99J+ClJvZANSa 2ZkZYSbxZr1Sj1KO+v009ee1+Mxkfu/VnqHGlqw7tdK92VXIwVMpwdIUwGpsYTy+P6GB odMt+FTbCFNrttpFWm+0dDlw7lDwbzbG4p7+xyRwAFj7FMKdjvPOPyqhS2bKr2+dkZrE /lFMa1a9OpaOaZMjlfmxTd6Xe7tOIF/dHHWPxlvk18+l61ObZ9XgUZDFyBfVoeSvGzKK SwhSmPdQAaZfxlx5mYqFpQ9kJ9x/pqKBrmaqVfP87V49OeXh9E4cnHkELi/ITElf3O1u MpgA== 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 p14-v6si14564318plo.778.2018.03.08.05.05.01; Thu, 08 Mar 2018 05:05:16 -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 S933757AbeCHNEE (ORCPT + 99 others); Thu, 8 Mar 2018 08:04:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:45586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755103AbeCHNED (ORCPT ); Thu, 8 Mar 2018 08:04:03 -0500 Received: from jouet.infradead.org (unknown [177.79.37.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3A83205F4; Thu, 8 Mar 2018 13:04:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3A83205F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 98522145202; Thu, 8 Mar 2018 10:03:58 -0300 (-03) Date: Thu, 8 Mar 2018 10:03:58 -0300 From: Arnaldo Carvalho de Melo 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 , Andi Kleen , Alexander Shishkin , Jiri Olsa , Namhyung Kim , timur@codeaurora.org Subject: Re: [RFC V4] perf, tools: Support wildcards on pmu name in dynamic pmu events Message-ID: <20180308130358.GC3701@kernel.org> References: <1520454947-16977-1-git-send-email-agustinv@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1520454947-16977-1-git-send-email-agustinv@codeaurora.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Mar 07, 2018 at 03:35:47PM -0500, Agustin Vega-Frias escreveu: > +++ b/tools/perf/util/parse-events.y > @@ -8,6 +8,7 @@ > > #define YYDEBUG 1 > > +#include > #include > #include > #include > @@ -234,6 +235,10 @@ PE_NAME opt_event_config > if (parse_events_add_pmu(_parse_state, list, $1, $2)) { > struct perf_pmu *pmu = NULL; > int ok = 0; > + char *pattern; > + > + if (asprintf(&pattern, "%s*", $1) < 0) > + YYABORT; + if (asprintf(&pattern, "?(uncore_)%s*", $1) < 0) I completely overlook that you were using this and thus needed that extension, duh, thanks for the patience 8-) and for the new patch. - Arnaldo