Received: by 10.223.185.111 with SMTP id b44csp383463wrg; Fri, 9 Mar 2018 06:37:48 -0800 (PST) X-Google-Smtp-Source: AG47ELsfEhevNdeaPFTT3L6aMMl6WE+kt231Y8+JqV91RPETcVp3dna4eUOdWV0j5bM6ypFbanv1 X-Received: by 2002:a17:902:10d:: with SMTP id 13-v6mr27583617plb.266.1520606268288; Fri, 09 Mar 2018 06:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520606268; cv=none; d=google.com; s=arc-20160816; b=iiQoJQHBxia/oflrZMAjSfuM8lsPowOqM7jFhI3OxZbQZPELfTHgXEjCfvSzwEX50u RCpJ//5iEaMvrKYm1pPdsvDmVU/jzHsEbbvgUGzYgLpHkigBR3yR7LvNHoAjcm//PPSg MqYZRhmy5kC8/PiS/s+oPORQF/9XLzPooFFA61Nqn1j0Pv3NmKjcDMQYLt0gk4ZkfRa+ ru3xnSmX+MzeFSYrI9YH84Fu39Jk4aalk2/Gmh8vRtFRcpFYVujB4HUIBXIdhoUV9bmg ZuFUGSNVdxVRNzWpNdv1WiP4ZltphqSlPRuNyUiEDYKb68Ac5+Y5EfqTsrWRj2oo+ivw Nohg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MuIynnKSgVD0C5q8MFbKiwp6DQJvKwGgMiMCdGFQBr4=; b=lUSSc8E1TtE6d6r6BZUKuch+axAj+Hm+u39JUOwIreQlwXcwIhuZplXPfaZ3HmcWKP vtIG2CLznLr0cDj7Kn41q326ye7RoEu3o+rmp/K2sBZKujo7uWw//KyCWyQEa2T+g3CK d0VwCielvIK0pSpXqcY8KyJR/BJTXX9dWla23q43ibxadgzPSqT+7lIKsvFH7Dr/qlET c44LwFB111nWXp0iwaHRrYjrEZh0IFKMSD1B1lj9UFqCjEJA/oUoQuqeyiG0sbkKm3km AudGgxpAUw87wtfobGvuzLUVdjwTmhp3EW6ejC+kbdfzYV5rYQlRfukygfBEMALBsXa0 fYew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A1WvTWNZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g63si986630pfb.52.2018.03.09.06.37.33; Fri, 09 Mar 2018 06:37:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A1WvTWNZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932144AbeCIOgO (ORCPT + 99 others); Fri, 9 Mar 2018 09:36:14 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:38970 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbeCIOgK (ORCPT ); Fri, 9 Mar 2018 09:36:10 -0500 Received: by mail-lf0-f67.google.com with SMTP id f75-v6so13480169lfg.6 for ; Fri, 09 Mar 2018 06:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MuIynnKSgVD0C5q8MFbKiwp6DQJvKwGgMiMCdGFQBr4=; b=A1WvTWNZ9KazRwntHQuBT6dIXkl5Qcy6z7szrzFWc2vr/TjCM7PPB6uS+b6tKZ3rbc OPOvEjsjbQ8peLi0k0oUQjd7esOoODmy+kqNiuXkMOC2W4tIbbTVGtV0qvRLFElSSmge 7o6jysz8D9MMfJe+42uh9ktemNoCcqt/e4JawIpvCdvHMwzH68aCgkjCIAUQjQcsk5YL SDNxOOcEW17k5e561EyKjvS0Wygf4GLQLxkAd8KYJnEGxZemcjWW7PFXUzbi7ei7euFF PY9zN+yy5JqHEV4iq//GLEc/QrMDr+JXooy9W/ObqWQ3vHn8do/S0MFcYAvTOLI2ci4g 36zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MuIynnKSgVD0C5q8MFbKiwp6DQJvKwGgMiMCdGFQBr4=; b=aFlYAWccZRwbdy0okqEvRIfZ5OiJgl7EP9QBIV8wfsJIAJfnNmUmmUzvQLyBF7JHK3 y82AWKKggjlyTXo0tf/jTRV4nPvcwTc8DPb7uFbSlk7KWbpAPRIv05SxJU77C4gWGOqI gOwVtqe/gjUr4OvnecozflphRwHdbX2pDb1V3nHWDtjs9Q/1oWX18Y1q6dNGpmjcXuDU h8ZxXrncbur5Lkgl9qsxtD3efXIdEPxw32cR5DPdxZNK0c4WftrMnh+jnMHmF7vYhnR7 DAXbbhPMZ6wF3kDKozRzo+9oztiE8hdAq51Oo+pu+LUvd85/3/kommx1pj49DaUzNYiq zWhg== X-Gm-Message-State: AElRT7ELm20O7VILGA42tFXeM/WhOx/TpRq7WXvy4/phBVXbZwKQMci4 k+50emv6s76WVZQDhlUEcP+K0AQXj7f4Wmg0OOk= X-Received: by 10.25.161.213 with SMTP id k204mr20683114lfe.127.1520606168561; Fri, 09 Mar 2018 06:36:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.25.140 with HTTP; Fri, 9 Mar 2018 06:36:07 -0800 (PST) In-Reply-To: <1520506716-197429-10-git-send-email-john.garry@huawei.com> References: <1520506716-197429-1-git-send-email-john.garry@huawei.com> <1520506716-197429-10-git-send-email-john.garry@huawei.com> From: Ganapatrao Kulkarni Date: Fri, 9 Mar 2018 20:06:07 +0530 Message-ID: Subject: Re: [PATCH v3 09/11] perf vendor events arm64: fixup ThunderX2 to use recommended events To: John Garry Cc: Jiri Olsa , ak@linux.intel.com, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , namhyung@kernel.org, William Cohen , Will Deacon , Ganapatrao Kulkarni , Linuxarm , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Zhangshaokun Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Thu, Mar 8, 2018 at 4:28 PM, John Garry wrote: > This patch fixes the Cavium ThunderX2 JSON to use event definitions > from the ARMv8 recommended events. > > Cc: Ganapatrao Kulkarni > Signed-off-by: John Garry > --- > .../arch/arm64/cavium/thunderx2/core-imp-def.json | 50 +++++----------------- > 1 file changed, 10 insertions(+), 40 deletions(-) > > diff --git a/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json b/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json > index 2db45c4..bc03c06 100644 > --- a/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json > +++ b/tools/perf/pmu-events/arch/arm64/cavium/thunderx2/core-imp-def.json > @@ -1,62 +1,32 @@ > [ > { > - "PublicDescription": "Attributable Level 1 data cache access, read", > - "EventCode": "0x40", > - "EventName": "l1d_cache_rd", > - "BriefDescription": "L1D cache read", > + "ArchStdEvent": "L1D_CACHE_RD", > }, > { > - "PublicDescription": "Attributable Level 1 data cache access, write ", > - "EventCode": "0x41", > - "EventName": "l1d_cache_wr", > - "BriefDescription": "L1D cache write", > + "ArchStdEvent": "L1D_CACHE_WR", > }, > { > - "PublicDescription": "Attributable Level 1 data cache refill, read", > - "EventCode": "0x42", > - "EventName": "l1d_cache_refill_rd", > - "BriefDescription": "L1D cache refill read", > + "ArchStdEvent": "L1D_CACHE_REFILL_RD", > }, > { > - "PublicDescription": "Attributable Level 1 data cache refill, write", > - "EventCode": "0x43", > - "EventName": "l1d_cache_refill_wr", > - "BriefDescription": "L1D refill write", > + "ArchStdEvent": "L1D_CACHE_REFILL_WR", > }, > { > - "PublicDescription": "Attributable Level 1 data TLB refill, read", > - "EventCode": "0x4C", > - "EventName": "l1d_tlb_refill_rd", > - "BriefDescription": "L1D tlb refill read", > + "ArchStdEvent": "L1D_TLB_REFILL_RD", > }, > { > - "PublicDescription": "Attributable Level 1 data TLB refill, write", > - "EventCode": "0x4D", > - "EventName": "l1d_tlb_refill_wr", > - "BriefDescription": "L1D tlb refill write", > + "ArchStdEvent": "L1D_TLB_REFILL_WR", > }, > { > - "PublicDescription": "Attributable Level 1 data or unified TLB access, read", > - "EventCode": "0x4E", > - "EventName": "l1d_tlb_rd", > - "BriefDescription": "L1D tlb read", > + "ArchStdEvent": "L1D_TLB_RD", > }, > { > - "PublicDescription": "Attributable Level 1 data or unified TLB access, write", > - "EventCode": "0x4F", > - "EventName": "l1d_tlb_wr", > - "BriefDescription": "L1D tlb write", > + "ArchStdEvent": "L1D_TLB_WR", > }, > { > - "PublicDescription": "Bus access read", > - "EventCode": "0x60", > - "EventName": "bus_access_rd", > - "BriefDescription": "Bus access read", > + "ArchStdEvent": "BUS_ACCESS_RD", > }, > { > - "PublicDescription": "Bus access write", > - "EventCode": "0x61", > - "EventName": "bus_access_wr", > - "BriefDescription": "Bus access write", > + "ArchStdEvent": "BUS_ACCESS_WR", > } > ] This patch looks ok to me. i have tried on thunderx2 for few events and it is working fine. Tested-by: Ganapatrao Kulkarni > -- > 1.9.1 > thanks Ganapat