From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755344AbeDWOD7 (ORCPT ); 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 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 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 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