Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5303764imm; Tue, 19 Jun 2018 08:17:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLvvdxXJHtNEcZG4rc/QM8YzjoziulmHb8KW8SqhYLMVaQ/6YLKkdpEYbiTjazHecXdzphd X-Received: by 2002:a62:c882:: with SMTP id i2-v6mr18185556pfk.13.1529421435711; Tue, 19 Jun 2018 08:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529421435; cv=none; d=google.com; s=arc-20160816; b=KPfsBNNJT9LWOAVMVuWhwiJOly0T4n0YjNnYHBru+UXpUgI6TCpuf45K8QCEBw0eb+ P9lTlh8coaROb5ULNs11JUUEaRSS//Y97C2tCQyieqw+ovoGwYF45mhN/vw8wc5yarft aKmzzNOUDV7EcldSkoaUc/nn+j0Hk3/NE4GN6f2KnIV2pZzrOwERlU9XRY6wVfZxHq5s J6Q2CrfmQFKoRMQa4MnexTldXjAI+K6PmxhzITrdmXmhMWgD3UFQNqwPvb7QAx/J+i44 lb8m0mn0b1s3/r+v8Roovz6/H/yd0MuGN6GZlRz0+m4RaMy/lsGHRHwf6aW9D2lcoa/m 5+2A== 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:dkim-signature:arc-authentication-results; bh=D1oC7bs51uPzQfMQvSkoLzQSlqkIZD2E9dbKhS6OK/g=; b=KtInX/x6kZTScYvoMeATB3ReeaJ/k2h9EG5D1ZwRH+14DJXYqa5x3wxGBLJjqdTEd7 FcGlLkWFdMzoufpa8DnxJ/b1EMmHI4QeKs5PhBmTqw0xpUUB8aoXgB1TK0QF/wc9jHKO mQVrMwy4gB4VCm+0HvfJV01TzaqJ6b3OGGnacPywIYdEg//eHp9RbFVI0VEnu7mHh7Jj JtDXO40We2qE+qt9Rdeg1tNw7RYmSs8kMt0cAy9MM/AESBykYm0fTtM5XUU9iUOzR1ly 4GyF+WuYla9YuR/6ZGDxoNBs36O07pqno8pIE5dfUOgUdzOJoL8ySSAhYlSJNwhW/pfm 3obg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EDcrBYFb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si18048705pfh.358.2018.06.19.08.17.02; Tue, 19 Jun 2018 08:17:15 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=EDcrBYFb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966632AbeFSPQ1 (ORCPT + 99 others); Tue, 19 Jun 2018 11:16:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:57600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966451AbeFSPQZ (ORCPT ); Tue, 19 Jun 2018 11:16:25 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (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 504E52075E; Tue, 19 Jun 2018 15:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529421384; bh=X5xrH1ZRoOoB9wLsakdVaMaEZuusmQvJ1e0Ca2y/gVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EDcrBYFbUrfLpkucttWmsVYfD2wYG/5+/wjjLDRyxc8mjQQhS0rRqNvuqg/w0e2/9 sEEmXYYs4d00VnDaNNRyMiehuzeOcgzbR+misEGvXuMQOqhhVpBfA0gkvSdwqAKSLL fJu+4FO1zPyCygCXxgwhPlPlBWGt1WAWTkwaditM= Received: by jouet.infradead.org (Postfix, from userid 1000) id 088CE1401E5; Tue, 19 Jun 2018 12:16:22 -0300 (-03) Date: Tue, 19 Jun 2018 12:16:21 -0300 From: Arnaldo Carvalho de Melo To: Thomas Richter Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, brueckner@linux.vnet.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Jiri Olsa Subject: Re: [PATCH 2/3 v2] perf alias: Rebuild alias expression string to make it comparable Message-ID: <20180619151621.GI20477@kernel.org> References: <20180615101105.47047-1-tmricht@linux.ibm.com> <20180615101105.47047-2-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180615101105.47047-2-tmricht@linux.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jun 15, 2018 at 12:11:04PM +0200, Thomas Richter escreveu: > PMU alias definitions in sysfs files may have spaces, newlines > and numbers with leading zeroes. Some alias definitions may > also appear in JSON files without spaces, etc. > > Scan alias definitions and remove leading zeroes, spaces, > newlines, etc and rebuild string to make alias->str member > comparable. > > s390 for example has terms specified as > event=0x0091 (read from files ..//events/ > and terms specified as event=0x91 (read from JSON files). Applying, I think Jiri agreed with this one in the v1 post, right? - Arnaldo