Received: by 10.223.185.116 with SMTP id b49csp5473841wrg; Wed, 7 Mar 2018 12:22:32 -0800 (PST) X-Google-Smtp-Source: AG47ELtbcS8xbROSBcu7mXjwN++Mg5tpxvQ730UlXe4n1O6FcGLyqZEqnzx14HdImgcXGgYRXkKU X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr21924602plh.157.1520454151910; Wed, 07 Mar 2018 12:22:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520454151; cv=none; d=google.com; s=arc-20160816; b=srblBzkmHU/CAtkXcLHQ7FugIKbbihuQkLUZcN1euir0ks7KQJgnYpGnkfD9SFQg+i 1f2YkWXKDLAazXKjBjKnYSQKUq9M9tLUEYj613dlsZOFqQfuMT34Du7m5eWB7hOLGaoD 9q2sRKujOoWDRUxBlm/TKzPA9CVg82kE8rB4LiIXNoxtBe0gaVjdToyg6+8iiQK53FQS zPyoBSMctldRHXLMSWmdq6BUCXMxnB5azQJLcT3tww7fcgYSeLGKom2ZWl2k+OhlhgqD CDLNzj/8rZlofZPxp22HKivigTHpGkftz9F93ly1tx746nkVJF/+X5JFpcZKKdOj2DLl Lr0g== 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=3pldHQW/FaJcDS6Pdt5PrPCIMAPa9cftSFBWRz4AfIs=; b=X6ib3TQIkpQ6kSxG/VlSK82JOxH6WzwigvyoPfSQ9gv/3g0KmbAxbocWhUP5OAU/zo 5UV18gCtRXpgnl3tuLYGv/m9WeVOM+cIzvD7IdsBDQX6uw49/6r2Ds46NbWKs5zz5r8U oVGXw34V6pde+AH2Q6PKuF+QFo0FE2Z3FAZvyrVCm75ioOym9WElzO4yZcCsS7epnX/9 DHHH3zmQMqXQzSFo8+T5WpbfPHe/8Tu8z5Ei9SHjn41Vl+CXEddHVR+wB6w9QAVdUW+w Rk8pjjhXj1mFDxkobYCdf/9Juy0t0/kSTrOymt/0F+LTd009YDA26djQ3FTUG85j5NNF eODA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si13464891pli.826.2018.03.07.12.22.16; Wed, 07 Mar 2018 12:22:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965180AbeCGUV2 (ORCPT + 99 others); Wed, 7 Mar 2018 15:21:28 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41166 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965077AbeCGUVY (ORCPT ); Wed, 7 Mar 2018 15:21:24 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AC06C8D6FB; Wed, 7 Mar 2018 20:21:23 +0000 (UTC) Received: from krava (ovpn-204-18.brq.redhat.com [10.40.204.18]) by smtp.corp.redhat.com (Postfix) with SMTP id 76B9F2026980; Wed, 7 Mar 2018 20:21:15 +0000 (UTC) Date: Wed, 7 Mar 2018 21:21:14 +0100 From: Jiri Olsa To: Agustin Vega-Frias Cc: Arnaldo Carvalho de Melo , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Namhyung Kim , timur@codeaurora.org Subject: Re: [RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events Message-ID: <20180307202114.GA2926@krava> References: <1520345084-42646-2-git-send-email-agustinv@codeaurora.org> <20180307160224.GN3701@kernel.org> <20180307185415.GK25017@tassilo.jf.intel.com> <20180307190509.GQ3701@kernel.org> <20180307190543.GR3701@kernel.org> <20180307193930.GW3701@kernel.org> <20180307195833.GX3701@kernel.org> <0ba091eaa6676498b4554978606d8016@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ba091eaa6676498b4554978606d8016@codeaurora.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Mar 2018 20:21:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 07 Mar 2018 20:21:23 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jolsa@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 07, 2018 at 03:09:08PM -0500, Agustin Vega-Frias wrote: SNIP > > > > #include > > > > +/* > > > > + * GNU extension, so better define it to 0 for systems such > > > > + * as Android and Alpine Linux. > > > > + */ > > > > +#ifndef FNM_EXTMATCH > > > > +#define FNM_EXTMATCH 0 > > > > +#endif > > > > #include > > > > #include > > > > #include > > > > > > Hey Jiri, > > > > > > The downside is that, while the compilation now works on those > > > systems, the pattern will not work as intended in them :o( > > > Let me cook something and send it ASAP. > > > > Well, do you think this is really a big problem? Even if we add nice > > docs? > > > > I haven't tested something that works with this syntax on a capable > > system and then on one that doesn't, to see how it would behave, > > probably it would say something about a syntax error? > > > > Most likely, yes, it would be flagged as a syntax error in the event name. > I'd prefer we fix this. I have the new patch ready, do you want me to just > send you that patch instead of the series? we could also detect the extension via build features and have HAVE_FEATURE_ macro defined for it, so we'd have full functionality on system with its support but maybe that's little too much for feature this size, or we can add it later.. now I'd be ok with the limited functionality as well jirka