lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <OSBPR01MB460053B9A7E7A1710D73D21EF7BA9@OSBPR01MB4600.jpnprd01.prod.outlook.com>
Date:   Thu, 28 Jan 2021 05:30:14 +0000
From:   "nakamura.shun@...itsu.com" <nakamura.shun@...itsu.com>
To:     'John Garry' <john.garry@...wei.com>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linuxarm@...neuler.org" <linuxarm@...neuler.org>,
        "james.clark@....com" <james.clark@....com>,
        "peterz@...radead.org" <peterz@...radead.org>,
        "mingo@...hat.com" <mingo@...hat.com>,
        "acme@...nel.org" <acme@...nel.org>,
        "mark.rutland@....com" <mark.rutland@....com>,
        "alexander.shishkin@...ux.intel.com" 
        <alexander.shishkin@...ux.intel.com>,
        "jolsa@...hat.com" <jolsa@...hat.com>,
        "namhyung@...nel.org" <namhyung@...nel.org>,
        "irogers@...gle.com" <irogers@...gle.com>,
        "kjain@...ux.ibm.com" <kjain@...ux.ibm.com>
Subject: RE: [PATCH 2/4] perf vendor events arm64: Add common and uarch event
 JSON

Hi ,john

I would like to make a comment because there is excess or deficiency in comma.
There are no differences in pmu-events.c.

> +    {
> +        "PublicDescription": "Attributable Bus access",
> +        "EventCode": "0x19",
> +        "EventName": "BUS_ACCESS",
> +        "BriefDescription": "Attributable Bus access",
> +    },
Comma is not required at the end of BriefDescription.

> +    {
> +        "PublicDescription": "Bus cycle"
> +        "EventCode": "0x1D",
> +        "EventName": "BUS_CYCLES",
> +        "BriefDescription": "Bus cycle"
> +    },
Missing comma at end of PublicDescription.

> +    {
> +        "PublicDescription": "Attributable Last level cache memory read"
> +        "EventCode": "0x36",
> +        "EventName": "LL_CACHE_RD",
> +        "BriefDescription": "Attributable Last level cache memory read"
> +    },
> +    {
> +        "PublicDescription": "Last level cache miss, read"
> +        "EventCode": "0x37",
> +        "EventName": "LL_CACHE_MISS_RD",
> +        "BriefDescription": "Last level cache miss, read"
> +    },
Missing comma at end of PublicDescription.

> +    },
> +]
Commas are not required.

Best Regards
Shunsuke

