Received: by 10.223.185.116 with SMTP id b49csp5434966wrg; Wed, 7 Mar 2018 11:41:14 -0800 (PST) X-Google-Smtp-Source: AG47ELtgokoKTofzyeja36/tPPrw+4+UHxy8IZtaKfTSRdc2pF4wH0TnmjFu9G4s9MDg1nSQZudx X-Received: by 2002:a17:902:6943:: with SMTP id k3-v6mr14363114plt.214.1520451673927; Wed, 07 Mar 2018 11:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520451673; cv=none; d=google.com; s=arc-20160816; b=ZxnD1gSNDLuGm8YBpCtSoC6h57RHCDTnMRr+2OTmWun5YEu6ydJPshaqCDIlbsLUMa Z5RIcNs/dYIGHkOqrGVo6QDzeFIqtw4WqplZKEWtluEFCZeCd4v/YBE7wmN0rCePOICZ UGGkVx3/jk+qXhImR9kco/gRkm3rM5o7j1aiJ7rpH4GCEhu4UKzSQ6qTymuoKG0Af9AZ Z6LU9ZRio17w8W9aLOl1PtEVZfj7YICfkJf+imZ+2i5sXM+wUVhlcmqbXswqk59f5cMv j9SID6DUvJMdKzt9kwZHnYihkbQ4AsGzumLigCLzx2OlalROFosDoNL+WiKFx/qkQ1El tYkw== 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=p3NkJvh1gF43tkqJ6Fi4/RSsmrPLF6vBzk9K4vvSnoY=; b=Uc3NZoNU7/DqNaXPfIn77EJhnS2qm8dxxSUtHDR7OCpzmpto5nGWyiGGVrhlsg/ddt 7q9gYK0udh8+YIMxL93wd7xfI3B14j6WpC0g5U3NHZ8iJnciZu0VsfQYbSI2Yi3lCwY6 KJwk6ejVHVTX3GbWMeggOdguTUo0Ot3EtWS2c0ve2eYcYFH1ohiW3mJ7CXoSUivD7rGO aAYmxvSRiz9GvS3+MiTjDtaKQmpjV0ECBpCsc4Tyf4kLnKaA+Lilw3Mc0yT2bNW4XsFE zplE9R0vwjCXUF0o/m8toS8pSBqMf5RW+5gifTae6ElRf0I1IxsXxQo2AjipLLphDqrM jL+g== 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 l70si11739703pge.778.2018.03.07.11.40.58; Wed, 07 Mar 2018 11:41:13 -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 S933533AbeCGTjf (ORCPT + 99 others); Wed, 7 Mar 2018 14:39:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754039AbeCGTjd (ORCPT ); Wed, 7 Mar 2018 14:39:33 -0500 Received: from jouet.infradead.org (unknown [177.79.37.40]) (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 00DC52172D; Wed, 7 Mar 2018 19:39:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00DC52172D 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 8983C1450F6; Wed, 7 Mar 2018 16:39:30 -0300 (-03) Date: Wed, 7 Mar 2018 16:39:30 -0300 From: Arnaldo Carvalho de Melo To: Agustin Vega-Frias , Andi Kleen Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Namhyung Kim , timur@codeaurora.org Subject: Re: [RFC V3 1/3] perf, tools: Support wildcards on pmu name in dynamic pmu events Message-ID: <20180307193930.GW3701@kernel.org> References: <1520345084-42646-1-git-send-email-agustinv@codeaurora.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180307190543.GR3701@kernel.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 04:05:43PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Mar 07, 2018 at 04:05:09PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Mar 07, 2018 at 10:54:15AM -0800, Andi Kleen escreveu: > > > > Sorry about that. That's probably because FNM_EXTMATCH is a GNU extension, > > > > not POSIX, and the Alpine and Android runtimes likely don't implement > > > > that... > > > > I'll send a fix reverting back to the strncmp to ignore the uncore_ prefix, > > > > and dropping that extension. > > > > > > Just don't set it? Even the basic glob patterns are useful. > > > > Or use: > > > > #ifndef FNM_EXTMATCH > > #define FNM_EXTMATCH 0 > > #endif > > > > So on systems without it, its not used, while on GNU systems, we have > > that functionality (pretty fancy, someone may need that... ;-)) > > I'll try this route, btw, no need to send more patches for now. So, with the patch at the end of this message, it works now in those systems: [root@jouet ~]# dm 1 alpine:3.4 : Ok gcc (Alpine 5.3.0) 5.3.0 2 alpine:3.5 : Ok gcc (Alpine 6.2.1) 6.2.1 20160822 3 alpine:3.6 : Ok gcc (Alpine 6.3.0) 6.3.0 4 alpine:edge : Ok gcc (Alpine 6.4.0) 6.4.0 5 amazonlinux:1 : Ok gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11) 6 amazonlinux:2 : Ok gcc (GCC) 7.2.1 20170915 (Red Hat 7.2.1-2) 7 android-ndk:r12b-arm : Ok arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease) 8 android-ndk:r15c-arm : Ok arm-linux-androideabi-gcc (GCC) 4.9.x 20150123 (prerelease) 9 centos:5 : Ok gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55) 10 centos:6 : Ok gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) I stopped the test at this point to process some more patches, will restart the tests with those extra patches and if all goes well with the other 46 build environments, push upstream, thanks. - Arnaldo diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index 316ac073aa78..18473be7d787 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y @@ -9,6 +9,13 @@ #define YYDEBUG 1 #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