Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752344AbdLEDzh (ORCPT ); Mon, 4 Dec 2017 22:55:37 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43476 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751756AbdLEDzd (ORCPT ); Mon, 4 Dec 2017 22:55:33 -0500 Subject: Re: [PATCH v4] Use more flexible pattern matching for CPU identification for mapfile.csv To: William Cohen , acme@kernel.org Cc: peterz@infradead.org, mingo@redhat.com, mpetlan@redhat.com, linux-kernel@vger.kernel.org, shriyak@linux.vnet.ibm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, Ravi Bangoria References: <20171204145728.16792-1-wcohen@redhat.com> From: Ravi Bangoria Date: Tue, 5 Dec 2017 09:25:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171204145728.16792-1-wcohen@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 17120503-0040-0000-0000-000003F66438 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17120503-0041-0000-0000-000025F9571B Message-Id: <1a494349-2c85-bd09-73c3-fc5ed733d2ef@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-12-05_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1712050057 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 797 Lines: 18 On 12/04/2017 08:27 PM, William Cohen wrote: > The powerpc cpuid information includes chip revision information. > Changes between chip revisions are usually minor bug fixes and usually > do not affect the operation of the performance monitoring hardware. > The original mapfile.csv matching requires enumerating every possible > cpuid string. When a new minor chip revision is produced a new entry > has to be added to the mapfile.csv and the code recompiled to allow > perf to have the implementation specific perf events for this new > minor revision. For users of various distibutions of Linux having to > wait for a new release of the kernel's perf tool to be built with > these trivial patches is inconvenient. > Tested-by: Ravi Bangoria Thanks, Ravi