Received: by 10.223.176.5 with SMTP id f5csp2864687wra; Thu, 1 Feb 2018 07:15:16 -0800 (PST) X-Google-Smtp-Source: AH8x224+oqDexA0JfV8lWWyw/CLQsDkJcc2VxwZ/+IMClqk/PvpkpM/wDcfxe2JtB/O6EOxcc3Xf X-Received: by 10.99.115.24 with SMTP id o24mr14035448pgc.415.1517498116516; Thu, 01 Feb 2018 07:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517498116; cv=none; d=google.com; s=arc-20160816; b=mji/yhkT/1Kaj/BcJRYEHHTo4cRYtcMCjrvCJ7Vo2Dnuacv4Z2J+uUJjsZSXchtbG3 /f0AzZRo9diZwod80j4TGAHHHBYDRVgDbnKm7Oz4y4DrLbwSziRLwrQd1JWgSIl78pN0 Q/0NaU88g42l/nw3umXwUQhM/9/MnPZJp1g5w6Y3b83Q1PfmxxOPLzPYdJva5E0IL/hm +8UD3U443OPqzjHytVXi8TrddtVXy/xEOBER8shCZUI/wJ4ZOmci2pr0RWOlz1Mn0P1d lsB40VbXysD9HEnKokR69DSLRjW5xAmQZRctgri7dk1sJSf/3u55d5gqs+k3SDd6Rtmr 1Y8Q== 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=HU3U0x6GG4LxrUUbpGtB6CFsZTbZ7u21prRUsWVDAOY=; b=rrsSyNkd/JqgWyK0d7/211PScnQXB/SkxCx/VyfdUD1kp45bAAHK9uNpdEeu+9OAme C/zsKslSnuS/ZF/rJaqWpdddIdDwg3GBO2eGbfSNN2vUUaPmQQ7gsqi8eJtk7LFXp3N7 nTHm9alMgEYOo7U2Ves/N/0KA8HD/t4jJzzqguoc1P0ty6DaEsxHHSSE2yVfKRdMSpq7 JF4YMpW3hibcoix6f2jP5yx6qYeat6ZwrNF+TGCHXq/qYE2XMcPF8YhC0G0USWyrXO0J mrbq/tJiToL3ijSEkERxFLu/Tjd2Cv48S4AYkpZ54xt6slCj5eTI+m1DNCXnTQQtNRVM eqxw== 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 q126si46432pfc.334.2018.02.01.07.15.01; Thu, 01 Feb 2018 07:15:16 -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 S1752470AbeBAPNE (ORCPT + 99 others); Thu, 1 Feb 2018 10:13:04 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37740 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbeBAPNC (ORCPT ); Thu, 1 Feb 2018 10:13:02 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 55B8E73B21; Thu, 1 Feb 2018 15:13:02 +0000 (UTC) Received: from [10.13.129.233] (dhcp129-233.rdu.redhat.com [10.13.129.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id E499D17138; Thu, 1 Feb 2018 15:12:59 +0000 (UTC) Subject: Re: [PATCH] perf vendor events aarch64: Add JSON metrics for ARM Cortex-A53 Processor To: Arnaldo Carvalho de Melo Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org References: <20180131032813.9564-1-wcohen@redhat.com> <20180201144309.GA4835@kernel.org> From: William Cohen Message-ID: <3bebcee1-102c-34ec-880a-722d96062a39@redhat.com> Date: Thu, 1 Feb 2018 10:12:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180201144309.GA4835@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 01 Feb 2018 15:13:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/01/2018 09:43 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 30, 2018 at 10:28:13PM -0500, William Cohen escreveu: >> Add JSON metrics for ARM Cortex-A53 Processor > > Hi Will, would it be possible to you include an URL for the document > that served as a reference to you to write these files? Did you use some > script? Hi Arnaldo, I can certainly add the reference to section "12.9 Events" of the ARM Cortex -A53 MPCore Processor Revision: r0p4 Technical Reference Manual to the patch. That would be useful for people to know where to look for additional information about the events. Unlike the Intel processors there isn't a script that automatically generated these files. The patch was manually generated from the documentation and the previous oprofile ARM Cortex ac53 event file patch I made. -Will > > - Arnaldo > >> Signed-off-by: William Cohen >> --- >> .../pmu-events/arch/arm64/cortex-a53/branch.json | 27 +++++++++++ >> .../perf/pmu-events/arch/arm64/cortex-a53/bus.json | 22 +++++++++ >> .../pmu-events/arch/arm64/cortex-a53/cache.json | 27 +++++++++++ >> .../pmu-events/arch/arm64/cortex-a53/memory.json | 22 +++++++++ >> .../pmu-events/arch/arm64/cortex-a53/other.json | 32 +++++++++++++ >> .../pmu-events/arch/arm64/cortex-a53/pipeline.json | 52 ++++++++++++++++++++++ >> tools/perf/pmu-events/arch/arm64/mapfile.csv | 1 + >> 7 files changed, 183 insertions(+) >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/branch.json >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/bus.json >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/cache.json >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/memory.json >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/other.json >> create mode 100644 tools/perf/pmu-events/arch/arm64/cortex-a53/pipeline.json >> >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/branch.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/branch.json >> new file mode 100644 >> index 000000000000..3b6208763e50 >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/branch.json >> @@ -0,0 +1,27 @@ >> +[ >> + {, >> + "EventCode": "0x7A", >> + "EventName": "BR_INDIRECT_SPEC", >> + "BriefDescription": "Branch speculatively executed - Indirect branch" >> + }, >> + {, >> + "EventCode": "0xC9", >> + "EventName": "BR_COND", >> + "BriefDescription": "Conditional branch executed" >> + }, >> + {, >> + "EventCode": "0xCA", >> + "EventName": "BR_INDIRECT_MISPRED", >> + "BriefDescription": "Indirect branch mispredicted" >> + }, >> + {, >> + "EventCode": "0xCB", >> + "EventName": "BR_INDIRECT_MISPRED_ADDR", >> + "BriefDescription": "Indirect branch mispredicted because of address miscompare" >> + }, >> + {, >> + "EventCode": "0xCC", >> + "EventName": "BR_COND_MISPRED", >> + "BriefDescription": "Conditional branch mispredicted" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/bus.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/bus.json >> new file mode 100644 >> index 000000000000..480d9f7460ab >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/bus.json >> @@ -0,0 +1,22 @@ >> +[ >> + {, >> + "EventCode": "0x60", >> + "EventName": "BUS_ACCESS_LD", >> + "BriefDescription": "Bus access - Read" >> + }, >> + {, >> + "EventCode": "0x61", >> + "EventName": "BUS_ACCESS_ST", >> + "BriefDescription": "Bus access - Write" >> + }, >> + {, >> + "EventCode": "0xC0", >> + "EventName": "EXT_MEM_REQ", >> + "BriefDescription": "External memory request" >> + }, >> + {, >> + "EventCode": "0xC1", >> + "EventName": "EXT_MEM_REQ_NC", >> + "BriefDescription": "Non-cacheable external memory request" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/cache.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/cache.json >> new file mode 100644 >> index 000000000000..11baad6344b9 >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/cache.json >> @@ -0,0 +1,27 @@ >> +[ >> + {, >> + "EventCode": "0xC2", >> + "EventName": "PREFETCH_LINEFILL", >> + "BriefDescription": "Linefill because of prefetch" >> + }, >> + {, >> + "EventCode": "0xC3", >> + "EventName": "PREFETCH_LINEFILL_DROP", >> + "BriefDescription": "Instruction Cache Throttle occurred" >> + }, >> + {, >> + "EventCode": "0xC4", >> + "EventName": "READ_ALLOC_ENTER", >> + "BriefDescription": "Entering read allocate mode" >> + }, >> + {, >> + "EventCode": "0xC5", >> + "EventName": "READ_ALLOC", >> + "BriefDescription": "Read allocate mode" >> + }, >> + {, >> + "EventCode": "0xC8", >> + "EventName": "EXT_SNOOP", >> + "BriefDescription": "SCU Snooped data from another CPU for this CPU" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/memory.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/memory.json >> new file mode 100644 >> index 000000000000..480d9f7460ab >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/memory.json >> @@ -0,0 +1,22 @@ >> +[ >> + {, >> + "EventCode": "0x60", >> + "EventName": "BUS_ACCESS_LD", >> + "BriefDescription": "Bus access - Read" >> + }, >> + {, >> + "EventCode": "0x61", >> + "EventName": "BUS_ACCESS_ST", >> + "BriefDescription": "Bus access - Write" >> + }, >> + {, >> + "EventCode": "0xC0", >> + "EventName": "EXT_MEM_REQ", >> + "BriefDescription": "External memory request" >> + }, >> + {, >> + "EventCode": "0xC1", >> + "EventName": "EXT_MEM_REQ_NC", >> + "BriefDescription": "Non-cacheable external memory request" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/other.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/other.json >> new file mode 100644 >> index 000000000000..73a22402d003 >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/other.json >> @@ -0,0 +1,32 @@ >> +[ >> + {, >> + "EventCode": "0x86", >> + "EventName": "EXC_IRQ", >> + "BriefDescription": "Exception taken, IRQ" >> + }, >> + {, >> + "EventCode": "0x87", >> + "EventName": "EXC_FIQ", >> + "BriefDescription": "Exception taken, FIQ" >> + }, >> + {, >> + "EventCode": "0xC6", >> + "EventName": "PRE_DECODE_ERR", >> + "BriefDescription": "Pre-decode error" >> + }, >> + {, >> + "EventCode": "0xD0", >> + "EventName": "L1I_CACHE_ERR", >> + "BriefDescription": "L1 Instruction Cache (data or tag) memory error" >> + }, >> + {, >> + "EventCode": "0xD1", >> + "EventName": "L1D_CACHE_ERR", >> + "BriefDescription": "L1 Data Cache (data, tag or dirty) memory error, correctable or non-correctable" >> + }, >> + {, >> + "EventCode": "0xD2", >> + "EventName": "TLB_ERR", >> + "BriefDescription": "TLB memory error" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/cortex-a53/pipeline.json b/tools/perf/pmu-events/arch/arm64/cortex-a53/pipeline.json >> new file mode 100644 >> index 000000000000..3149fb90555a >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/cortex-a53/pipeline.json >> @@ -0,0 +1,52 @@ >> +[ >> + {, >> + "EventCode": "0xC7", >> + "EventName": "STALL_SB_FULL", >> + "BriefDescription": "Data Write operation that stalls the pipeline because the store buffer is full" >> + }, >> + {, >> + "EventCode": "0xE0", >> + "EventName": "OTHER_IQ_DEP_STALL", >> + "BriefDescription": "Cycles that the DPU IQ is empty and that is not because of a recent micro-TLB miss, instruction cache miss or pre-decode error" >> + }, >> + {, >> + "EventCode": "0xE1", >> + "EventName": "IC_DEP_STALL", >> + "BriefDescription": "Cycles the DPU IQ is empty and there is an instruction cache miss being processed" >> + }, >> + {, >> + "EventCode": "0xE2", >> + "EventName": "IUTLB_DEP_STALL", >> + "BriefDescription": "Cycles the DPU IQ is empty and there is an instruction micro-TLB miss being processed" >> + }, >> + {, >> + "EventCode": "0xE3", >> + "EventName": "DECODE_DEP_STALL", >> + "BriefDescription": "Cycles the DPU IQ is empty and there is a pre-decode error being processed" >> + }, >> + {, >> + "EventCode": "0xE4", >> + "EventName": "OTHER_INTERLOCK_STALL", >> + "BriefDescription": "Cycles there is an interlock other than Advanced SIMD/Floating-point instructions or load/store instruction" >> + }, >> + {, >> + "EventCode": "0xE5", >> + "EventName": "AGU_DEP_STALL", >> + "BriefDescription": "Cycles there is an interlock for a load/store instruction waiting for data to calculate the address in the AGU" >> + }, >> + {, >> + "EventCode": "0xE6", >> + "EventName": "SIMD_DEP_STALL", >> + "BriefDescription": "Cycles there is an interlock for an Advanced SIMD/Floating-point operation." >> + }, >> + {, >> + "EventCode": "0xE7", >> + "EventName": "LD_DEP_STALL", >> + "BriefDescription": "Cycles there is a stall in the Wr stage because of a load miss" >> + }, >> + {, >> + "EventCode": "0xE8", >> + "EventName": "ST_DEP_STALL", >> + "BriefDescription": "Cycles there is a stall in the Wr stage because of a store" >> + } >> +] >> diff --git a/tools/perf/pmu-events/arch/arm64/mapfile.csv b/tools/perf/pmu-events/arch/arm64/mapfile.csv >> index 219d6756134e..e61c9ca6cf9e 100644 >> --- a/tools/perf/pmu-events/arch/arm64/mapfile.csv >> +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv >> @@ -13,3 +13,4 @@ >> # >> #Family-model,Version,Filename,EventType >> 0x00000000420f5160,v1,cavium,core >> +0x00000000410fd03[[:xdigit:]],v1,cortex-a53,core >> -- >> 2.14.3