LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alan Kao <alankao@andestech.com>
To: Palmer Dabbelt <palmer@sifive.com>, Albert Ou <albert@sifive.com>,
"Peter Zijlstra" <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
"Arnaldo Carvalho de Melo" <acme@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@redhat.com>,
"Namhyung Kim" <namhyung@kernel.org>,
Alex Solomatnikov <sols@sifive.com>,
Atish Patra <atish.patra@wdc.com>,
Jonathan Corbet <corbet@lwn.net>,
<linux-riscv@lists.infradead.org>, <linux-doc@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: Alan Kao <alankao@andestech.com>,
Greentime Hu <greentime@andestech.com>,
Nick Hu <nickhu@andestech.com>
Subject: [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V
Date: Fri, 20 Apr 2018 07:27:48 +0800 [thread overview]
Message-ID: <1524180470-8622-1-git-send-email-alankao@andestech.com> (raw)
This implements the baseline PMU for RISC-V platforms.
To ease future PMU portings, a guide is also written, containing
perf concepts, arch porting practices and some hints.
Changes in v5:
- Fix patch errors from checkpatch.pl.
Changes in v4:
- Fix several compilation errors. Sorry for that.
- Raise a warning in the write_counter body.
Changes in v3:
- Fix typos in the document.
- Change the initialization routine from statically assigning PMU to
device-tree-based methods, and set default to the PMU proposed in
this patch.
Changes in v2:
- Fix the bug reported by Alex, which was caused by not sufficient
initialization. Check https://lkml.org/lkml/2018/3/31/251 for the
discussion.
Alan Kao (2):
perf: riscv: preliminary RISC-V support
perf: riscv: Add Document for Future Porting Guide
Documentation/riscv/pmu.txt | 249 ++++++++++++++
arch/riscv/Kconfig | 13 +
arch/riscv/include/asm/perf_event.h | 79 ++++-
arch/riscv/kernel/Makefile | 1 +
arch/riscv/kernel/perf_event.c | 485 ++++++++++++++++++++++++++++
5 files changed, 823 insertions(+), 4 deletions(-)
create mode 100644 Documentation/riscv/pmu.txt
create mode 100644 arch/riscv/kernel/perf_event.c
--
2.17.0
next reply other threads:[~2018-04-19 23:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 23:27 Alan Kao [this message]
2018-04-19 23:27 ` [PATCH v5 1/2] perf: riscv: preliminary RISC-V support Alan Kao
2018-04-19 23:27 ` [PATCH v5 2/2] perf: riscv: Add Document for Future Porting Guide Alan Kao
2018-04-24 18:07 ` [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V Atish Patra
2018-04-24 19:27 ` Atish Patra
2018-04-24 19:44 ` Palmer Dabbelt
2018-04-24 22:16 ` Atish Patra
2018-04-25 0:29 ` Palmer Dabbelt
2018-04-25 1:15 ` Atish Patra
2018-04-25 3:19 ` Alan Kao
2018-04-25 8:09 ` Atish Patra
2018-04-25 16:39 ` Palmer Dabbelt
2018-06-06 3:16 ` Alan Kao
2018-04-25 16:16 ` Palmer Dabbelt
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=1524180470-8622-1-git-send-email-alankao@andestech.com \
--to=alankao@andestech.com \
--cc=acme@kernel.org \
--cc=albert@sifive.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=atish.patra@wdc.com \
--cc=corbet@lwn.net \
--cc=greentime@andestech.com \
--cc=jolsa@redhat.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=nickhu@andestech.com \
--cc=palmer@sifive.com \
--cc=peterz@infradead.org \
--cc=sols@sifive.com \
--subject='Re: [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V' \
/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
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).