Received: by 10.223.185.116 with SMTP id b49csp6322551wrg; Thu, 8 Mar 2018 05:41:07 -0800 (PST) X-Google-Smtp-Source: AG47ELuugHhCb9qocOI8g7v36KrGUEAMSVzdmoiyCm2nfBOHpppj/jhW54VfUy7WOrxgvOvX4Nry X-Received: by 10.101.81.204 with SMTP id i12mr21106647pgq.206.1520516467321; Thu, 08 Mar 2018 05:41:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520516467; cv=none; d=google.com; s=arc-20160816; b=o4znQKA+8JtFD6RwJpVM/u0nFSTM8RwFwGrrOa2qkKf+TYliUH8IPyJiTeeU+3Q3cy ltmfYmi1xVXa32j6CBeFq01Su/9fur7MXgsW8y/srKbEEnEAfDGNgaw/9B1OdEdie8j+ gT0vDRHGvuLk4wuZ1A4stS1w0HbZBnRZVAMETygFokmPrzEmfP/gvAkM/s9u5m0OJaPO 0kX9127tKmJASFQCmvwFrqYQoGSW5bcWecMK6myJUY16ThL13NMxI+ZpozYUrTNo2SbK L2pCUmELSepewaxKum/Ami+DbOrmQXbKM0DFi/oOhz4zcBjl8uxpVzle4ZuWKi6LcofD jKFg== 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=4Gfkvg/zwxwmLQnmm5jcEPm71Rpd69TG84SO0Ixoa4Q=; b=TyXs2P6ju39AMddKRd5cqlqT4yHsVQVY4d+cHinffCPfKSDsl9vxCGTjcsFOgmgO1w YzVt1KGCcHHGRkHANr9sSnXpErn6jzPiuI6g8EFeLs4z/LQE0h40OenTpRF32iDYEamt raR/CJYcRGyEj9KhNNHnTffMePJUu9O8/Df26zYgxmUgj0L1ji6nXhDdWd0BocjSav7U M6J7jMB2ma3Xoq1vRR1TEbHFlirxCl/u0T9vuRoVUag8AdOnaTGZu4AXjOCWMN+1ipGM 0TWp5LFRsfSAA0gmFsAnh/x0/r1Em0H6C58EASC+YfQZC58elovHO3zbdjY2Rc0DEpMi JGQg== 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 s1si13082658pge.422.2018.03.08.05.40.52; Thu, 08 Mar 2018 05:41: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; 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 S966181AbeCHNjl (ORCPT + 99 others); Thu, 8 Mar 2018 08:39:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:49826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754987AbeCHNjg (ORCPT ); Thu, 8 Mar 2018 08:39:36 -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 4B56A205F4; Thu, 8 Mar 2018 13:39:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B56A205F4 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 9EF3214528D; Thu, 8 Mar 2018 10:39:31 -0300 (-03) Date: Thu, 8 Mar 2018 10:39:31 -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: <20180308133931.GA7273@kernel.org> References: <1520454947-16977-1-git-send-email-agustinv@codeaurora.org> <20180308130358.GC3701@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Mar 08, 2018 at 08:28:13AM -0500, Agustin Vega-Frias escreveu: > On 2018-03-08 08:03, Arnaldo Carvalho de Melo wrote: > > 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. Further trying to remove my brown paper bag: I thought the '?(...)' type of thing would be something _users_ would pass on the perf tool command line, not something used by the tool itself, like on the original patch.... :-) > NP Arnaldo, thanks for the quick turnaround on these patches :o) > Just so I know, since these are my first patches on perf tools, > where are perf tools patches queued once acked? git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git perf/core If they are super urgent, then they will go to a different branch, perf/urgent, that is targetted for the current merge window, i.e. right now: perf/core -> 4.17 perf/urgent -> 4.16 Thanks, and keep the patches flowing! - Arnaldo