linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nickhu <nickhu@andestech.com>
To: <greentime@andestech.com>, <linux-kernel@vger.kernel.org>,
	<arnd@arndb.de>, <robh+dt@kernel.org>, <mark.rutland@arm.com>,
	<deanbo422@gmail.com>, <peterz@infradead.org>, <mingo@redhat.com>,
	<acme@kernel.org>, <alexander.shishkin@linux.intel.com>,
	<jolsa@redhat.com>, <namhyung@kernel.org>,
	<ebiederm@xmission.com>, <pombredanne@nexb.com>,
	<tglx@linutronix.de>, <kstewart@linuxfoundation.org>,
	<gregkh@linuxfoundation.org>, <john.garry@huawei.com>,
	<devicetree@vger.kernel.org>, <zong@andestech.com>,
	<alankao@andestech.com>
Cc: Nickhu <nickhu@andestech.com>, <green.hu@gmail.com>
Subject: [PATCH v3 0/4] nds32: Perf Support
Date: Wed, 24 Oct 2018 11:32:36 +0800	[thread overview]
Message-ID: <cover.1540350887.git.nickhu@andestech.com> (raw)

* Sorry everyone, I forgot to add the version number
of the patch set I just sent.

These four commits are perf supporting for nds32.
There are three perfomance counters in nds32, and
each of them can counts different events. You can
use 'perf list' to show the available events that
can be used.

Changes in V2:
	1. Change the definition 'PFM_CTL_xxx' to
array form.

	2. Simplify the PMU driver.

	3. Stop all counters when handling irq
caused by performance counters overflow.

	4. Rename the compatible string in
devicetree.
	
Changes in V3:
	Fix the typo in Documentation/devicetree/
bindings/nds32/pmu.txt.

Nickhu (4):
  nds32: Fix bug in bitfield.h
  nds32: Perf porting
  nds32: Add perf call-graph support.
  nds32: Add document for NDS32 PMU.

 .../devicetree/bindings/nds32/pmu.txt         |   17 +
 arch/nds32/Kconfig                            |    1 +
 arch/nds32/boot/dts/ae3xx.dts                 |    5 +
 arch/nds32/include/asm/Kbuild                 |    1 +
 arch/nds32/include/asm/bitfield.h             |    4 +-
 arch/nds32/include/asm/perf_event.h           |   16 +
 arch/nds32/include/asm/pmu.h                  |  386 +++++
 arch/nds32/include/asm/stacktrace.h           |   39 +
 arch/nds32/kernel/Makefile                    |    3 +-
 arch/nds32/kernel/perf_event_cpu.c            | 1522 +++++++++++++++++
 arch/nds32/mm/fault.c                         |   13 +-
 tools/include/asm/barrier.h                   |    2 +
 tools/perf/arch/nds32/Build                   |    1 +
 tools/perf/arch/nds32/util/Build              |    1 +
 tools/perf/arch/nds32/util/header.c           |   29 +
 tools/perf/pmu-events/arch/nds32/mapfile.csv  |   15 +
 .../pmu-events/arch/nds32/n13/atcpmu.json     |  290 ++++
 17 files changed, 2337 insertions(+), 8 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/nds32/pmu.txt
 create mode 100644 arch/nds32/include/asm/perf_event.h
 create mode 100644 arch/nds32/include/asm/pmu.h
 create mode 100644 arch/nds32/include/asm/stacktrace.h
 create mode 100644 arch/nds32/kernel/perf_event_cpu.c
 create mode 100644 tools/perf/arch/nds32/Build
 create mode 100644 tools/perf/arch/nds32/util/Build
 create mode 100644 tools/perf/arch/nds32/util/header.c
 create mode 100644 tools/perf/pmu-events/arch/nds32/mapfile.csv
 create mode 100644 tools/perf/pmu-events/arch/nds32/n13/atcpmu.json

-- 
2.17.0


             reply	other threads:[~2018-10-24  3:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24  3:32 Nickhu [this message]
2018-10-24  3:32 ` [PATCH v3 1/4] nds32: Fix bug in bitfield.h Nickhu
2018-10-24  3:32 ` [PATCH v3 2/4] nds32: Perf porting Nickhu
2018-10-24  3:32 ` [PATCH v3 3/4] nds32: Add perf call-graph support Nickhu
2018-10-24  3:32 ` [PATCH v3 4/4] nds32: Add document for NDS32 PMU Nickhu
2018-10-24 18:32   ` Rob Herring
2018-10-25  0:56     ` Nick Hu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1540350887.git.nickhu@andestech.com \
    --to=nickhu@andestech.com \
    --cc=acme@kernel.org \
    --cc=alankao@andestech.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=deanbo422@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=ebiederm@xmission.com \
    --cc=green.hu@gmail.com \
    --cc=greentime@andestech.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=john.garry@huawei.com \
    --cc=jolsa@redhat.com \
    --cc=kstewart@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=pombredanne@nexb.com \
    --cc=robh+dt@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=zong@andestech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).