Received: by 10.223.185.116 with SMTP id b49csp304222wrg; Fri, 2 Mar 2018 19:48:43 -0800 (PST) X-Google-Smtp-Source: AG47ELv696cw5RBeP5An/4qAoChbv18e4lHzVuZD7QR+DOj94CA+WhL5L8FafWvtftKBsqYk2+UD X-Received: by 10.99.110.133 with SMTP id j127mr6302798pgc.79.1520048923605; Fri, 02 Mar 2018 19:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520048923; cv=none; d=google.com; s=arc-20160816; b=e3w/Pu5X6rqwZKDdoKfc4Ff5TJc34FN1qMWnAsMhzreJZl0nIuPv3G8oxjpo/Kcllw 255cEeAsjF/ggsXYkJaVfBLJ7SkRTz3n+69W5xcmhEAG6dRmh6/QLULaLsO2R7Q6WdrJ kjfDmt78oFgPTxijE5NQSC5YpVCFfeSFs2t8r+rUGStLkHeYbr3mGAn3Ch0vnGdK6yIm g3f5lhuMZ0UEHQeox/pXeP+9Ruf1EvTRVwiO8UJLkcwQpKDLcvhalhlW1gP6jletXXih yltmHtumAbsGiTez83VMLGHb/io7jzB/rAlMJobSwRY/BdrRoLLWnDEqTnV6Bpyca8yd K7jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=xRpqjRhClwIYiOrVSmuF28HFsO6GCu6uLWTJt3M9V8g=; b=Gk92ac9lD061YbNYCmrvYVA5tIoW0puLtCKJ0hVObqTRl2T3T11ORJHYrVlqTtEzvi dEQexAODEwF8zQIC51EyqhxUMkGJHLzbhmuJiCBrm35jkjRe9GEL4B6Ejy7KYSzdE7NN vuxZ4mEhQGbpBmWhNYiMGeTMDsZIKBgMCHmpZ+R11P03GsFGS1fATNZCX0aIwjUn7UJB s243BuQkQ2PT8XuBuFWi/tWU2j95gRfNFNMhVFC0BPfrVcZhkHdOeDL0fhGVV2IK25bH NUZoOYVuWpPjTdPgEkAMVMFVNQsPs036sHqiiJ8XHd5e8gmdIyQ7o2ZxZTlRk0jO4zg4 HAJA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si2983037pfm.223.2018.03.02.19.48.29; Fri, 02 Mar 2018 19:48:43 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934725AbeCBXio (ORCPT + 99 others); Fri, 2 Mar 2018 18:38:44 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57158 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934410AbeCBXin (ORCPT ); Fri, 2 Mar 2018 18:38:43 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6B879410FBA0; Fri, 2 Mar 2018 23:38:42 +0000 (UTC) Received: from [10.10.120.125] (ovpn-120-125.rdu2.redhat.com [10.10.120.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id BF2812156601; Fri, 2 Mar 2018 23:38:40 +0000 (UTC) Subject: Re: [PATCH v2 00/11] perf events patches for improved ARM64 support To: Ganapatrao Kulkarni Cc: John Garry , Ganapatrao Kulkarni , ak@linux.intel.com, Peter Zijlstra , Will Deacon , Linuxarm , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Zhangshaokun , Alexander Shishkin , Ingo Molnar , namhyung@kernel.org, Jiri Olsa , linux-arm-kernel@lists.infradead.org, Jayachandran.Nair@cavium.com References: <1519401932-205051-1-git-send-email-john.garry@huawei.com> <20180227095028.GG21033@krava> <6250a69e-71ab-5119-cc3f-7e2661aa8c0b@huawei.com> From: William Cohen Message-ID: <8f72afe5-8620-bdd3-3a54-87a22f77c3d4@redhat.com> Date: Fri, 2 Mar 2018 18:38:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 02 Mar 2018 23:38:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 02 Mar 2018 23:38:42 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'wcohen@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2018 11:35 AM, Ganapatrao Kulkarni wrote: > Hi John, > > On Fri, Mar 2, 2018 at 9:35 PM, William Cohen wrote: >> On 03/02/2018 03:24 AM, John Garry wrote: >>> On 27/02/2018 09:50, Jiri Olsa wrote: >>>> On Sat, Feb 24, 2018 at 12:05:21AM +0800, John Garry wrote: >>>>> This patchset adds support for some perf events features, >>>>> targeted at ARM64, implemented in a generic fashion. >>>>> >>>>> The two main features are as follows: >>>>> - support for arch/vendor/platform pmu events directory structure >>>>> - to support this, topic subdirectory support needs to be dropped >>>>> - support for parsing standard architecture pmu events >>>>> >>>>> On the back of these, the Cavium ThunderX2, ARM Cortex-A53, >>>>> and HiSilicon hip08 JSONs are relocated/added/updated. >>>>> >>>>> In addition, there is a patch to drop mutli-mapfile.csv support and >>>>> also a bugfix in jevents.c for an error code value. >>>>> >>>>> Differences to v1: >>>>> - Address coding issues from Jiri Olsa in adding arch std event >>>>> support (https://lkml.org/lkml/2018/2/6/501) >>>>> - add patch to drop topic subdirectory support >>>>> - add patch for bug fix in json_events() >>>>> - add review tags from Jiri Olsa >>>> >>>> can't tell if those json file changes are ok, but for all the code changes: >>>> >>> >>> Hi William, Ganapatrao, >>> >>> Can you check the modifications to the ARM64 JSONs you originally submitted in the patchset please?> >>> If they are not checked, I'll have to see if the maintainers will accept without your review. If not, I'll have to drop them. > > I am seeing issue(log below) with this patchset on our platfrom. > i have tried using your v2 branch [1] > > root@borg-1>perf_acme>> ./perf --version > perf version 4.16.rc1.g087f7ca > root@borg-1>perf_acme>> ./perf stat -e bus_access_rd sleep 1 > > Performance counter stats for 'sleep 1': > > 23,099 bus_access_rd > > 1.000708516 seconds time elapsed > > root@borg-1>perf_acme>> cd - > /ganapat/perf/linux-hisi/tools/perf > root@borg-1>perf>> ./perf --version > perf version 4.16.rc1.gcb5a74 > root@borg-1>perf>> ./perf stat -e bus_access_rd sleep 1 > > Performance counter stats for 'sleep 1': > > 0 bus_access_rd > > 1.000709162 seconds time elapsed > > root@borg-1>perf>> > > > [1] https://github.com/hisilicon/linux-hisi.git > Hi, I took a slightly different tack and compared the output of "perf list --details" to see if the event numbers numbers were the same. For the common events borrowed from the armv8-recommended.json all the events are 0 for the cortex a53. That would explain why the bus_access_rd above were counts were different if it was counting the SW_INCR event instead of bus_access_rd. Why not key the matching of common events off the "EventName" rather than "EventCode"? The EventName would be more descriptive. Then the json files could eliminate the "BriefDescription" and just have the EventName with nothing else for each event. This would further reduce the amount of redundant fields between the specific implementations and the common set. -Will