> -----Original Message-----
> From: John Garry <john.garry@...wei.com>
> Sent: Monday, January 25, 2021 8:53 PM
> To: peterz@...radead.org; mingo@...hat.com; acme@...nel.org;
> mark.rutland@....com; alexander.shishkin@...ux.intel.com; jolsa@...hat.com;
> namhyung@...nel.org; irogers@...gle.com; kjain@...ux.ibm.com
> Cc: linux-kernel@...r.kernel.org; linuxarm@...neuler.org;
> james.clark@....com; Nakamura, Shunsuke/中村 俊介
> <nakamura.shun@...itsu.com>; John Garry <john.garry@...wei.com>
> Subject: [PATCH 2/4] perf vendor events arm64: Add common and uarch event
> JSON
> 
> Add a common and microarch JSON, which can be referenced from CPU JSONs.
> 
> For now, brief and public description are as event brief event description from the
> ARMv8 ARM [0], D7-11.
> 
> The list of events is not complete, as not all events will be referenced yet.
> 
> Reference document is at the following:
> [0]
> https://documentation-service.arm.com/static/5fa3bd1eb209f547eebd4141?tok
> en=
> 
> Signed-off-by: John Garry <john.garry@...wei.com>
> ---
>  .../arm64/armv8-common-and-microarch.json     | 248
> ++++++++++++++++++
>  1 file changed, 248 insertions(+)
>  create mode 100644
> tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json
> 
> diff --git
> a/tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json
> b/tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json
> new file mode 100644
> index 000000000000..430a023ccf6a
> --- /dev/null
> +++ b/tools/perf/pmu-events/arch/arm64/armv8-common-and-microarch.json
> @@ -0,0 +1,248 @@
> +[
> +    {
> +        "PublicDescription": "Instruction architecturally executed, Condition
> code check pass, software increment",
> +        "EventCode": "0x00",
> +        "EventName": "SW_INCR",
> +        "BriefDescription": "Instruction architecturally executed, Condition
> code check pass, software increment"
> +    },
> +    {
> +        "PublicDescription": "Level 1 instruction cache refill",
> +        "EventCode": "0x01",
> +        "EventName": "L1I_CACHE_REFILL",
> +        "BriefDescription": "Level 1 instruction cache refill"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 instruction TLB refill",
> +        "EventCode": "0x02",
> +        "EventName": "L1I_TLB_REFILL",
> +        "BriefDescription": "Attributable Level 1 instruction TLB refill"
> +    },
> +    {
> +        "PublicDescription": "Level 1 data cache refill",
> +        "EventCode": "0x03",
> +        "EventName": "L1D_CACHE_REFILL",
> +        "BriefDescription": "Level 1 data cache refill"
> +    },
> +    {
> +        "PublicDescription": "Level 1 data cache access",
> +        "EventCode": "0x04",
> +        "EventName": "L1D_CACHE",
> +        "BriefDescription": "Level 1 data cache access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 data TLB refill",
> +        "EventCode": "0x05",
> +        "EventName": "L1D_TLB_REFILL",
> +        "BriefDescription": "Attributable Level 1 data TLB refill"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed",
> +        "EventCode": "0x08",
> +        "EventName": "INST_RETIRED",
> +        "BriefDescription": "Instruction architecturally executed"
> +    },
> +    {
> +        "PublicDescription": "Exception taken",
> +        "EventCode": "0x09",
> +        "EventName": "EXC_TAKEN",
> +        "BriefDescription": "Exception taken"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed, condition
> check pass, exception return",
> +        "EventCode": "0x0a",
> +        "EventName": "EXC_RETURN",
> +        "BriefDescription": "Instruction architecturally executed, condition
> check pass, exception return"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed, condition
> code check pass, write to CONTEXTIDR",
> +        "EventCode": "0x0b",
> +        "EventName": "CID_WRITE_RETIRED",
> +        "BriefDescription": "Instruction architecturally executed, condition code
> check pass, write to CONTEXTIDR"
> +    },
> +    {
> +        "PublicDescription": "Mispredicted or not predicted branch
> speculatively executed",
> +        "EventCode": "0x10",
> +        "EventName": "BR_MIS_PRED",
> +        "BriefDescription": "Mispredicted or not predicted branch speculatively
> executed"
> +    },
> +    {
> +        "PublicDescription": "Cycle",
> +        "EventCode": "0x11",
> +        "EventName": "CPU_CYCLES",
> +        "BriefDescription": "Cycle"
> +    },
> +    {
> +        "PublicDescription": "Predictable branch speculatively executed",
> +        "EventCode": "0x12",
> +        "EventName": "BR_PRED",
> +        "BriefDescription": "Predictable branch speculatively executed"
> +    },
> +    {
> +        "PublicDescription": "Data memory access",
> +        "EventCode": "0x13",
> +        "EventName": "MEM_ACCESS",
> +        "BriefDescription": "Data memory access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 instruction cache access",
> +        "EventCode": "0x14",
> +        "EventName": "L1I_CACHE",
> +        "BriefDescription": "Attributable Level 1 instruction cache access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 data cache write-back",
> +        "EventCode": "0x15",
> +        "EventName": "L1D_CACHE_WB",
> +        "BriefDescription": "Attributable Level 1 data cache write-back"
> +    },
> +    {
> +        "PublicDescription": "Level 2 data cache access",
> +        "EventCode": "0x16",
> +        "EventName": "L2D_CACHE",
> +        "BriefDescription": "Level 2 data cache access"
> +    },
> +    {
> +        "PublicDescription": "Level 2 data refill",
> +        "EventCode": "0x17",
> +        "EventName": "L2D_CACHE_REFILL",
> +        "BriefDescription": "Level 2 data refill"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 2 data cache write-back",
> +        "EventCode": "0x18",
> +        "EventName": "L2D_CACHE_WB",
> +        "BriefDescription": "Attributable Level 2 data cache write-back"
> +    },
> +    {
> +        "PublicDescription": "Attributable Bus access",
> +        "EventCode": "0x19",
> +        "EventName": "BUS_ACCESS",
> +        "BriefDescription": "Attributable Bus access",
> +    },
> +    {
> +        "PublicDescription": "Local memory error",
> +        "EventCode": "0x1a",
> +        "EventName": "MEMORY_ERROR",
> +        "BriefDescription": "Local memory error"
> +    },
> +    {
> +        "PublicDescription": "Operation speculatively executed",
> +        "EventCode": "0x1b",
> +        "EventName": "INST_SPEC",
> +        "BriefDescription": "Operation speculatively executed"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed, Condition
> code check pass, write to TTBR",
> +        "EventCode": "0x1c",
> +        "EventName": "TTBR_WRITE_RETIRED",
> +        "BriefDescription": "Instruction architecturally executed, Condition
> code check pass, write to TTBR"
> +    },
> +    {
> +        "PublicDescription": "Bus cycle"
> +        "EventCode": "0x1D",
> +        "EventName": "BUS_CYCLES",
> +        "BriefDescription": "Bus cycle"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 2 data cache allocation without
> refill",
> +        "EventCode": "0x20",
> +        "EventName": "L2D_CACHE_ALLOCATE",
> +        "BriefDescription": "Attributable Level 2 data cache allocation without
> refill"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed, branch",
> +        "EventCode": "0x21",
> +        "EventName": "BR_RETIRED",
> +        "BriefDescription": "Instruction architecturally executed, branch"
> +    },
> +    {
> +        "PublicDescription": "Instruction architecturally executed, mispredicted
> branch",
> +        "EventCode": "0x22",
> +        "EventName": "BR_MIS_PRED_RETIRED",
> +        "BriefDescription": "Instruction architecturally executed, mispredicted
> branch"
> +    },
> +    {
> +        "PublicDescription": "No operation issued because of the frontend",
> +        "EventCode": "0x23",
> +        "EventName": "STALL_FRONTEND",
> +        "BriefDescription": "No operation issued because of the frontend"
> +    },
> +    {
> +        "PublicDescription": "No operation issued due to the backend",
> +        "EventCode": "0x24",
> +        "EventName": "STALL_BACKEND",
> +        "BriefDescription": "No operation issued due to the backend"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 data or unified TLB access",
> +        "EventCode": "0x25",
> +        "EventName": "L1D_TLB",
> +        "BriefDescription": "Attributable Level 1 data or unified TLB access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 1 instruction TLB access",
> +        "EventCode": "0x26",
> +        "EventName": "L1I_TLB",
> +        "BriefDescription": "Attributable Level 1 instruction TLB access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 3 data cache allocation without
> refill",
> +        "EventCode": "0x29",
> +        "EventName": "L3D_CACHE_ALLOCATE",
> +        "BriefDescription": "Attributable Level 3 data cache allocation without
> refill"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 3 data cache refill",
> +        "EventCode": "0x2A",
> +        "EventName": "L3D_CACHE_REFILL",
> +        "BriefDescription": "Attributable Level 3 data cache refill"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 3 data cache access",
> +        "EventCode": "0x2B",
> +        "EventName": "L3D_CACHE",
> +        "BriefDescription": "Attributable Level 3 data cache access"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 2 data TLB refill",
> +        "EventCode": "0x2D",
> +        "EventName": "L2D_TLB_REFILL",
> +        "BriefDescription": "Attributable Level 2 data TLB refill"
> +    },
> +    {
> +        "PublicDescription": "Attributable Level 2 data or unified TLB access",
> +        "EventCode": "0x2F",
> +        "EventName": "L2D_TLB",
> +        "BriefDescription": "Attributable Level 2 data or unified TLB access"
> +    },
> +    {
> +        "PublicDescription": "Access to another socket in a multi-socket
> system",
> +        "EventCode": "0x31",
> +        "EventName": "REMOTE_ACCESS",
> +        "BriefDescription": "Access to another socket in a multi-socket system"
> +    },
> +    {
> +        "PublicDescription": "Access to data TLB causes a translation table
> walk",
> +        "EventCode": "0x34",
> +        "EventName": "DTLB_WALK",
> +        "BriefDescription": "Access to data TLB causes a translation table
> walk"
> +    },
> +    {
> +        "PublicDescription": "Access to instruction TLB that causes a
> translation table walk",
> +        "EventCode": "0x35",
> +        "EventName": "ITLB_WALK",
> +        "BriefDescription": "Access to instruction TLB that causes a translation
> table walk"
> +    },
> +    {
> +        "PublicDescription": "Attributable Last level cache memory read"
> +        "EventCode": "0x36",
> +        "EventName": "LL_CACHE_RD",
> +        "BriefDescription": "Attributable Last level cache memory read"
> +    },
> +    {
> +        "PublicDescription": "Last level cache miss, read"
> +        "EventCode": "0x37",
> +        "EventName": "LL_CACHE_MISS_RD",
> +        "BriefDescription": "Last level cache miss, read"
> +    },
> +]
> --
> 2.26.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