linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf vendor events arm64: Enable JSON events for eMAG
@ 2018-08-03  4:18 Sean V Kelley
  2018-08-03 14:41 ` John Garry
  0 siblings, 1 reply; 3+ messages in thread
From: Sean V Kelley @ 2018-08-03  4:18 UTC (permalink / raw)
  To: linux-arm-kernel, linux-perf-users
  Cc: skelley, Peter Zijlstra, John Garry, Will Deacon,
	Arnaldo Carvalho de Melo, Alexander Shishkin, Ingo Molnar,
	Ganapatrao Kulkarni, Namhyung Kim, Sean V Kelley, Jiri Olsa,
	William Cohen

This patch adds the Ampere Computing eMAG file.  This platform
follows the ARMv8 recommended IMPLEMENTATION DEFINED events, where
applicable.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
Cc: William Cohen <wcohen@redhat.com>

Signed-off-by: Sean V Kelley <seanvk.dev@oregontracks.org>
---
 .../arch/arm64/ampere/emag/core-imp-def.json  | 32 +++++++++++++++++++
 tools/perf/pmu-events/arch/arm64/mapfile.csv  |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json

diff --git a/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json b/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json
new file mode 100644
index 000000000000..bc03c06c3918
--- /dev/null
+++ b/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json
@@ -0,0 +1,32 @@
+[
+    {
+        "ArchStdEvent": "L1D_CACHE_RD",
+    },
+    {
+        "ArchStdEvent": "L1D_CACHE_WR",
+    },
+    {
+        "ArchStdEvent": "L1D_CACHE_REFILL_RD",
+    },
+    {
+        "ArchStdEvent": "L1D_CACHE_REFILL_WR",
+    },
+    {
+        "ArchStdEvent": "L1D_TLB_REFILL_RD",
+    },
+    {
+        "ArchStdEvent": "L1D_TLB_REFILL_WR",
+    },
+    {
+        "ArchStdEvent": "L1D_TLB_RD",
+    },
+    {
+        "ArchStdEvent": "L1D_TLB_WR",
+    },
+    {
+        "ArchStdEvent": "BUS_ACCESS_RD",
+   },
+   {
+        "ArchStdEvent": "BUS_ACCESS_WR",
+   }
+]
diff --git a/tools/perf/pmu-events/arch/arm64/mapfile.csv b/tools/perf/pmu-events/arch/arm64/mapfile.csv
index f03e26ecb658..59cd8604b0bd 100644
--- a/tools/perf/pmu-events/arch/arm64/mapfile.csv
+++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv
@@ -16,3 +16,4 @@
 0x00000000420f5160,v1,cavium/thunderx2,core
 0x00000000430f0af0,v1,cavium/thunderx2,core
 0x00000000480fd010,v1,hisilicon/hip08,core
+0x00000000500f0000,v1,ampere/emag,core
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf vendor events arm64: Enable JSON events for eMAG
  2018-08-03  4:18 [PATCH] perf vendor events arm64: Enable JSON events for eMAG Sean V Kelley
@ 2018-08-03 14:41 ` John Garry
  2018-08-03 15:48   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: John Garry @ 2018-08-03 14:41 UTC (permalink / raw)
  To: Sean V Kelley, linux-arm-kernel, linux-perf-users
  Cc: skelley, Peter Zijlstra, Will Deacon, Arnaldo Carvalho de Melo,
	Alexander Shishkin, Ingo Molnar, Ganapatrao Kulkarni,
	Namhyung Kim, William Cohen, Jiri Olsa

On 03/08/2018 05:18, Sean V Kelley wrote:
> This patch adds the Ampere Computing eMAG file.  This platform
> follows the ARMv8 recommended IMPLEMENTATION DEFINED events, where
> applicable.
>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Ingo Molnar <mingo@redhat.com>
> Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: John Garry <john.garry@huawei.com>
> Cc: Will Deacon <will.deacon@arm.com>
> Cc: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
> Cc: William Cohen <wcohen@redhat.com>
>
> Signed-off-by: Sean V Kelley <seanvk.dev@oregontracks.org>

