All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V
@ 2018-04-19 23:27 ` Alan Kao
  0 siblings, 0 replies; 42+ messages in thread
From: Alan Kao @ 2018-04-19 23:27 UTC (permalink / raw)
  To: Palmer Dabbelt, Albert Ou, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Alexander Shishkin, Jiri Olsa,
	Namhyung Kim, Alex Solomatnikov, Atish Patra, Jonathan Corbet,
	linux-riscv, linux-doc, linux-kernel
  Cc: Alan Kao, Greentime Hu, Nick Hu

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

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-06-06  3:52 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-19 23:27 [PATCH v5 0/2] perf: riscv: Preliminary Perf Event Support on RISC-V Alan Kao
2018-04-19 23:27 ` Alan Kao
2018-04-19 23:27 ` Alan Kao
2018-04-19 23:27 ` [PATCH v5 1/2] perf: riscv: preliminary RISC-V support Alan Kao
2018-04-19 23:27   ` Alan Kao
2018-04-19 23:27   ` Alan Kao
2018-04-19 23:27 ` [PATCH v5 2/2] perf: riscv: Add Document for Future Porting Guide Alan Kao
2018-04-19 23:27   ` Alan Kao
2018-04-19 23:27   ` 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 18:07   ` Atish Patra
2018-04-24 18:07   ` Atish Patra
2018-04-24 19:27   ` Atish Patra
2018-04-24 19:27     ` Atish Patra
2018-04-24 19:27     ` Atish Patra
2018-04-24 19:44     ` Palmer Dabbelt
2018-04-24 19:44       ` Palmer Dabbelt
2018-04-24 19:44       ` Palmer Dabbelt
2018-04-24 22:16       ` Atish Patra
2018-04-24 22:16         ` Atish Patra
2018-04-24 22:16         ` Atish Patra
2018-04-25  0:29         ` Palmer Dabbelt
2018-04-25  0:29           ` Palmer Dabbelt
2018-04-25  0:29           ` Palmer Dabbelt
2018-04-25  1:15           ` Atish Patra
2018-04-25  1:15             ` Atish Patra
2018-04-25  1:15             ` Atish Patra
2018-04-25  3:19             ` Alan Kao
2018-04-25  3:19               ` Alan Kao
2018-04-25  3:19               ` Alan Kao
2018-04-25  8:09               ` Atish Patra
2018-04-25  8:09                 ` Atish Patra
2018-04-25  8:09                 ` Atish Patra
2018-04-25 16:39               ` Palmer Dabbelt
2018-04-25 16:39                 ` Palmer Dabbelt
2018-04-25 16:39                 ` Palmer Dabbelt
2018-06-06  3:16                 ` Alan Kao
2018-06-06  3:16                   ` Alan Kao
2018-06-06  3:16                   ` Alan Kao
2018-04-25 16:16             ` Palmer Dabbelt
2018-04-25 16:16               ` Palmer Dabbelt
2018-04-25 16:16               ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.