Received: by 10.192.165.148 with SMTP id m20csp3468353imm; Mon, 23 Apr 2018 07:06:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Rn5f2OeXv4dgOtGyhOTUiHrp2ech05psSDY0i10qLbRuZhHNEL/uHmeHpM/MLvQr2n6lL X-Received: by 10.101.98.194 with SMTP id m2mr12081975pgv.164.1524492406071; Mon, 23 Apr 2018 07:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524492406; cv=none; d=google.com; s=arc-20160816; b=o/MYhlh76Rg2iAmb7XU5KOdi0N3GXg4C1XrOUWMoP4lrFPhaqCpDd7doJ6jDsMl0km Pxt35AASv36BfLBoyJufqB3llEx4mqyCOcw5SF062E5SubIIhx2MGwCdEBxczXfG4t4i 0aFTMNcsmEPrJmC/XC3lZVo2wEydT6K5JAQPTJSqrP0pgkRR1E+e2uB/GukKV8y3jwrB e3DPun5nrogZXKfXcbd75IsNTBaTfxdha6ovR0qlb3zyO4UVDnPoJoh3s7HDJBM89vkd ICrY55cKAdSCvqeXjGbNWVtFZpqNryJEI0YNzSm+6ixus9HDHs6Xs5iTiOk5p2xaSN5/ JVYA== 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=TlVCJdkK3vxPqaU0k5ha0IQtxsbhdjsZki0O9YfKWiE=; b=ExHB3MNoyKnExdtt1kWHwJHciKqSPoNIlbAis5YMuxobufV7wZzKT+8Ro+QhfjDKmV gAXfPci9M/VB8mXVvObO4gRfLTdXrBBeWfRydqE7vi6s4DChxrJLBdG+yi0VU4Cg2rsW b5sV4tCy8oMGzee6XzBR27W5NY69uTf3nqVdXTvW1Sdwz8t0do/o4Az/l5NtctMhxEXv GFA3ZE6PJIbcPNRT6i96hJE6uReFKxTlQIgtCGwUet8LnD+5/o4QdqCNLR5tUk0qEknr yEPm3c1BDok9MiafrSXEdh9Lus6kGLyNh0JY0lyW0gB0a5yMCS8+UhJ1eGZkOdB+S7CM GTmg== 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 x3-v6si11579199plb.478.2018.04.23.07.06.30; Mon, 23 Apr 2018 07:06:46 -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; 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 S1755335AbeDWOD7 (ORCPT + 99 others); Mon, 23 Apr 2018 10:03:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:35782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755107AbeDWOD4 (ORCPT ); Mon, 23 Apr 2018 10:03:56 -0400 Received: from jouet.infradead.org (unknown [177.79.80.140]) (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 56A4D21782; Mon, 23 Apr 2018 14:03:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56A4D21782 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 CEFF01457B2; Mon, 23 Apr 2018 11:03:52 -0300 (-03) Date: Mon, 23 Apr 2018 11:03:52 -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 Subject: Re: [PATCH v2] perf list: Remove s390 specific strcmp_cpuid_cmp function Message-ID: <20180423140352.GD3254@kernel.org> References: <20180423081745.3672-1-tmricht@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423081745.3672-1-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 Mon, Apr 23, 2018 at 10:17:45AM +0200, Thomas Richter escreveu: > Make the type field in pmu-events/arch/s390/mapfile.cvs > more generic to match the created cpuid string for s390. > The pattern also checks for the counter first version > number and counter second version number ([13]\.[1-5]) > and the authorization field which follows. These numbers do > not exist in the cpuid identification string when perf > commands are executed on a z/VM environment (which does > not support CPU counter measurement facility). > CPUID string for LPAR: > cpuid : IBM,3906,704,M03,3.5,002f > CPUID string for z/VM: > cpuid : IBM,2964,702,N96 > > This allows the removal of s390 specific cpuid compare code > and uses the common compare function with its regular > expression matching algorithm. Thanks, applied. - Arnaldo