Reviewed-by: John Garry <john.garry@huawei.com>

> ---
>  .../arch/arm64/ampere/emag/core-imp-def.json  | 32 +++++++++++++++++++
>  tools/perf/pmu-events/arch/arm64/mapfile.csv  |  1 +
>  2 files changed, 33 insertions(+)
>  create mode 100644 tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json
>
> diff --git a/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json b/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json
> new file mode 100644
> index 000000000000..bc03c06c3918
> --- /dev/null
> +++ b/tools/perf/pmu-events/arch/arm64/ampere/emag/core-imp-def.json
> @@ -0,0 +1,32 @@
> +[
> +    {
> +        "ArchStdEvent": "L1D_CACHE_RD",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_CACHE_WR",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_CACHE_REFILL_RD",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_CACHE_REFILL_WR",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_TLB_REFILL_RD",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_TLB_REFILL_WR",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_TLB_RD",
> +    },
> +    {
> +        "ArchStdEvent": "L1D_TLB_WR",
> +    },
> +    {
> +        "ArchStdEvent": "BUS_ACCESS_RD",
> +   },
> +   {
> +        "ArchStdEvent": "BUS_ACCESS_WR",
> +   }
> +]
> diff --git a/tools/perf/pmu-events/arch/arm64/mapfile.csv b/tools/perf/pmu-events/arch/arm64/mapfile.csv
> index f03e26ecb658..59cd8604b0bd 100644
> --- a/tools/perf/pmu-events/arch/arm64/mapfile.csv
> +++ b/tools/perf/pmu-events/arch/arm64/mapfile.csv
> @@ -16,3 +16,4 @@
>  0x00000000420f5160,v1,cavium/thunderx2,core
>  0x00000000430f0af0,v1,cavium/thunderx2,core
>  0x00000000480fd010,v1,hisilicon/hip08,core
> +0x00000000500f0000,v1,ampere/emag,core

We could order by vendor/platform, but not so important as I see.

>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] perf vendor events arm64: Enable JSON events for eMAG
  2018-08-03 14:41 ` John Garry
@ 2018-08-03 15:48   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2018-08-03 15:48 UTC (permalink / raw)
  To: John Garry
  Cc: skelley, Peter Zijlstra, Will Deacon, linux-perf-users,
	Alexander Shishkin, Ingo Molnar, Ganapatrao Kulkarni,
	Namhyung Kim, Sean V Kelley, Jiri Olsa, William Cohen,
	linux-arm-kernel

Em Fri, Aug 03, 2018 at 03:41:06PM +0100, John Garry escreveu:
> On 03/08/2018 05:18, Sean V Kelley wrote:
> > This patch adds the Ampere Computing eMAG file.  This platform
> > follows the ARMv8 recommended IMPLEMENTATION DEFINED events, where
> > applicable.
> > 
> > Cc: Peter Zijlstra <peterz@infradead.org>
> > Cc: Ingo Molnar <mingo@redhat.com>
> > Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
> > Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
> > Cc: Jiri Olsa <jolsa@redhat.com>
> > Cc: Namhyung Kim <namhyung@kernel.org>
> > Cc: John Garry <john.garry@huawei.com>
> > Cc: Will Deacon <will.deacon@arm.com>
> > Cc: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
> > Cc: William Cohen <wcohen@redhat.com>
> > 
> > Signed-off-by: Sean V Kelley <seanvk.dev@oregontracks.org>
> 
> Reviewed-by: John Garry <john.garry@huawei.com>

Thanks, applied.

- Arnaldo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-03 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-03  4:18 [PATCH] perf vendor events arm64: Enable JSON events for eMAG Sean V Kelley
2018-08-03 14:41 ` John Garry
2018-08-03 15:48   ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).